org.kuali.rice.kns.service.impl
Class KualiRuleServiceImpl
java.lang.Object
org.kuali.rice.kns.service.impl.KualiRuleServiceImpl
- All Implemented Interfaces:
- org.kuali.rice.kns.service.KualiRuleService
public class KualiRuleServiceImpl
- extends Object
- implements org.kuali.rice.kns.service.KualiRuleService
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KualiRuleServiceImpl
public KualiRuleServiceImpl()
applyRules
public boolean applyRules(org.kuali.rice.kns.rule.event.KualiDocumentEvent event)
- Specified by:
applyRules
in interface org.kuali.rice.kns.service.KualiRuleService
- See Also:
KualiRuleService.applyRules(org.kuali.rice.kns.rule.event.KualiDocumentEvent)
generateAdHocRoutePersonEvents
public List<org.kuali.rice.kns.rule.event.AddAdHocRoutePersonEvent> generateAdHocRoutePersonEvents(org.kuali.rice.kns.document.Document document)
- Builds a list containing AddAdHocRoutePersonEvents since the validation done for an AdHocRouteRecipient is the same for all
events.
- Specified by:
generateAdHocRoutePersonEvents
in interface org.kuali.rice.kns.service.KualiRuleService
- See Also:
KualiRuleService.generateAdHocRoutePersonEvents(org.kuali.rice.kns.document.Document)
generateAdHocRouteWorkgroupEvents
public List<org.kuali.rice.kns.rule.event.AddAdHocRouteWorkgroupEvent> generateAdHocRouteWorkgroupEvents(org.kuali.rice.kns.document.Document document)
- Builds a list containing AddAdHocRoutePersonEvents since the validation done for an AdHocRouteRecipient is the same for all
events.
- Specified by:
generateAdHocRouteWorkgroupEvents
in interface org.kuali.rice.kns.service.KualiRuleService
- See Also:
KualiRuleService.generateAdHocRouteWorkgroupEvents(org.kuali.rice.kns.document.Document)
getBusinessRulesInstance
public org.kuali.rice.kns.rule.BusinessRule getBusinessRulesInstance(org.kuali.rice.kns.document.Document document,
Class<? extends org.kuali.rice.kns.rule.BusinessRule> ruleInterface)
- Specified by:
getBusinessRulesInstance
in interface org.kuali.rice.kns.service.KualiRuleService
- Parameters:
document
- ruleInterface
-
- Returns:
- instance of the businessRulesClass for the given document's type, if that businessRulesClass implements the given
ruleInterface
setMaintenanceDocumentDictionaryService
public void setMaintenanceDocumentDictionaryService(org.kuali.rice.kns.service.MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService)
- Parameters:
maintenanceDocumentDictionaryService
-
getMaintenanceDocumentDictionaryService
public org.kuali.rice.kns.service.MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
- Returns:
- MaintenanceDocumentDictionaryService
setTransactionalDocumentDictionaryService
public void setTransactionalDocumentDictionaryService(org.kuali.rice.kns.service.TransactionalDocumentDictionaryService transactionalDocumentDictionaryService)
- Parameters:
transactionalDocumentDictionaryService
-
getTransactionalDocumentDictionaryService
public org.kuali.rice.kns.service.TransactionalDocumentDictionaryService getTransactionalDocumentDictionaryService()
- Returns:
- TransactionalDocumentDictionaryService
getDictionaryValidationService
public org.kuali.rice.kns.service.DictionaryValidationService getDictionaryValidationService()
- Returns:
- DictionaryValidationService
setDictionaryValidationService
public void setDictionaryValidationService(org.kuali.rice.kns.service.DictionaryValidationService dictionaryValidationService)
- Parameters:
dictionaryValidationService
-
getDataDictionaryService
public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
- Returns:
- DataDictionaryService
setDataDictionaryService
public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
- Parameters:
dataDictionaryService
-
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.