Class 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
    • Constructor Detail

      • CalendarComponentNotifier

        public CalendarComponentNotifier()
    • 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.