public interface RuleService
Modifier and Type | Method and Description |
---|---|
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.
|
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 reportCriteria)
Executes a simulation of a document to get all previous and future route information
|
@Cacheable(value="http://rice.kuali.org/kew/v2_0/RuleType", key="\'id=\' + #p0") Rule getRule(String id) throws RiceIllegalArgumentException, RiceIllegalStateException
id
- unique id for the RuleRiceIllegalArgumentException
- if id
is nullRiceIllegalStateException
- if Rule does not exist@Cacheable(value="http://rice.kuali.org/kew/v2_0/RuleType", key="\'name=\' + #p0") Rule getRuleByName(String name) throws RiceIllegalArgumentException, RiceIllegalStateException
name
- name of the RuleRiceIllegalArgumentException
- if name
is nullRiceIllegalStateException
- if Rule does not exist@Cacheable(value="http://rice.kuali.org/kew/v2_0/RuleType", key="\'templateId=\' + #p0") List<Rule> getRulesByTemplateId(String templateId) throws RiceIllegalArgumentException
templateId
- unique id for the RuleRiceIllegalArgumentException
- if templateId
is null@Cacheable(value="http://rice.kuali.org/kew/v2_0/RuleType", key="\'templateName=\' + #p0 + \'|\' + \'documentTypeName=\' + #p1") List<Rule> getRulesByTemplateNameAndDocumentTypeName(String templateName, String documentTypeName) throws RiceIllegalArgumentException
templateName
- unique name for the Rule Template. Cannot be null or emptydocumentTypeName
- documentTypeName for Rule. Cannot be null or emptyRiceIllegalArgumentException
- if id
is nullList<Rule> getRulesByTemplateNameAndDocumentTypeNameAndEffectiveDate(String templateName, String documentTypeName, org.joda.time.DateTime effectiveDate) throws RiceIllegalArgumentException
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 nullRuleQueryResults findRules(QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException
This method returns it's results as a List of Rules that match the given search criteria.
queryByCriteria
- the criteria. Cannot be null.RiceIllegalArgumentException
List<Rule> ruleReport(RuleReportCriteria reportCriteria) throws RiceIllegalArgumentException
reportCriteria
- criteria for the rule report to followRiceIllegalArgumentException
- if reportCriteria
is null@Cacheable(value="http://rice.kuali.org/kew/v2_0/RuleTemplateType", key="\'id=\' + #p0") RuleTemplate getRuleTemplate(String id) throws RiceIllegalArgumentException
id
- unique id for the RuleTemplateRiceIllegalArgumentException
- if id
is nullRiceIllegalStateException
- if RuleTemplate does not exist@Cacheable(value="http://rice.kuali.org/kew/v2_0/RuleTemplateType", key="\'name=\' + #p0") RuleTemplate getRuleTemplateByName(String name) throws RiceIllegalArgumentException
name
- unique name for the RuleTemplateRiceIllegalArgumentException
- if name
is nullRiceIllegalStateException
- if RuleTemplate does not existRuleTemplateQueryResults findRuleTemplates(QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException
This method returns it's results as a List of RuleTemplates that match the given search criteria.
queryByCriteria
- the criteria. Cannot be null.RiceIllegalArgumentException
@Cacheable(value="http://rice.kuali.org/kew/v2_0/RuleResponsibilityType", key="\'responsibilityId=\' + #p0") RuleResponsibility getRuleResponsibility(String responsibilityId) throws RiceIllegalArgumentException
responsibilityId
- unique id for the RuleResponsibilityRiceIllegalArgumentException
- if id
is nullRiceIllegalStateException
- if RuleResponsibility does not exist@Cacheable(value="http://rice.kuali.org/kew/v2_0/RuleDelegationType", key="\'id=\' + #p0") List<RuleDelegation> getRuleDelegationsByResponsibiltityId(String id) throws RiceIllegalArgumentException
id
- unique id for the RuleDelegation's ResponsibilityRiceIllegalArgumentException
- if id
is nullCopyright © 2005–2016 The Kuali Foundation. All rights reserved.