|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.service.impl.KualiRuleServiceImpl
public class KualiRuleServiceImpl
This class represents a rule evaluator for Kuali. This class is to be used for evaluating business rule checks. The class defines one method right now - applyRules() which takes in a Document and a DocumentEvent and does the proper business rule checks based on the context of the event and the document type.
Constructor Summary | |
---|---|
KualiRuleServiceImpl()
|
Method Summary | |
---|---|
boolean |
applyRules(KualiDocumentEvent 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()
|
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService)
|
void |
setDocumentDictionaryService(DocumentDictionaryService documentDictionaryService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KualiRuleServiceImpl()
Method Detail |
---|
public boolean applyRules(KualiDocumentEvent event)
KualiRuleService
applyRules
in interface KualiRuleService
KualiRuleService.applyRules(org.kuali.rice.krad.rules.rule.event.KualiDocumentEvent)
public List<AddAdHocRoutePersonEvent> generateAdHocRoutePersonEvents(Document document)
generateAdHocRoutePersonEvents
in interface KualiRuleService
KualiRuleService.generateAdHocRoutePersonEvents(org.kuali.rice.krad.document.Document)
public List<AddAdHocRouteWorkgroupEvent> generateAdHocRouteWorkgroupEvents(Document document)
generateAdHocRouteWorkgroupEvents
in interface KualiRuleService
KualiRuleService.generateAdHocRouteWorkgroupEvents(org.kuali.rice.krad.document.Document)
public BusinessRule getBusinessRulesInstance(Document document, Class<? extends BusinessRule> ruleInterface)
KualiRuleService
getBusinessRulesInstance
in interface KualiRuleService
document
- ruleInterface
-
public DocumentDictionaryService getDocumentDictionaryService()
public void setDocumentDictionaryService(DocumentDictionaryService documentDictionaryService)
public DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |