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
RuleServicegetRule in interface RuleServiceid - unique id for the RuleRiceIllegalArgumentException - if id is nullRiceIllegalStateException - if Rule does not existpublic Rule getRuleByName(String name)
RuleServicegetRuleByName in interface RuleServicename - name of the Rulepublic List<Rule> getRulesByTemplateId(String templateId) throws RiceIllegalArgumentException
RuleServicegetRulesByTemplateId in interface RuleServicetemplateId - unique id for the RuleRiceIllegalArgumentException - if templateId is nullpublic List<Rule> getRulesByTemplateNameAndDocumentTypeName(String templateName, String documentTypeName)
RuleServicegetRulesByTemplateNameAndDocumentTypeName in interface RuleServicetemplateName - 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
RuleServicegetRulesByTemplateNameAndDocumentTypeNameAndEffectiveDate in interface RuleServicetemplateName - 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)
RuleServiceThis method returns it's results as a List of Rules that match the given search criteria.
findRules in interface RuleServicequeryByCriteria - the criteria. Cannot be null.public List<Rule> ruleReport(RuleReportCriteria ruleReportCriteria)
RuleServiceruleReport in interface RuleServiceruleReportCriteria - criteria for the rule report to followpublic RuleTemplate getRuleTemplate(String id)
RuleServicegetRuleTemplate in interface RuleServiceid - unique id for the RuleTemplatepublic RuleTemplate getRuleTemplateByName(String name)
RuleServicegetRuleTemplateByName in interface RuleServicename - unique name for the RuleTemplatepublic RuleTemplateQueryResults findRuleTemplates(QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException
RuleServiceThis method returns it's results as a List of RuleTemplates that match the given search criteria.
findRuleTemplates in interface RuleServicequeryByCriteria - the criteria. Cannot be null.RiceIllegalArgumentExceptionpublic RuleResponsibility getRuleResponsibility(String responsibilityId)
RuleServicegetRuleResponsibility in interface RuleServiceresponsibilityId - unique id for the RuleResponsibilitypublic List<RuleDelegation> getRuleDelegationsByResponsibiltityId(String id) throws RiceIllegalArgumentException, RiceIllegalStateException
RuleServicegetRuleDelegationsByResponsibiltityId in interface RuleServiceid - unique id for the RuleDelegation's ResponsibilityRiceIllegalArgumentException - if id is nullRiceIllegalStateExceptionpublic DataObjectService getDataObjectService()
public void setDataObjectService(DataObjectService dataObjectService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.