Package org.alfresco.repo.event2
Class PeerAssociationEventConsolidator
java.lang.Object
org.alfresco.repo.event2.EventConsolidator<AssociationRef,org.alfresco.repo.event.v1.model.PeerAssociationResource>
org.alfresco.repo.event2.PeerAssociationEventConsolidator
- All Implemented Interfaces:
PeerAssociationEventSupportedPolicies,NodeServicePolicies.BeforeDeleteAssociationPolicy,NodeServicePolicies.OnCreateAssociationPolicy,AssociationPolicy,Policy
public class PeerAssociationEventConsolidator
extends EventConsolidator<AssociationRef,org.alfresco.repo.event.v1.model.PeerAssociationResource>
implements PeerAssociationEventSupportedPolicies
Encapsulates peer association events occurred in a single transaction.
- Author:
- 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.BeforeDeleteAssociationPolicy
QNAMEFields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnCreateAssociationPolicy
QNAME -
Constructor Summary
ConstructorsConstructorDescriptionPeerAssociationEventConsolidator(AssociationRef associationRef, NodeResourceHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeDeleteAssociation(AssociationRef associationRef) Add peer association deleted event on delete of a peer association.protected org.alfresco.repo.event.v1.model.EventTypeGet a derived event for a transaction.Get entity (e.g. node, peer association, child association) type.booleanWhether the entity has been created and then deleted, e.g. a temporary node.voidonCreateAssociation(AssociationRef associationRef) Add peer association created event on create of a peer association.Methods inherited from class org.alfresco.repo.event2.EventConsolidator
buildEventData, configureRepoEventBuilder, getEventTypes, getRepoEvent
-
Constructor Details
-
PeerAssociationEventConsolidator
-
-
Method Details
-
onCreateAssociation
Add peer association created event on create of a peer association.- Specified by:
onCreateAssociationin interfaceNodeServicePolicies.OnCreateAssociationPolicy- Parameters:
associationRef- AssociationRef
-
beforeDeleteAssociation
Add peer association deleted event on delete of a peer association.- Specified by:
beforeDeleteAssociationin interfaceNodeServicePolicies.BeforeDeleteAssociationPolicy- Parameters:
associationRef- AssociationRef
-
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<AssociationRef,org.alfresco.repo.event.v1.model.PeerAssociationResource> - 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<AssociationRef,org.alfresco.repo.event.v1.model.PeerAssociationResource> - 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<AssociationRef,org.alfresco.repo.event.v1.model.PeerAssociationResource> - Returns:
- QName the peer association type
-