本文整理汇总了Java中org.kuali.rice.kew.rule.RuleResponsibilityBo.getRuleBaseValues方法的典型用法代码示例。如果您正苦于以下问题:Java RuleResponsibilityBo.getRuleBaseValues方法的具体用法?Java RuleResponsibilityBo.getRuleBaseValues怎么用?Java RuleResponsibilityBo.getRuleBaseValues使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.kuali.rice.kew.rule.RuleResponsibilityBo
的用法示例。
在下文中一共展示了RuleResponsibilityBo.getRuleBaseValues方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findRuleBaseValuesByResponsibilityReviewer
import org.kuali.rice.kew.rule.RuleResponsibilityBo; //导入方法依赖的package包/类
@Override
public List<RuleBaseValues> findRuleBaseValuesByResponsibilityReviewer(String reviewerName, String type) {
org.kuali.rice.core.api.criteria.QueryByCriteria.Builder builder =
org.kuali.rice.core.api.criteria.QueryByCriteria.Builder.create();
builder.setPredicates(equal("ruleResponsibilityName",reviewerName),
equal("ruleResponsibilityType",type));
List responsibilities = getDataObjectService().findMatching(
RuleResponsibilityBo.class,builder.build()).getResults();
List rules = new ArrayList();
for (Iterator iter = responsibilities.iterator(); iter.hasNext();) {
RuleResponsibilityBo responsibility = (RuleResponsibilityBo) iter.next();
RuleBaseValues rule = responsibility.getRuleBaseValues();
if (rule != null && rule.getCurrentInd() != null && rule.getCurrentInd().booleanValue()) {
rules.add(rule);
}
}
return rules;
}
示例2: findRuleBaseValuesByResponsibilityReviewer
import org.kuali.rice.kew.rule.RuleResponsibilityBo; //导入方法依赖的package包/类
public List<RuleBaseValues> findRuleBaseValuesByResponsibilityReviewer(String reviewerName, String type) {
Criteria crit = new Criteria();
crit.addEqualTo("ruleResponsibilityName", reviewerName);
crit.addEqualTo("ruleResponsibilityType", type);
List responsibilities = (List) this.getPersistenceBrokerTemplate().getCollectionByQuery(new QueryByCriteria(RuleResponsibilityBo.class, crit));
List rules = new ArrayList();
for (Iterator iter = responsibilities.iterator(); iter.hasNext();) {
RuleResponsibilityBo responsibility = (RuleResponsibilityBo) iter.next();
RuleBaseValues rule = responsibility.getRuleBaseValues();
if (rule != null && rule.getCurrentInd() != null && rule.getCurrentInd().booleanValue()) {
rules.add(rule);
}
}
return rules;
}
示例3: findRuleBaseValuesByResponsibilityReviewerTemplateDoc
import org.kuali.rice.kew.rule.RuleResponsibilityBo; //导入方法依赖的package包/类
public List<RuleBaseValues> findRuleBaseValuesByResponsibilityReviewerTemplateDoc(String ruleTemplateName, String documentType, String reviewerName, String type) {
Criteria crit = new Criteria();
crit.addEqualTo("ruleResponsibilityName", reviewerName);
crit.addEqualTo("ruleResponsibilityType", type);
crit.addEqualTo("ruleBaseValues.currentInd", Boolean.TRUE);
if (!StringUtils.isBlank(ruleTemplateName)) {
crit.addLike("ruleBaseValues.ruleTemplate.name", ruleTemplateName.replace("*", "%").concat("%"));
}
if (!StringUtils.isBlank(documentType)) {
crit.addLike("ruleBaseValues.docTypeName", documentType.replace("*", "%").concat("%"));
}
List responsibilities = (List) this.getPersistenceBrokerTemplate().getCollectionByQuery(new QueryByCriteria(RuleResponsibilityBo.class, crit));
List rules = new ArrayList();
for (Iterator iter = responsibilities.iterator(); iter.hasNext();) {
RuleResponsibilityBo responsibility = (RuleResponsibilityBo) iter.next();
RuleBaseValues rule = responsibility.getRuleBaseValues();
if (rule != null && rule.getCurrentInd() != null && rule.getCurrentInd().booleanValue()) {
rules.add(rule);
}
}
return rules;
}
示例4: findRuleBaseValuesByResponsibilityReviewer
import org.kuali.rice.kew.rule.RuleResponsibilityBo; //导入方法依赖的package包/类
public List<RuleBaseValues> findRuleBaseValuesByResponsibilityReviewer(String reviewerName, String type) {
Criteria crit = new Criteria(RuleResponsibilityBo.class.getName());
crit.eq("ruleResponsibilityName", reviewerName);
crit.eq("ruleResponsibilityType", type);
List responsibilities = (List) new QueryByCriteria(entityManager, crit).toQuery().getResultList();
List rules = new ArrayList();
for (Iterator iter = responsibilities.iterator(); iter.hasNext();) {
RuleResponsibilityBo responsibility = (RuleResponsibilityBo) iter.next();
RuleBaseValues rule = responsibility.getRuleBaseValues();
if (rule != null && rule.getCurrentInd() != null && rule.getCurrentInd().booleanValue()) {
rules.add(rule);
}
}
return rules;
}
示例5: findRuleBaseValuesByResponsibilityReviewerTemplateDoc
import org.kuali.rice.kew.rule.RuleResponsibilityBo; //导入方法依赖的package包/类
public List<RuleBaseValues> findRuleBaseValuesByResponsibilityReviewerTemplateDoc(String ruleTemplateName, String documentType, String reviewerName, String type) {
Criteria crit = new Criteria(RuleResponsibilityBo.class.getName());
crit.eq("ruleResponsibilityName", reviewerName);
crit.eq("ruleResponsibilityType", type);
crit.eq("ruleBaseValues.currentInd", Boolean.TRUE);
if (!StringUtils.isBlank(ruleTemplateName)) {
crit.like("ruleBaseValues.ruleTemplate.name", ruleTemplateName.replace("*", "%").concat("%"));
}
if (!StringUtils.isBlank(documentType)) {
crit.like("ruleBaseValues.docTypeName", documentType.replace("*", "%").concat("%"));
}
List responsibilities = (List) new QueryByCriteria(entityManager, crit).toQuery().getResultList();
List rules = new ArrayList();
for (Iterator iter = responsibilities.iterator(); iter.hasNext();) {
RuleResponsibilityBo responsibility = (RuleResponsibilityBo) iter.next();
RuleBaseValues rule = responsibility.getRuleBaseValues();
if (rule != null && rule.getCurrentInd() != null && rule.getCurrentInd().booleanValue()) {
rules.add(rule);
}
}
return rules;
}
示例6: findRuleBaseValuesByResponsibilityReviewerTemplateDoc
import org.kuali.rice.kew.rule.RuleResponsibilityBo; //导入方法依赖的package包/类
@Override
public List<RuleBaseValues> findRuleBaseValuesByResponsibilityReviewerTemplateDoc(String ruleTemplateName,
String documentType, String reviewerName, String type) {
org.kuali.rice.core.api.criteria.QueryByCriteria.Builder builder =
org.kuali.rice.core.api.criteria.QueryByCriteria.Builder.create();
List<Predicate> predicates = new ArrayList<Predicate>();
predicates.add(equal("ruleResponsibilityName",reviewerName));
predicates.add(equal("ruleResponsibilityType",type));
predicates.add(equal("ruleBaseValues.currentInd",Boolean.TRUE));
if (!StringUtils.isBlank(ruleTemplateName)) {
predicates.add(like("ruleBaseValues.ruleTemplate.name", ruleTemplateName.replace("*", "%").concat("%")));
}
if (!StringUtils.isBlank(documentType)) {
predicates.add(like("ruleBaseValues.docTypeName", documentType.replace("*", "%").concat("%")));
}
List responsibilities = getDataObjectService().findMatching(
RuleResponsibilityBo.class,builder.build()).getResults();
List rules = new ArrayList();
for (Iterator iter = responsibilities.iterator(); iter.hasNext();) {
RuleResponsibilityBo responsibility = (RuleResponsibilityBo) iter.next();
RuleBaseValues rule = responsibility.getRuleBaseValues();
if (rule != null && rule.getCurrentInd() != null && rule.getCurrentInd().booleanValue()) {
rules.add(rule);
}
}
return rules;
}