Class AttendeeLifeCycleEventNotifier
- java.lang.Object
-
- org.silverpeas.core.notification.system.CDIResourceEventNotifier<Attendee,AttendeeLifeCycleEvent>
-
- org.silverpeas.core.calendar.notification.AttendeeLifeCycleEventNotifier
-
- All Implemented Interfaces:
ResourceEventNotifier<Attendee,AttendeeLifeCycleEvent>
@Bean public class AttendeeLifeCycleEventNotifier extends CDIResourceEventNotifier<Attendee,AttendeeLifeCycleEvent>
A notifier of lifecycle events ofAttendee
s.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description AttendeeLifeCycleEventNotifier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AttendeeLifeCycleEvent
createResourceEventFrom(ResourceEvent.Type type, Attendee... attendees)
Creates an event about the specified operation on the specified attendees in a single event.static AttendeeLifeCycleEventNotifier
get()
static void
notifyAttendees(LifeCycleEventSubType subtype, Contribution eventOrOccurrence, AttendeeSet before, AttendeeSet after)
protected void
notifyEventOn(ResourceEvent.Type type, LifeCycleEventSubType subType, Attendee... attendees)
Creates an event about the specified operation on the specified attendees in a single or in several events (indicated by the operation subtype).-
Methods inherited from class org.silverpeas.core.notification.system.CDIResourceEventNotifier
notify, notifyEventOn
-
-
-
-
Method Detail
-
get
public static AttendeeLifeCycleEventNotifier get()
-
createResourceEventFrom
protected AttendeeLifeCycleEvent createResourceEventFrom(ResourceEvent.Type type, Attendee... attendees)
Creates an event about the specified operation on the specified attendees in a single event.- Specified by:
createResourceEventFrom
in classCDIResourceEventNotifier<Attendee,AttendeeLifeCycleEvent>
- Parameters:
type
- the type of operation on the attendees.attendees
- the attendees concerned by the event.- Returns:
- the event relating a change in the lifecycle of the attendees.
-
notifyEventOn
protected final void notifyEventOn(ResourceEvent.Type type, LifeCycleEventSubType subType, Attendee... attendees)
Creates an event about the specified operation on the specified attendees in a single or in several events (indicated by the operation subtype).- Parameters:
type
- the type of operation on the attendees.subType
- the subtype of the lifecycle change indicating if it is for a single or more events.attendees
- the attendees concerned by the event.
-
notifyAttendees
public static void notifyAttendees(LifeCycleEventSubType subtype, Contribution eventOrOccurrence, AttendeeSet before, AttendeeSet after)
-
-