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


Java RuleResponsibilityBo.getRuleBaseValues方法代码示例

本文整理汇总了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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:21,代码来源:RuleDAOJpa.java

示例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;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:18,代码来源:RuleDAOOjbImpl.java

示例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;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:25,代码来源:RuleDAOOjbImpl.java

示例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;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:18,代码来源:RuleDAOJpaImpl.java

示例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;
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:25,代码来源:RuleDAOJpaImpl.java

示例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;
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:32,代码来源:RuleDAOJpa.java


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