|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.impl.rule.RuleServiceImpl
public class RuleServiceImpl
Constructor Summary | |
---|---|
RuleServiceImpl()
|
Method Summary | |
---|---|
RuleQueryResults |
findRules(QueryByCriteria queryByCriteria)
Query for rules based on the given search criteria which is a Map of rule field names to values. |
RuleTemplateQueryResults |
findRuleTemplates(QueryByCriteria queryByCriteria)
Query for rules based on the given search criteria which is a Map of ruleTemplate field names to values. |
BusinessObjectService |
getBusinessObjectService()
|
CriteriaLookupService |
getCriteriaLookupService()
|
Rule |
getRule(String id)
gets a Rule identified by the passed in id |
Rule |
getRuleByName(String name)
gets a Rule identified by the passed in rule name |
List<RuleDelegation> |
getRuleDelegationsByResponsibiltityId(String id)
gets a RuleDelegations identified by the passed in id for responsibility |
RuleResponsibility |
getRuleResponsibility(String responsibilityId)
gets a RuleResponsibility identified by the passed in responsibilityId |
List<Rule> |
getRulesByTemplateId(String templateId)
gets a list of Rules with the specified templateId |
List<Rule> |
getRulesByTemplateNameAndDocumentTypeName(String templateName,
String documentTypeName)
Gets a list of Rules with the specified templateId and documentTypeName. |
List<Rule> |
getRulesByTemplateNameAndDocumentTypeNameAndEffectiveDate(String templateName,
String documentTypeName,
org.joda.time.DateTime effectiveDate)
Gets a list of Rules with the specified templateId and documentTypeName. |
RuleTemplate |
getRuleTemplate(String id)
gets a RuleTemplate identified by the passed in id |
RuleTemplate |
getRuleTemplateByName(String name)
gets a RuleTemplate identified by the passed in name |
List<Rule> |
ruleReport(RuleReportCriteria ruleReportCriteria)
Executes a simulation of a document to get all previous and future route information |
void |
setBusinessObjectService(BusinessObjectService businessObjectService)
|
void |
setCriteriaLookupService(CriteriaLookupService criteriaLookupService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleServiceImpl()
Method Detail |
---|
public Rule getRule(String id) throws RiceIllegalArgumentException, RiceIllegalStateException
RuleService
getRule
in interface RuleService
id
- unique id for the Rule
RiceIllegalArgumentException
- if id
is null
RiceIllegalStateException
- if Rule does not existpublic Rule getRuleByName(String name)
RuleService
getRuleByName
in interface RuleService
name
- name of the Rule
public List<Rule> getRulesByTemplateId(String templateId) throws RiceIllegalArgumentException
RuleService
getRulesByTemplateId
in interface RuleService
templateId
- unique id for the Rule
RiceIllegalArgumentException
- if templateId
is nullpublic List<Rule> getRulesByTemplateNameAndDocumentTypeName(String templateName, String documentTypeName)
RuleService
getRulesByTemplateNameAndDocumentTypeName
in interface RuleService
templateName
- unique name for the Rule Template. Cannot be null or emptydocumentTypeName
- documentTypeName for Rule. Cannot be null or empty
public List<Rule> getRulesByTemplateNameAndDocumentTypeNameAndEffectiveDate(String templateName, String documentTypeName, org.joda.time.DateTime effectiveDate) throws RiceIllegalArgumentException
RuleService
getRulesByTemplateNameAndDocumentTypeNameAndEffectiveDate
in interface RuleService
templateName
- unique name for the Rule Template. Cannot be null or emptydocumentTypeName
- documentTypeName for Rule. Cannot be null or emptyeffectiveDate
- date for rule effectiveness. Can be null. If null, current time is used.
RiceIllegalArgumentException
- if id
is nullpublic RuleQueryResults findRules(QueryByCriteria queryByCriteria)
RuleService
This method returns it's results as a List of Rules that match the given search criteria.
findRules
in interface RuleService
queryByCriteria
- the criteria. Cannot be null.
public List<Rule> ruleReport(RuleReportCriteria ruleReportCriteria)
RuleService
ruleReport
in interface RuleService
ruleReportCriteria
- criteria for the rule report to follow
public RuleTemplate getRuleTemplate(String id)
RuleService
getRuleTemplate
in interface RuleService
id
- unique id for the RuleTemplate
public RuleTemplate getRuleTemplateByName(String name)
RuleService
getRuleTemplateByName
in interface RuleService
name
- unique name for the RuleTemplate
public RuleTemplateQueryResults findRuleTemplates(QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException
RuleService
This method returns it's results as a List of RuleTemplates that match the given search criteria.
findRuleTemplates
in interface RuleService
queryByCriteria
- the criteria. Cannot be null.
RiceIllegalArgumentException
public RuleResponsibility getRuleResponsibility(String responsibilityId)
RuleService
getRuleResponsibility
in interface RuleService
responsibilityId
- unique id for the RuleResponsibility
public List<RuleDelegation> getRuleDelegationsByResponsibiltityId(String id) throws RiceIllegalArgumentException, RiceIllegalStateException
RuleService
getRuleDelegationsByResponsibiltityId
in interface RuleService
id
- unique id for the RuleDelegation's Responsibility
RiceIllegalArgumentException
- if id
is null
RiceIllegalStateException
public BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(BusinessObjectService businessObjectService)
public CriteriaLookupService getCriteriaLookupService()
public void setCriteriaLookupService(CriteriaLookupService criteriaLookupService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |