|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.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.
Field Summary | |
---|---|
private DataDictionaryService |
dataDictionaryService
|
private DictionaryValidationService |
dictionaryValidationService
|
private static org.apache.log4j.Logger |
LOG
|
private MaintenanceDocumentDictionaryService |
maintenanceDocumentDictionaryService
|
private TransactionalDocumentDictionaryService |
transactionalDocumentDictionaryService
|
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. |
private void |
decreaseErrorPath(String errorPathPrefix)
This method decreases the registered error path, so that field highlighting can occur on the appropriate object attribute. |
List |
generateAdHocRoutePersonEvents(Document document)
Builds a list containing AddAdHocRoutePersonEvents since the validation done for an AdHocRouteRecipient is the same for all events. |
List |
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 ruleInterface)
Allows code in actions or business objects to directly access rule methods in the class. |
DataDictionaryService |
getDataDictionaryService()
|
DictionaryValidationService |
getDictionaryValidationService()
|
MaintenanceDocumentDictionaryService |
getMaintenanceDocumentDictionaryService()
|
TransactionalDocumentDictionaryService |
getTransactionalDocumentDictionaryService()
|
private void |
increaseErrorPath(String errorPathPrefix)
This method increases the registered error path, so that field highlighting can occur on the appropriate object attribute. |
void |
setDataDictionaryService(DataDictionaryService dataDictionaryService)
|
void |
setDictionaryValidationService(DictionaryValidationService dictionaryValidationService)
|
void |
setMaintenanceDocumentDictionaryService(MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService)
|
void |
setTransactionalDocumentDictionaryService(TransactionalDocumentDictionaryService transactionalDocumentDictionaryService)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger LOG
private TransactionalDocumentDictionaryService transactionalDocumentDictionaryService
private MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService
private DictionaryValidationService dictionaryValidationService
private DataDictionaryService dataDictionaryService
Constructor Detail |
---|
public KualiRuleServiceImpl()
Method Detail |
---|
public boolean applyRules(KualiDocumentEvent event)
KualiRuleService
applyRules
in interface KualiRuleService
KualiRuleService.applyRules(org.kuali.rice.kns.rule.event.KualiDocumentEvent)
public List generateAdHocRoutePersonEvents(Document document)
generateAdHocRoutePersonEvents
in interface KualiRuleService
KualiRuleService.generateAdHocRoutePersonEvents(org.kuali.rice.kns.document.Document)
public List generateAdHocRouteWorkgroupEvents(Document document)
generateAdHocRouteWorkgroupEvents
in interface KualiRuleService
KualiRuleService.generateAdHocRouteWorkgroupEvents(org.kuali.rice.kns.document.Document)
public BusinessRule getBusinessRulesInstance(Document document, Class ruleInterface)
KualiRuleService
getBusinessRulesInstance
in interface KualiRuleService
document
- ruleInterface
-
private void increaseErrorPath(String errorPathPrefix)
errorPathPrefix
- private void decreaseErrorPath(String errorPathPrefix)
errorPathPrefix
- public void setMaintenanceDocumentDictionaryService(MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService)
maintenanceDocumentDictionaryService
- public MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
public void setTransactionalDocumentDictionaryService(TransactionalDocumentDictionaryService transactionalDocumentDictionaryService)
transactionalDocumentDictionaryService
- public TransactionalDocumentDictionaryService getTransactionalDocumentDictionaryService()
public DictionaryValidationService getDictionaryValidationService()
public void setDictionaryValidationService(DictionaryValidationService dictionaryValidationService)
dictionaryValidationService
- public DataDictionaryService getDataDictionaryService()
public void setDataDictionaryService(DataDictionaryService dataDictionaryService)
dataDictionaryService
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |