当前位置: 首页>>代码示例>>Java>>正文


Java RuleValidationContext类代码示例

本文整理汇总了Java中org.kuali.rice.kew.api.validation.RuleValidationContext的典型用法代码示例。如果您正苦于以下问题:Java RuleValidationContext类的具体用法?Java RuleValidationContext怎么用?Java RuleValidationContext使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


RuleValidationContext类属于org.kuali.rice.kew.api.validation包,在下文中一共展示了RuleValidationContext类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: validate

import org.kuali.rice.kew.api.validation.RuleValidationContext; //导入依赖的package包/类
/**
 * Validates the rule within the given RuleValidationContext.
 *
 * @return a ValidationResults object representing the results of the validation, if this is
 * empty or <code>null</code> this signifies that validation was successful.
 */
@WebMethod(operationName = "validate")
@WebResult(name = "validationResults")
@XmlElement(name = "validationResults", required = false)
ValidationResults validate(
                            @WebParam(name = "attributeName") String attributeName,
                            @WebParam(name = "validationContext") RuleValidationContext validationContext) throws RiceIllegalArgumentException;
 
开发者ID:kuali,项目名称:kc-rice,代码行数:13,代码来源:RuleValidationAttributeExporterService.java

示例2: validate

import org.kuali.rice.kew.api.validation.RuleValidationContext; //导入依赖的package包/类
@Override
public ValidationResults validate(String attributeName, RuleValidationContext validationContext) {
    if (StringUtils.isBlank(attributeName)) {
        throw new RiceIllegalArgumentException("attribute name was null or blank");
    }
    RuleValidationAttribute attr = loadAttribute(attributeName);
    return attr.validate(validationContext);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:9,代码来源:RuleValidationAttributeExporterServiceImpl.java

示例3: resolveRuleValidationAttribute

import org.kuali.rice.kew.api.validation.RuleValidationContext; //导入依赖的package包/类
@Override
public RuleValidationAttribute resolveRuleValidationAttribute(final String attributeName, String applicationId) throws Exception {
    final RuleValidationAttributeExporterService service = findRuleValidationAttributeExporterService(applicationId);
    return (RuleValidationAttribute) Proxy.newProxyInstance(this.getClass().getClassLoader(), new Class<?>[] { RuleValidationAttribute.class }, new RuleValidationAttributeInvocationHandler() {
        @Override
        protected ValidationResults invokeValidate(RuleValidationContext context) throws Exception {
            return service.validate(attributeName, context);
        }
    });
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:11,代码来源:RuleValidationAttributeResolverImpl.java

示例4: invoke

import org.kuali.rice.kew.api.validation.RuleValidationContext; //导入依赖的package包/类
@Override
public ValidationResults invoke(Object o, Method method, Object[] objects) throws Throwable {
    if (!StringUtils.equals(method.getName(), "validate")) {
        throw new UnsupportedOperationException("RuleValidationAttribute only supports 'validate'");
    }
    return invokeValidate((RuleValidationContext) objects[0]);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:RuleValidationAttributeResolverImpl.java

示例5: validate

import org.kuali.rice.kew.api.validation.RuleValidationContext; //导入依赖的package包/类
public ValidationResults validate(RuleValidationContext validationContext) {
    invocations++;
    return ValidationResults.Builder.create().build();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:5,代码来源:TestRuleValidationAttribute.java

示例6: validate

import org.kuali.rice.kew.api.validation.RuleValidationContext; //导入依赖的package包/类
/**
 * Validates the rule within the given RuleValidationContext.
 * 
 * @return a ValidationResults object representing the results of the validation, if this is
 * empty or <code>null</code> this signifies that validation was successful.
 */
public ValidationResults validate(RuleValidationContext validationContext);
 
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:RuleValidationAttribute.java

示例7: invokeValidate

import org.kuali.rice.kew.api.validation.RuleValidationContext; //导入依赖的package包/类
protected abstract ValidationResults invokeValidate(RuleValidationContext context) throws Exception; 
开发者ID:kuali,项目名称:kc-rice,代码行数:2,代码来源:RuleValidationAttributeResolverImpl.java


注:本文中的org.kuali.rice.kew.api.validation.RuleValidationContext类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。