Class CalendarComponentNotifier
- java.lang.Object
-
- org.silverpeas.core.notification.system.CDIAfterSuccessfulTransactionResourceEventListener<T>
-
- org.silverpeas.core.calendar.notification.AbstractNotifier<AttendeeLifeCycleEvent>
-
- org.silverpeas.core.calendar.notification.CalendarComponentNotifier
-
- All Implemented Interfaces:
ResourceEventListener<AttendeeLifeCycleEvent>
public class CalendarComponentNotifier extends AbstractNotifier<AttendeeLifeCycleEvent>
A notifier of attendees about their participation in a calendar component. It listens for change in the attendance and then, for each change, it notifies the concerned attendee(s) about it.When a calendar component is planned in a given calendar or when such a calendar component is unplanned then a change is also occurring in the attendance as the attendees are all respectively just added or just deleted. This notifier will then also inform such of lifecycle events.
- Author:
- mmoquillon
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.notification.system.CDIAfterSuccessfulTransactionResourceEventListener
logger
-
-
Constructor Summary
Constructors Constructor Description CalendarComponentNotifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onCreation(AttendeeLifeCycleEvent event)
An attendee has been added among the attendees.void
onDeletion(AttendeeLifeCycleEvent event)
An attendee has been removed.void
onUpdate(AttendeeLifeCycleEvent event)
An attendee has been updated: The presence status has been updated: the concerned attendee is informed about it (he shouldn't be the user behind this status change). The participation status has been updated: all the others attendees are informed about it.-
Methods inherited from class org.silverpeas.core.calendar.notification.AbstractNotifier
attendeesIn, concernedAttendeesIn, ownerOf
-
Methods inherited from class org.silverpeas.core.notification.system.CDIAfterSuccessfulTransactionResourceEventListener
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, onMove, onRecovery, onRemoving, onUnlock
-
-
-
-
Method Detail
-
onDeletion
public void onDeletion(AttendeeLifeCycleEvent event) throws Exception
An attendee has been removed. The attendee is informed about it (he shouldn't be the user behind this attendance deletion).- Parameters:
event
- the lifecycle event on the deletion of an attendance.- Throws:
Exception
- if an error occurs while notifying the attendee.
-
onUpdate
public void onUpdate(AttendeeLifeCycleEvent event)
An attendee has been updated:- The presence status has been updated: the concerned attendee is informed about it (he shouldn't be the user behind this status change).
- The participation status has been updated: all the others attendees are informed about it.
- Parameters:
event
- the lifecycle event on the update of a resource.
-
onCreation
public void onCreation(AttendeeLifeCycleEvent event) throws Exception
An attendee has been added among the attendees. The added attendee is informed about it (he shouldn't be the user behind this attendance adding).- Parameters:
event
- the lifecycle event on the adding of the attendee.- Throws:
Exception
- if an error occurs while notifying the attendee.
-
-