Class AddAdHocRoutePersonEvent
java.lang.Object
org.kuali.rice.krad.rules.rule.event.RuleEventBase
org.kuali.rice.krad.rules.rule.event.DocumentEventBase
org.kuali.rice.krad.rules.rule.event.AddAdHocRoutePersonEvent
- All Implemented Interfaces:
DocumentEvent,RuleEvent
This class represents the add AdHocRoutePerson event that is part of an eDoc in Kuali. This is triggered when a user presses the
add button for a given adHocRoutePerson.
-
Field Summary
Fields inherited from class org.kuali.rice.krad.rules.rule.event.DocumentEventBase
document -
Constructor Summary
ConstructorsConstructorDescriptionAddAdHocRoutePersonEvent(String errorPathPrefix, Document document, AdHocRoutePerson adHocRoutePerson) Constructs an AddAdHocRoutePersonEvent with the specified errorPathPrefix, document, and adHocRoutePersonAddAdHocRoutePersonEvent(Document document, AdHocRoutePerson adHocRoutePerson) Constructs an AddAdHocRoutePersonEvent with the given document -
Method Summary
Modifier and TypeMethodDescriptionThis method retrieves the document adHocRoutePerson associated with this event.Class<? extends BusinessRule> Returns the interface that classes must implement to receive this event.booleaninvokeRuleMethod(BusinessRule rule) Invokes the event handling method on the rule object.voidvalidate()Validates the event has all the necessary properties.Methods inherited from class org.kuali.rice.krad.rules.rule.event.DocumentEventBase
getDocument, getDocumentIdMethods inherited from class org.kuali.rice.krad.rules.rule.event.RuleEventBase
addFact, generateEvents, getDescription, getErrorPathPrefix, getFacts, getName, getRuleMethodName, setFacts, setName, setRuleMethodName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.rules.rule.event.RuleEvent
generateEvents, getDescription, getErrorPathPrefix, getFacts, getName, getRuleMethodName
-
Constructor Details
-
AddAdHocRoutePersonEvent
public AddAdHocRoutePersonEvent(String errorPathPrefix, Document document, AdHocRoutePerson adHocRoutePerson) Constructs an AddAdHocRoutePersonEvent with the specified errorPathPrefix, document, and adHocRoutePerson- Parameters:
errorPathPrefix-document-adHocRoutePerson-
-
AddAdHocRoutePersonEvent
Constructs an AddAdHocRoutePersonEvent with the given document- Parameters:
document-adHocRoutePerson-
-
-
Method Details
-
getAdHocRoutePerson
This method retrieves the document adHocRoutePerson associated with this event.- Returns:
- AdHocRoutePerson
-
validate
public void validate()Description copied from interface:RuleEventValidates the event has all the necessary properties.- Specified by:
validatein interfaceRuleEvent- Overrides:
validatein classDocumentEventBase- See Also:
-
getRuleInterfaceClass
Description copied from interface:RuleEventReturns the interface that classes must implement to receive this event.- Returns:
- rule interface
- See Also:
-
invokeRuleMethod
Description copied from interface:RuleEventInvokes the event handling method on the rule object.- Parameters:
rule- business rule- Returns:
- true if the rule matches
- See Also:
-