public class RuleServiceImpl extends Object implements RuleService
Constructor and Description |
---|
RuleServiceImpl() |
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.
|
DataObjectService |
getDataObjectService() |
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 |
setDataObjectService(DataObjectService dataObjectService) |
public RuleServiceImpl()
public Rule getRule(String id) throws RiceIllegalArgumentException, RiceIllegalStateException
RuleService
getRule
in interface RuleService
id
- unique id for the RuleRiceIllegalArgumentException
- if id
is nullRiceIllegalStateException
- if Rule does not existpublic Rule getRuleByName(String name)
RuleService
getRuleByName
in interface RuleService
name
- name of the Rulepublic List<Rule> getRulesByTemplateId(String templateId) throws RiceIllegalArgumentException
RuleService
getRulesByTemplateId
in interface RuleService
templateId
- unique id for the RuleRiceIllegalArgumentException
- 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 emptypublic 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 followpublic RuleTemplate getRuleTemplate(String id)
RuleService
getRuleTemplate
in interface RuleService
id
- unique id for the RuleTemplatepublic RuleTemplate getRuleTemplateByName(String name)
RuleService
getRuleTemplateByName
in interface RuleService
name
- unique name for the RuleTemplatepublic 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 RuleResponsibilitypublic List<RuleDelegation> getRuleDelegationsByResponsibiltityId(String id) throws RiceIllegalArgumentException, RiceIllegalStateException
RuleService
getRuleDelegationsByResponsibiltityId
in interface RuleService
id
- unique id for the RuleDelegation's ResponsibilityRiceIllegalArgumentException
- if id
is nullRiceIllegalStateException
public DataObjectService getDataObjectService()
public void setDataObjectService(DataObjectService dataObjectService)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.