Class AddNoteEvent
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.AddNoteEvent
- All Implemented Interfaces:
DocumentEvent,RuleEvent
This class represents the add note event that is part of an eDoc in Kuali. This is triggered when a user presses the add button
for a given note or it could happen when another piece of code calls the create note method in the document service.
-
Field Summary
Fields inherited from class org.kuali.rice.krad.rules.rule.event.DocumentEventBase
document -
Constructor Summary
ConstructorsConstructorDescriptionAddNoteEvent(String errorPathPrefix, Document document, org.kuali.rice.krad.bo.Note note) Constructs an AddNoteEvent with the specified errorPathPrefix and documentAddNoteEvent(Document document, org.kuali.rice.krad.bo.Note note) Constructs an AddNoteEvent with the given document -
Method Summary
Modifier and TypeMethodDescriptionorg.kuali.rice.krad.bo.NotegetNote()This method retrieves the note 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
-
AddNoteEvent
Constructs an AddNoteEvent with the specified errorPathPrefix and document- Parameters:
errorPathPrefix-document-
-
AddNoteEvent
Constructs an AddNoteEvent with the given document- Parameters:
document-
-
-
Method Details
-
getNote
public org.kuali.rice.krad.bo.Note getNote()This method retrieves the note associated with this event.- Returns:
- note
-
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:
-