| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RuleService
| 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. | 
|  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 | 
| Method Detail | 
|---|
@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 Rule
RiceIllegalArgumentException - if id is null
RiceIllegalStateException - 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 Rule
RiceIllegalArgumentException - if name is null
RiceIllegalStateException - 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 Rule
RiceIllegalArgumentException - 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 empty
RiceIllegalArgumentException - if id is null
List<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 null
RuleQueryResults 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 follow
RiceIllegalArgumentException - 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 RuleTemplate
RiceIllegalArgumentException - if id is null
RiceIllegalStateException - 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 RuleTemplate
RiceIllegalArgumentException - if name is null
RiceIllegalStateException - if RuleTemplate does not exist
RuleTemplateQueryResults 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 RuleResponsibility
RiceIllegalArgumentException - if id is null
RiceIllegalStateException - 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 Responsibility
RiceIllegalArgumentException - if id is null| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||