Package org.alfresco.repo.event2
Class ChildAssociationEventConsolidator
java.lang.Object
org.alfresco.repo.event2.EventConsolidator<ChildAssociationRef,org.alfresco.repo.event.v1.model.ChildAssociationResource>
org.alfresco.repo.event2.ChildAssociationEventConsolidator
- All Implemented Interfaces:
ChildAssociationEventSupportedPolicies,NodeServicePolicies.BeforeDeleteChildAssociationPolicy,NodeServicePolicies.OnCreateChildAssociationPolicy,AssociationPolicy,Policy
public class ChildAssociationEventConsolidator
extends EventConsolidator<ChildAssociationRef,org.alfresco.repo.event.v1.model.ChildAssociationResource>
implements ChildAssociationEventSupportedPolicies
Encapsulates child association events that occurred in a single transaction.
- Author:
- Chris Shields, Sara Aspery
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg -
Field Summary
Fields inherited from class org.alfresco.repo.event2.EventConsolidator
entityReference, eventTypes, helper, resourceFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.BeforeDeleteChildAssociationPolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateChildAssociationPolicy
QNAME -
Constructor Summary
ConstructorsConstructorDescriptionChildAssociationEventConsolidator(ChildAssociationRef childAssociationRef, NodeResourceHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeDeleteChildAssociation(ChildAssociationRef childAssociationRef) Add child association deleted event on delete of a child association.protected org.alfresco.repo.event.v1.model.EventTypeGet a derived event for a transaction.Get entity (e.g.booleanWhether the entity has been created and then deleted, e.g.voidonCreateChildAssociation(ChildAssociationRef childAssociationRef, boolean isNewNode) Add child association created event on create of a child association.Methods inherited from class org.alfresco.repo.event2.EventConsolidator
buildEventData, getEventTypes, getRepoEvent
-
Constructor Details
-
ChildAssociationEventConsolidator
public ChildAssociationEventConsolidator(ChildAssociationRef childAssociationRef, NodeResourceHelper helper)
-
-
Method Details
-
onCreateChildAssociation
Add child association created event on create of a child association.- Specified by:
onCreateChildAssociationin interfaceNodeServicePolicies.OnCreateChildAssociationPolicy- Parameters:
childAssociationRef- ChildAssociationRefisNewNode- true if the node is new or false if the node is being linked in
-
beforeDeleteChildAssociation
Add child association deleted event on delete of a child association.- Specified by:
beforeDeleteChildAssociationin interfaceNodeServicePolicies.BeforeDeleteChildAssociationPolicy- Parameters:
childAssociationRef- ChildAssociationRef
-
getDerivedEvent
protected org.alfresco.repo.event.v1.model.EventType getDerivedEvent()Description copied from class:EventConsolidatorGet a derived event for a transaction.- Specified by:
getDerivedEventin classEventConsolidator<ChildAssociationRef,org.alfresco.repo.event.v1.model.ChildAssociationResource> - Returns:
- a derived event type
-
isTemporaryEntity
public boolean isTemporaryEntity()Description copied from class:EventConsolidatorWhether the entity has been created and then deleted, e.g. a temporary node.- Specified by:
isTemporaryEntityin classEventConsolidator<ChildAssociationRef,org.alfresco.repo.event.v1.model.ChildAssociationResource> - Returns:
trueif the node has been created and then deleted, otherwise false
-
getEntityType
Description copied from class:EventConsolidatorGet entity (e.g. node, peer association, child association) type.- Specified by:
getEntityTypein classEventConsolidator<ChildAssociationRef,org.alfresco.repo.event.v1.model.ChildAssociationResource> - Returns:
- QName the peer association type
-