The EventHandler interface defines the contract for an Alfresco repository event handler implementation.
This contract has been reduced to a minimum:
- The type of event the handler will manage.
- Other conditions, called filters, the event must match before it is handled (defaults to none). See Event filter.
- The code to execute when the event is triggered. The business logic implementation for your domain.
A hierarchy of interfaces that extend EventHandler have been defined to cover the different types of Alfresco repository events that can be triggered by the Content Services event system:
- Node created - OnNodeCreatedEventHandler .
- Node updated - OnNodeUpdatedEventHandler .
- Node deleted - OnNodeDeletedEventHandler .
- Parent-Child Association created - OnChildAssocCreatedEventHandler .
- Parent-Child Association deleted - OnChildAssocDeletedEventHandler .
- Peer-Peer Association Created - OnPeerAssocCreatedEventHandler .
- Peer-Peer Association Deleted - OnPeerAssocDeletedEventHandler .
- Permission updated - OnPermissionUpdatedEventHandler .