org.kuali.rice.krad.rules.rule.event
Class AddNoteEvent

java.lang.Object
  extended by org.kuali.rice.krad.rules.rule.event.KualiDocumentEventBase
      extended by org.kuali.rice.krad.rules.rule.event.AddNoteEvent
All Implemented Interfaces:
KualiDocumentEvent

public final class AddNoteEvent
extends KualiDocumentEventBase

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.KualiDocumentEventBase
document
 
Constructor Summary
AddNoteEvent(Document document, Note note)
          Constructs an AddNoteEvent with the given document
AddNoteEvent(String errorPathPrefix, Document document, Note note)
          Constructs an AddNoteEvent with the specified errorPathPrefix and document
 
Method Summary
 Note getNote()
          This method retrieves the note associated with this event.
 Class<? extends BusinessRule> getRuleInterfaceClass()
          Returns the interface that classes must implement to receive this event.
 boolean invokeRuleMethod(BusinessRule rule)
          Invokes the event handling method on the rule object.
 void validate()
          Validates the event has all the necessary properties.
 
Methods inherited from class org.kuali.rice.krad.rules.rule.event.KualiDocumentEventBase
generateEvents, getDescription, getDocument, getDocumentId, getErrorPathPrefix, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddNoteEvent

public AddNoteEvent(String errorPathPrefix,
                    Document document,
                    Note note)
Constructs an AddNoteEvent with the specified errorPathPrefix and document

Parameters:
document -
errorPathPrefix -

AddNoteEvent

public AddNoteEvent(Document document,
                    Note note)
Constructs an AddNoteEvent with the given document

Parameters:
document -
Method Detail

getNote

public Note getNote()
This method retrieves the note associated with this event.

Returns:

validate

public void validate()
Description copied from interface: KualiDocumentEvent
Validates the event has all the necessary properties.

Specified by:
validate in interface KualiDocumentEvent
Overrides:
validate in class KualiDocumentEventBase
See Also:
KualiDocumentEvent.validate()

getRuleInterfaceClass

public Class<? extends BusinessRule> getRuleInterfaceClass()
Description copied from interface: KualiDocumentEvent
Returns the interface that classes must implement to receive this event.

Returns:
See Also:
KualiDocumentEvent.getRuleInterfaceClass()

invokeRuleMethod

public boolean invokeRuleMethod(BusinessRule rule)
Description copied from interface: KualiDocumentEvent
Invokes the event handling method on the rule object.

Returns:
See Also:
KualiDocumentEvent.invokeRuleMethod(org.kuali.rice.krad.rules.rule.BusinessRule)


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.