Package org.alfresco.repo.events
Class EventsServiceImpl
java.lang.Object
org.alfresco.repo.transaction.TransactionListenerAdapter
org.alfresco.repo.events.AbstractEventsService
org.alfresco.repo.events.EventsServiceImpl
- All Implemented Interfaces:
EventsService,TransactionListener,org.alfresco.util.transaction.TransactionListener
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.alfresco.repo.events.AbstractEventsService
AbstractEventsService.NodeInfo -
Field Summary
FieldsFields inherited from class org.alfresco.repo.events.AbstractEventsService
cociService, dictionaryService, eventRegistry, fileFolderService, hiddenAspect, includeEventTypes, matchingTypes, namespaceService, nodeService, permissionService, sendEventsBeforeCommit, siteService, TRANSACTION_HAS_EVENTS, transactionService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidauthorityAddedToGroup(String parentGroup, String childAuthority) Generate an authority added to a groupvoidauthorityRemovedFromGroup(String parentGroup, String childAuthority) Generate an authority removed from group eventvoidcontentGet(NodeRef nodeRef) Generate a node content get/read event.voidcontentWrite(NodeRef nodeRef, QName propertyQName, ContentData value) Generate a node write/update event.voidfileClassified(NodeRef nodeRef) Generate an event when a file is classifiedvoidfileUnclassified(NodeRef nodeRef) Generate an event when a file is unclassifiedvoidgrantLocalPermission(NodeRef nodeRef, String authority, String permission) Generate a grant local permission eventvoidgroupDeleted(String groupName, boolean cascade) Generate a group deleted eventvoidinheritPermissionsDisabled(NodeRef nodeRef, boolean async) Generate an inherit permissions disabled eventvoidinheritPermissionsEnabled(NodeRef nodeRef) Generate an inherit permissions enabled eventvoidnodeCheckedIn(NodeRef nodeRef) voidnodeCheckedOut(NodeRef workingCopyNodeRef) voidnodeCheckOutCancelled(NodeRef nodeRef) voidnodeCommented(NodeRef nodeRef, String comment) Generate a node commented event.voidnodeCreated(NodeRef nodeRef) Generate a node created event.voidnodeDeleted(NodeRef nodeRef) Generate a node deleted event.voidnodeFavourited(NodeRef nodeRef) Generate a node favourited event.voidGenerate a node liked event.voidnodeLocked(NodeRef nodeRef) Generate an event when a node is lockedvoidnodeMoved(ChildAssociationRef oldChildAssocRef, ChildAssociationRef newChildAssocRef) Generate a node moved event.voidnodeRenamed(NodeRef nodeRef, String oldName, String newName) Generate a node renamed event.voidnodeTagged(NodeRef nodeRef, String tag) Generate a node tag added event.voidnodeTagRemoved(NodeRef nodeRef, String tag) Generate a node tag removed event.voidnodeUnFavourited(NodeRef nodeRef) Generate a node un-favourited event.voidnodeUnLiked(NodeRef nodeRef) Generate a node unliked event.voidnodeUnlocked(NodeRef nodeRef) Generate an event when a node is unlockedvoidnodeUpdated(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).voidrecordCreated(NodeRef nodeRef) Generate an event when a record is createdvoidrecordRejected(NodeRef nodeRef) Generate an event when a record is rejectedvoidrevokeLocalPermissions(NodeRef nodeRef, String authority, String permission) Generate a revoke local permission eventvoidsecondaryAssociationCreated(ChildAssociationRef secAssociation) Generated a node created event for a secondary childvoidsecondaryAssociationDeleted(ChildAssociationRef secAssociation) Generate a delete event for a secondary childMethods inherited from class org.alfresco.repo.events.AbstractEventsService
afterCommit, afterRollback, beforeCommit, filterEventsBeforeSend, getAlfrescoClient, getNodeIds, getNodeIdsFromParent, getNodeInfo, getPaths, getTxnEvents, includeEventType, init, nextSequenceNumber, retrieveAdditionalProps, sendEvent, setCociService, setDictionaryService, setEventRegistry, setFileFolderService, setHiddenAspect, setIncludeEventTypes, setMessageProducer, setNamespaceService, setNodeService, setPermissionService, setSendEventsBeforeCommit, setSiteService, setTransactionService, shouldSendCommitEventMethods inherited from class org.alfresco.repo.transaction.TransactionListenerAdapter
beforeCompletion, flushMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.util.transaction.TransactionListener
getCustomOrder
-
Field Details
-
PROP_RMA_RECORD_ORIGINATING_LOCATION
-
-
Constructor Details
-
EventsServiceImpl
public EventsServiceImpl()
-
-
Method Details
-
nodeMoved
Description copied from interface:EventsServiceGenerate a node moved event.- Specified by:
nodeMovedin interfaceEventsService
-
nodeRenamed
Description copied from interface:EventsServiceGenerate a node renamed event.- Specified by:
nodeRenamedin interfaceEventsService
-
nodeTagged
Description copied from interface:EventsServiceGenerate a node tag added event.- Specified by:
nodeTaggedin interfaceEventsService
-
nodeTagRemoved
Description copied from interface:EventsServiceGenerate a node tag removed event.- Specified by:
nodeTagRemovedin interfaceEventsService
-
nodeLiked
Description copied from interface:EventsServiceGenerate a node liked event.- Specified by:
nodeLikedin interfaceEventsService
-
nodeUnLiked
Description copied from interface:EventsServiceGenerate a node unliked event.- Specified by:
nodeUnLikedin interfaceEventsService
-
nodeFavourited
Description copied from interface:EventsServiceGenerate a node favourited event.- Specified by:
nodeFavouritedin interfaceEventsService
-
nodeUnFavourited
Description copied from interface:EventsServiceGenerate a node un-favourited event.- Specified by:
nodeUnFavouritedin interfaceEventsService
-
nodeCreated
Description copied from interface:EventsServiceGenerate a node created event.- Specified by:
nodeCreatedin interfaceEventsService
-
secondaryAssociationCreated
Description copied from interface:EventsServiceGenerated a node created event for a secondary child- Specified by:
secondaryAssociationCreatedin interfaceEventsService- Parameters:
secAssociation- the child association being created
-
secondaryAssociationDeleted
Description copied from interface:EventsServiceGenerate a delete event for a secondary child- Specified by:
secondaryAssociationDeletedin interfaceEventsService- Parameters:
secAssociation- the child association being deleted
-
nodeDeleted
Description copied from interface:EventsServiceGenerate a node deleted event.- Specified by:
nodeDeletedin interfaceEventsService
-
nodeCommented
Description copied from interface:EventsServiceGenerate a node commented event.- Specified by:
nodeCommentedin interfaceEventsService
-
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:EventsServiceGenerate a node updated event (property and aspect changes).- Specified by:
nodeUpdatedin interfaceEventsService
-
contentGet
Description copied from interface:EventsServiceGenerate a node content get/read event.- Specified by:
contentGetin interfaceEventsService
-
contentWrite
Description copied from interface:EventsServiceGenerate a node write/update event.- Specified by:
contentWritein interfaceEventsService
-
nodeCheckedOut
- Specified by:
nodeCheckedOutin interfaceEventsService
-
nodeCheckOutCancelled
- Specified by:
nodeCheckOutCancelledin interfaceEventsService
-
nodeCheckedIn
- Specified by:
nodeCheckedInin interfaceEventsService
-
authorityRemovedFromGroup
Description copied from interface:EventsServiceGenerate an authority removed from group event- Specified by:
authorityRemovedFromGroupin interfaceEventsService- Parameters:
parentGroup- the group the authority is removed fromchildAuthority- the authority which leaves a certain group
-
authorityAddedToGroup
Description copied from interface:EventsServiceGenerate an authority added to a group- Specified by:
authorityAddedToGroupin interfaceEventsService- Parameters:
parentGroup- the group the authority is added tochildAuthority- the authority which is added to the group
-
groupDeleted
Description copied from interface:EventsServiceGenerate a group deleted event- Specified by:
groupDeletedin interfaceEventsService- Parameters:
groupName- the group being deletedcascade- whether it's a cascading delete or not
-
inheritPermissionsEnabled
Description copied from interface:EventsServiceGenerate an inherit permissions enabled event- Specified by:
inheritPermissionsEnabledin interfaceEventsService- Parameters:
nodeRef- the node which has the permission inheritance enabled
-
inheritPermissionsDisabled
Description copied from interface:EventsServiceGenerate an inherit permissions disabled event- Specified by:
inheritPermissionsDisabledin interfaceEventsService- Parameters:
nodeRef- the node which has the permission inheritance disabledasync- whether the disabling is done asynchronously or not
-
revokeLocalPermissions
Description copied from interface:EventsServiceGenerate a revoke local permission event- Specified by:
revokeLocalPermissionsin interfaceEventsService- Parameters:
nodeRef- the node on which certain local permissions are revokedauthority- the authority which has the permissions revokedpermission- the permissions which are revoked
-
grantLocalPermission
Description copied from interface:EventsServiceGenerate a grant local permission event- Specified by:
grantLocalPermissionin interfaceEventsService- Parameters:
nodeRef- the node to which certain local permissions are grantedauthority- the authority which has the permissions grantedpermission- the permissions which are granted
-
fileUnclassified
Description copied from interface:EventsServiceGenerate an event when a file is unclassified- Specified by:
fileUnclassifiedin interfaceEventsService- Parameters:
nodeRef- the node from which the security mark is removed
-
fileClassified
Description copied from interface:EventsServiceGenerate an event when a file is classified- Specified by:
fileClassifiedin interfaceEventsService- Parameters:
nodeRef- the node on which a security mark is applied
-
recordRejected
Description copied from interface:EventsServiceGenerate an event when a record is rejected- Specified by:
recordRejectedin interfaceEventsService- Parameters:
nodeRef- the node which becomes a regular file again after the record is rejected
-
recordCreated
Description copied from interface:EventsServiceGenerate an event when a record is created- Specified by:
recordCreatedin interfaceEventsService- Parameters:
nodeRef- the node being declared as a record
-
nodeLocked
Description copied from interface:EventsServiceGenerate an event when a node is locked- Specified by:
nodeLockedin interfaceEventsService
-
nodeUnlocked
Description copied from interface:EventsServiceGenerate an event when a node is unlocked- Specified by:
nodeUnlockedin interfaceEventsService
-