Class SaveDocumentEvent
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.SaveDocumentEvent
- All Implemented Interfaces:
DocumentEvent,RuleEvent,SaveEvent
- Direct Known Subclasses:
SaveOnlyDocumentEvent
Rule event generated for a save of a document instance.
This could be triggered when a user presses the save button for a given document or it could happen when another piece of code calls the save method in the document service.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Field Summary
Fields inherited from class org.kuali.rice.krad.rules.rule.event.DocumentEventBase
document -
Constructor Summary
ConstructorsConstructorDescriptionSaveDocumentEvent(String description, String errorPathPrefix, Document document) SaveDocumentEvent(String errorPathPrefix, Document document) Constructs a SaveDocumentEvent with the specified errorPathPrefix and documentSaveDocumentEvent(Document document) Constructs a SaveDocumentEvent with the given document -
Method Summary
Modifier and TypeMethodDescriptionThis will return a list of events that are spawned from 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.Methods inherited from class org.kuali.rice.krad.rules.rule.event.DocumentEventBase
getDocument, getDocumentId, validateMethods inherited from class org.kuali.rice.krad.rules.rule.event.RuleEventBase
addFact, 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
getDescription, getErrorPathPrefix, getFacts, getName, getRuleMethodName
-
Constructor Details
-
SaveDocumentEvent
Constructs a SaveDocumentEvent with the specified errorPathPrefix and document- Parameters:
errorPathPrefix-document-
-
SaveDocumentEvent
Constructs a SaveDocumentEvent with the given document- Parameters:
document-
-
SaveDocumentEvent
- See Also:
-
-
Method Details
-
getRuleInterfaceClass
Description copied from interface:RuleEventReturns the interface that classes must implement to receive this event.- Specified by:
getRuleInterfaceClassin interfaceRuleEvent- Returns:
- rule interface
- See Also:
-
invokeRuleMethod
Description copied from interface:RuleEventInvokes the event handling method on the rule object.- Specified by:
invokeRuleMethodin interfaceRuleEvent- Parameters:
rule- business rule- Returns:
- true if the rule matches
- See Also:
-
generateEvents
Description copied from interface:RuleEventThis will return a list of events that are spawned from this event.- Specified by:
generateEventsin interfaceRuleEvent- Overrides:
generateEventsin classRuleEventBase- Returns:
- list of events
- See Also:
-