Interface EventsService

  • All Known Implementing Classes:
    EventsServiceImpl

    public interface EventsService
    Event generation service.
    Author:
    steveglover
    • Method Detail

      • nodeRenamed

        void nodeRenamed​(NodeRef nodeRef,
                         String oldName,
                         String newName)
        Generate a node renamed event.
      • nodeCreated

        void nodeCreated​(NodeRef nodeRef)
        Generate a node created event.
        Parameters:
        nodeRef -
      • nodeDeleted

        void nodeDeleted​(NodeRef nodeRef)
        Generate a node deleted event.
        Parameters:
        nodeRef -
      • nodeUpdated

        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)
        Generate a node updated event (property and aspect changes).
        Parameters:
        nodeRef -
        propertiesAdded -
        propertiesRemoved -
        propertiesChanged -
        aspectsAdded -
        aspectsRemoved -
      • nodeTagged

        void nodeTagged​(NodeRef nodeRef,
                        String tag)
        Generate a node tag added event.
        Parameters:
        nodeRef -
        tag -
      • nodeTagRemoved

        void nodeTagRemoved​(NodeRef nodeRef,
                            String tag)
        Generate a node tag removed event.
        Parameters:
        nodeRef -
      • nodeLiked

        void nodeLiked​(NodeRef nodeRef)
        Generate a node liked event.
        Parameters:
        nodeRef -
      • nodeUnLiked

        void nodeUnLiked​(NodeRef nodeRef)
        Generate a node unliked event.
        Parameters:
        nodeRef -
      • nodeFavourited

        void nodeFavourited​(NodeRef nodeRef)
        Generate a node favourited event.
        Parameters:
        nodeRef -
      • nodeUnFavourited

        void nodeUnFavourited​(NodeRef nodeRef)
        Generate a node un-favourited event.
        Parameters:
        nodeRef -
      • nodeCommented

        void nodeCommented​(NodeRef nodeRef,
                           String comment)
        Generate a node commented event.
        Parameters:
        nodeRef -
      • contentGet

        void contentGet​(NodeRef nodeRef)
        Generate a node content get/read event.
        Parameters:
        nodeRef -
      • contentWrite

        void contentWrite​(NodeRef nodeRef,
                          QName propertyQName,
                          ContentData value)
        Generate a node write/update event.
        Parameters:
        nodeRef -
      • nodeCheckedOut

        void nodeCheckedOut​(NodeRef workingCopyNodeRef)
      • nodeCheckOutCancelled

        void nodeCheckOutCancelled​(NodeRef nodeRef)
      • nodeCheckedIn

        void nodeCheckedIn​(NodeRef nodeRef)
      • authorityRemovedFromGroup

        void authorityRemovedFromGroup​(String parentGroup,
                                       String childAuthority)
        Generate an authority removed from group event
        Parameters:
        parentGroup - the group the authority is removed from
        childAuthority - the authority which leaves a certain group
      • authorityAddedToGroup

        void authorityAddedToGroup​(String parentGroup,
                                   String childAuthority)
        Generate an authority added to a group
        Parameters:
        parentGroup - the group the authority is added to
        childAuthority - the authority which is added to the group
      • inheritPermissionsEnabled

        void inheritPermissionsEnabled​(NodeRef nodeRef)
        Generate an inherit permissions enabled event
        Parameters:
        nodeRef - the node which has the permission inheritance enabled
      • inheritPermissionsDisabled

        void inheritPermissionsDisabled​(NodeRef nodeRef,
                                        boolean async)
        Generate an inherit permissions disabled event
        Parameters:
        nodeRef - the node which has the permission inheritance disabled
        async - whether the disabling is done asynchronously or not
      • revokeLocalPermissions

        void revokeLocalPermissions​(NodeRef nodeRef,
                                    String authority,
                                    String permission)
        Generate a revoke local permission event
        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

        void grantLocalPermission​(NodeRef nodeRef,
                                  String authority,
                                  String permission)
        Generate a grant local permission event
        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
      • groupDeleted

        void groupDeleted​(String groupName,
                          boolean cascade)
        Generate a group deleted event
        Parameters:
        groupName - the group being deleted
        cascade - whether it's a cascading delete or not
      • secondaryAssociationCreated

        void secondaryAssociationCreated​(ChildAssociationRef secAssociation)
        Generated a node created event for a secondary child
        Parameters:
        secAssociation - the child association being created
      • secondaryAssociationDeleted

        void secondaryAssociationDeleted​(ChildAssociationRef secAssociation)
        Generate a delete event for a secondary child
        Parameters:
        secAssociation - the child association being deleted
      • fileUnclassified

        void fileUnclassified​(NodeRef nodeRef)
        Generate an event when a file is unclassified
        Parameters:
        nodeRef - the node from which the security mark is removed
      • fileClassified

        void fileClassified​(NodeRef nodeRef)
        Generate an event when a file is classified
        Parameters:
        nodeRef - the node on which a security mark is applied
      • recordRejected

        void recordRejected​(NodeRef nodeRef)
        Generate an event when a record is rejected
        Parameters:
        nodeRef - the node which becomes a regular file again after the record is rejected
      • recordCreated

        void recordCreated​(NodeRef nodeRef)
        Generate an event when a record is created
        Parameters:
        nodeRef - the node being declared as a record
      • nodeLocked

        void nodeLocked​(NodeRef nodeRef)
        Generate an event when a node is locked
        Parameters:
        nodeRef -
      • nodeUnlocked

        void nodeUnlocked​(NodeRef nodeRef)
        Generate an event when a node is unlocked
        Parameters:
        nodeRef -