Class AddCollectionLineEvent
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.AddCollectionLineEvent
- All Implemented Interfaces:
DocumentEvent,RuleEvent
Defines the add collection line event fired when a user adds a line in a collection in a document.
- 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
ConstructorsModifierConstructorDescriptionprotectedAddCollectionLineEvent(String eventType, String errorPathPrefix, Document document, String collectionName, Object addLine) Constructs an event for a document adding a line to the collection with the namecollectionNamewith a specificerrorPathPrefixandeventType.AddCollectionLineEvent(String errorPathPrefix, Document document, String collectionName, Object addLine) Constructs an event for a document adding a line to the collection with the namecollectionNamewith a specificerrorPathPrefix.AddCollectionLineEvent(Document document, String collectionName, Object addLine) Constructs an event for a document adding a line to the collection with the namecollectionName. -
Method Summary
Modifier and TypeMethodDescriptionThe object being added to the collection.The name of the collection being added to.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, 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
-
AddCollectionLineEvent
Constructs an event for a document adding a line to the collection with the namecollectionName.- Parameters:
document- the document containing the collection objectscollectionName- the name of the collection objectaddLine- the object being added to the collection
-
AddCollectionLineEvent
public AddCollectionLineEvent(String errorPathPrefix, Document document, String collectionName, Object addLine) Constructs an event for a document adding a line to the collection with the namecollectionNamewith a specificerrorPathPrefix.- Parameters:
errorPathPrefix- the prefix to add to the error path for reporting messagesdocument- the document containing the collection objectscollectionName- the name of the collection objectaddLine- the object being added to the collection
-
AddCollectionLineEvent
protected AddCollectionLineEvent(String eventType, String errorPathPrefix, Document document, String collectionName, Object addLine) Constructs an event for a document adding a line to the collection with the namecollectionNamewith a specificerrorPathPrefixandeventType.- Parameters:
eventType- the name of the type of eventerrorPathPrefix- the prefix to add to the error path for reporting messagesdocument- the document containing the collection objectscollectionName- the name of the collection objectaddLine- the object being added to the collection
-
-
Method Details
-
getRuleInterfaceClass
Returns the interface that classes must implement to receive this event. Specifies that this class returns theAddCollectionLineRuleclass.- Returns:
- rule interface
-
invokeRuleMethod
Invokes the event handling method on the rule object. Invokes the specific rule inAddCollectionLineRule.- Parameters:
rule- business rule- Returns:
- true if the rule matches
-
getCollectionName
The name of the collection being added to.- Returns:
- the collection name
-
getAddLine
The object being added to the collection.- Returns:
- the added object
-