Class EventsServiceImpl

All Implemented Interfaces:
EventsService, TransactionListener, org.alfresco.util.transaction.TransactionListener

public class EventsServiceImpl extends AbstractEventsService implements EventsService
Event service implementation. Generates events and sends them to an event queue. TODO: transaction rollback handling, deletion of nodes (currently tied to beforeDeleteNode).
Author:
steveglover
  • Field Details

    • PROP_RMA_RECORD_ORIGINATING_LOCATION

      public static QName PROP_RMA_RECORD_ORIGINATING_LOCATION
  • Constructor Details

    • EventsServiceImpl

      public EventsServiceImpl()
  • Method Details

    • nodeMoved

      public void nodeMoved(ChildAssociationRef oldChildAssocRef, ChildAssociationRef newChildAssocRef)
      Description copied from interface: EventsService
      Generate a node moved event.
      Specified by:
      nodeMoved in interface EventsService
    • nodeRenamed

      public void nodeRenamed(NodeRef nodeRef, String oldName, String newName)
      Description copied from interface: EventsService
      Generate a node renamed event.
      Specified by:
      nodeRenamed in interface EventsService
    • nodeTagged

      public void nodeTagged(NodeRef nodeRef, String tag)
      Description copied from interface: EventsService
      Generate a node tag added event.
      Specified by:
      nodeTagged in interface EventsService
    • nodeTagRemoved

      public void nodeTagRemoved(NodeRef nodeRef, String tag)
      Description copied from interface: EventsService
      Generate a node tag removed event.
      Specified by:
      nodeTagRemoved in interface EventsService
    • nodeLiked

      public void nodeLiked(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate a node liked event.
      Specified by:
      nodeLiked in interface EventsService
    • nodeUnLiked

      public void nodeUnLiked(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate a node unliked event.
      Specified by:
      nodeUnLiked in interface EventsService
    • nodeFavourited

      public void nodeFavourited(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate a node favourited event.
      Specified by:
      nodeFavourited in interface EventsService
    • nodeUnFavourited

      public void nodeUnFavourited(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate a node un-favourited event.
      Specified by:
      nodeUnFavourited in interface EventsService
    • nodeCreated

      public void nodeCreated(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate a node created event.
      Specified by:
      nodeCreated in interface EventsService
    • secondaryAssociationCreated

      public void secondaryAssociationCreated(ChildAssociationRef secAssociation)
      Description copied from interface: EventsService
      Generated a node created event for a secondary child
      Specified by:
      secondaryAssociationCreated in interface EventsService
      Parameters:
      secAssociation - the child association being created
    • secondaryAssociationDeleted

      public void secondaryAssociationDeleted(ChildAssociationRef secAssociation)
      Description copied from interface: EventsService
      Generate a delete event for a secondary child
      Specified by:
      secondaryAssociationDeleted in interface EventsService
      Parameters:
      secAssociation - the child association being deleted
    • nodeDeleted

      public void nodeDeleted(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate a node deleted event.
      Specified by:
      nodeDeleted in interface EventsService
    • nodeCommented

      public void nodeCommented(NodeRef nodeRef, String comment)
      Description copied from interface: EventsService
      Generate a node commented event.
      Specified by:
      nodeCommented in interface EventsService
    • nodeUpdated

      public void nodeUpdated(NodeRef nodeRef, Map<String,org.alfresco.sync.events.types.Property> propertiesAdded, Set<String> propertiesRemoved, Map<String,org.alfresco.sync.events.types.Property> propertiesChanged, Set<String> aspectsAdded, Set<String> aspectsRemoved)
      Description copied from interface: EventsService
      Generate a node updated event (property and aspect changes).
      Specified by:
      nodeUpdated in interface EventsService
    • contentGet

      public void contentGet(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate a node content get/read event.
      Specified by:
      contentGet in interface EventsService
    • contentWrite

      public void contentWrite(NodeRef nodeRef, QName propertyQName, ContentData value)
      Description copied from interface: EventsService
      Generate a node write/update event.
      Specified by:
      contentWrite in interface EventsService
    • nodeCheckedOut

      public void nodeCheckedOut(NodeRef workingCopyNodeRef)
      Specified by:
      nodeCheckedOut in interface EventsService
    • nodeCheckOutCancelled

      public void nodeCheckOutCancelled(NodeRef nodeRef)
      Specified by:
      nodeCheckOutCancelled in interface EventsService
    • nodeCheckedIn

      public void nodeCheckedIn(NodeRef nodeRef)
      Specified by:
      nodeCheckedIn in interface EventsService
    • authorityRemovedFromGroup

      public void authorityRemovedFromGroup(String parentGroup, String childAuthority)
      Description copied from interface: EventsService
      Generate an authority removed from group event
      Specified by:
      authorityRemovedFromGroup in interface EventsService
      Parameters:
      parentGroup - the group the authority is removed from
      childAuthority - the authority which leaves a certain group
    • authorityAddedToGroup

      public void authorityAddedToGroup(String parentGroup, String childAuthority)
      Description copied from interface: EventsService
      Generate an authority added to a group
      Specified by:
      authorityAddedToGroup in interface EventsService
      Parameters:
      parentGroup - the group the authority is added to
      childAuthority - the authority which is added to the group
    • groupDeleted

      public void groupDeleted(String groupName, boolean cascade)
      Description copied from interface: EventsService
      Generate a group deleted event
      Specified by:
      groupDeleted in interface EventsService
      Parameters:
      groupName - the group being deleted
      cascade - whether it's a cascading delete or not
    • inheritPermissionsEnabled

      public void inheritPermissionsEnabled(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate an inherit permissions enabled event
      Specified by:
      inheritPermissionsEnabled in interface EventsService
      Parameters:
      nodeRef - the node which has the permission inheritance enabled
    • inheritPermissionsDisabled

      public void inheritPermissionsDisabled(NodeRef nodeRef, boolean async)
      Description copied from interface: EventsService
      Generate an inherit permissions disabled event
      Specified by:
      inheritPermissionsDisabled in interface EventsService
      Parameters:
      nodeRef - the node which has the permission inheritance disabled
      async - whether the disabling is done asynchronously or not
    • revokeLocalPermissions

      public void revokeLocalPermissions(NodeRef nodeRef, String authority, String permission)
      Description copied from interface: EventsService
      Generate a revoke local permission event
      Specified by:
      revokeLocalPermissions in interface EventsService
      Parameters:
      nodeRef - the node on which certain local permissions are revoked
      authority - the authority which has the permissions revoked
      permission - the permissions which are revoked
    • grantLocalPermission

      public void grantLocalPermission(NodeRef nodeRef, String authority, String permission)
      Description copied from interface: EventsService
      Generate a grant local permission event
      Specified by:
      grantLocalPermission in interface EventsService
      Parameters:
      nodeRef - the node to which certain local permissions are granted
      authority - the authority which has the permissions granted
      permission - the permissions which are granted
    • fileUnclassified

      public void fileUnclassified(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate an event when a file is unclassified
      Specified by:
      fileUnclassified in interface EventsService
      Parameters:
      nodeRef - the node from which the security mark is removed
    • fileClassified

      public void fileClassified(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate an event when a file is classified
      Specified by:
      fileClassified in interface EventsService
      Parameters:
      nodeRef - the node on which a security mark is applied
    • recordRejected

      public void recordRejected(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate an event when a record is rejected
      Specified by:
      recordRejected in interface EventsService
      Parameters:
      nodeRef - the node which becomes a regular file again after the record is rejected
    • recordCreated

      public void recordCreated(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate an event when a record is created
      Specified by:
      recordCreated in interface EventsService
      Parameters:
      nodeRef - the node being declared as a record
    • nodeLocked

      public void nodeLocked(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate an event when a node is locked
      Specified by:
      nodeLocked in interface EventsService
    • nodeUnlocked

      public void nodeUnlocked(NodeRef nodeRef)
      Description copied from interface: EventsService
      Generate an event when a node is unlocked
      Specified by:
      nodeUnlocked in interface EventsService