Package org.silverpeas.core.contribution
Class ContributionEventProcessor
- java.lang.Object
-
- org.silverpeas.core.notification.system.CDIResourceEventListener<AbstractResourceEvent<? extends Contribution>>
-
- org.silverpeas.core.contribution.ContributionEventProcessor
-
- All Implemented Interfaces:
ResourceEventListener<AbstractResourceEvent<? extends Contribution>>
@Technical @Bean public class ContributionEventProcessor extends CDIResourceEventListener<AbstractResourceEvent<? extends Contribution>>
Processor listening for events on a contribution to perform additional tasks relative to the contribution concerned by the received event. Such tasks are commonly for allocating, cleaning up or updating the resources that allocated for the contribution (like the attachments for example).- Author:
- mmoquillon
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.notification.system.CDIResourceEventListener
logger
-
-
Constructor Summary
Constructors Constructor Description ContributionEventProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCreation(AbstractResourceEvent<? extends Contribution> event)
An event on the creation of a resource has be listened.void
onDeletion(AbstractResourceEvent<? extends Contribution> event)
An event on the deletion of a resource has be listened.void
onMove(AbstractResourceEvent<? extends Contribution> event)
An event on the move of a resource has be listened.void
onUpdate(AbstractResourceEvent<? extends Contribution> event)
An event on the update of a resource has be listened.-
Methods inherited from class org.silverpeas.core.notification.system.CDIResourceEventListener
onEvent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.notification.system.ResourceEventListener
dispatchEvent, isEnabled, onRecovery, onRemoving, onUnlock
-
-
-
-
Method Detail
-
onUpdate
public void onUpdate(AbstractResourceEvent<? extends Contribution> event) throws Exception
Description copied from interface:ResourceEventListener
An event on the update of a resource has be listened. By default, this method does nothing.- Parameters:
event
- the event on the update of a resource.- Throws:
Exception
- if an error occurs while treating the event.
-
onMove
public void onMove(AbstractResourceEvent<? extends Contribution> event) throws Exception
Description copied from interface:ResourceEventListener
An event on the move of a resource has be listened. By default, this method does nothing.- Parameters:
event
- the event on the move of a resource.- Throws:
Exception
- if an error occurs while treating the event.
-
onDeletion
public void onDeletion(AbstractResourceEvent<? extends Contribution> event) throws Exception
Description copied from interface:ResourceEventListener
An event on the deletion of a resource has be listened. A deleted resource is nonexistent and nonrecoverable. By default, this method does nothing.- Parameters:
event
- the event on the deletion of a resource.- Throws:
Exception
- if an error occurs while treating the event.
-
onCreation
public void onCreation(AbstractResourceEvent<? extends Contribution> event) throws Exception
Description copied from interface:ResourceEventListener
An event on the creation of a resource has be listened. By default, this method does nothing.- Parameters:
event
- the event on the creation of a resource.- Throws:
Exception
- if an error occurs while treating the event.
-
-