public class KualiRuleServiceImpl extends Object implements KualiRuleService
| Constructor and Description | 
|---|
| KualiRuleServiceImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | applyRules(DocumentEvent event)Retrieves and instantiates the businessRulesClass associated with the event's document type (if any), and calls
 the appropriate process* method of that businessRule for handling the given event type. | 
| List<AddAdHocRoutePersonEvent> | generateAdHocRoutePersonEvents(Document document)Builds a list containing AddAdHocRoutePersonEvents since the validation done for an AdHocRouteRecipient is the
 same for all events | 
| List<AddAdHocRouteWorkgroupEvent> | generateAdHocRouteWorkgroupEvents(Document document)Builds a list containing AddAdHocRoutePersonEvents since the validation done for an AdHocRouteRecipient is the
 same for all events | 
| BusinessRule | getBusinessRulesInstance(Document document,
                                                Class<? extends BusinessRule> ruleInterface)Allows code in actions or business objects to directly access rule methods in the class. | 
| DataDictionaryService | getDataDictionaryService() | 
| DocumentDictionaryService | getDocumentDictionaryService() | 
| boolean | invokeBusinessRuleMethod(BusinessRule rule,
                                                DocumentEvent event)local helper method to invoke the business rule method | 
| void | setDataDictionaryService(DataDictionaryService dataDictionaryService) | 
| void | setDocumentDictionaryService(DocumentDictionaryService documentDictionaryService) | 
public KualiRuleServiceImpl()
public boolean applyRules(DocumentEvent event)
KualiRuleServiceThis is a helper method that takes in the generic DocumentEvent class and determines which event call to make.
applyRules in interface KualiRuleServiceKualiRuleService.applyRules(org.kuali.rice.krad.rules.rule.event.DocumentEvent)public boolean invokeBusinessRuleMethod(BusinessRule rule, DocumentEvent event)
rule - the business rule class that the method to invoke belongs toevent - the document event the rule applies topublic List<AddAdHocRoutePersonEvent> generateAdHocRoutePersonEvents(Document document)
generateAdHocRoutePersonEvents in interface KualiRuleServiceKualiRuleService.generateAdHocRoutePersonEvents(org.kuali.rice.krad.document.Document)public List<AddAdHocRouteWorkgroupEvent> generateAdHocRouteWorkgroupEvents(Document document)
generateAdHocRouteWorkgroupEvents in interface KualiRuleServiceKualiRuleService.generateAdHocRouteWorkgroupEvents(org.kuali.rice.krad.document.Document)public BusinessRule getBusinessRulesInstance(Document document, Class<? extends BusinessRule> ruleInterface)
KualiRuleServicegetBusinessRulesInstance in interface KualiRuleServicedocument - ruleInterface - public DocumentDictionaryService getDocumentDictionaryService()
public void setDocumentDictionaryService(DocumentDictionaryService documentDictionaryService)
public DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.