Class AgendaEventPromotedListener
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<org.exoplatform.agenda.model.EventAttendee, org.exoplatform.agenda.model.EventAttendeePromotion>
org.exoplatform.agenda.listener.AgendaEventPromotedListener
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, org.exoplatform.services.listener.ListenerBase<org.exoplatform.agenda.model.EventAttendee, org.exoplatform.agenda.model.EventAttendeePromotion>
public class AgendaEventPromotedListener
extends org.exoplatform.services.listener.Listener<org.exoplatform.agenda.model.EventAttendee, org.exoplatform.agenda.model.EventAttendeePromotion>
Tells an attendee on the waiting list that they got a seat, with the
"Participation confirmation" notification (EXO-90315), and the event's
manager, with the "Answer to an invitation" notification worded as a Yes
(EXO-90311). A promotion is not an answer the attendee sent, so the reply
listener, which listens to the answers sent, never hears it. Glue only: the
source is the attendee row before the promotion, the data the seats one
decision gave the attendee on the event, from the first date promoted.
Asynchronous, as no decision on a seat waits for a notification.
-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionAgendaEventPromotedListener(org.exoplatform.container.ExoContainer container) Builds the listener. -
Method Summary
Modifier and TypeMethodDescriptionvoidonEvent(org.exoplatform.services.listener.Event<org.exoplatform.agenda.model.EventAttendee, org.exoplatform.agenda.model.EventAttendeePromotion> event) Sends the notifications of a promotion on a confirmed event: the promoted attendee's and the manager's.Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.services.listener.ListenerBase
getName
-
Constructor Details
-
AgendaEventPromotedListener
public AgendaEventPromotedListener(org.exoplatform.container.ExoContainer container) Builds the listener.- Parameters:
container- the portal container the notification runs in
-
-
Method Details
-
onEvent
public void onEvent(org.exoplatform.services.listener.Event<org.exoplatform.agenda.model.EventAttendee, org.exoplatform.agenda.model.EventAttendeePromotion> event) throws Exception Sends the notifications of a promotion on a confirmed event: the promoted attendee's and the manager's.- Parameters:
event- the promotion, whose data is the seats the attendee got- Throws:
Exception- when the dispatch fails
-