Package org.exoplatform.agenda.listener
Class AgendaEventReminderListener
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.services.listener.Listener<org.exoplatform.agenda.model.EventAttendee,org.exoplatform.agenda.model.EventAttendee>
-
- org.exoplatform.agenda.listener.AgendaEventReminderListener
-
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class AgendaEventReminderListener extends org.exoplatform.services.listener.Listener<org.exoplatform.agenda.model.EventAttendee,org.exoplatform.agenda.model.EventAttendee>A listener that will be triggered when a new response is sent to an event. This will update user reminders switch his/her default reminders. If the user changed the response on an event from 'Yes' or 'May be' to 'No', then all user reminders on the event has to be deleted automatically. When the user changes his reponse from 'No' or 'Needs action' (default) to 'Yes' or 'May be', then the default user reminders has to be added automatically. This listener is triggered synchronously to ensure that the Event gets all its updates (including user reminders) before returning the Event entity on REST endpoint in order to display the updated response + added/removed reminders.
-
-
Constructor Summary
Constructors Constructor Description AgendaEventReminderListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.exoplatform.agenda.service.AgendaEventReminderServicegetAgendaEventReminderService()org.exoplatform.agenda.service.AgendaEventServicegetAgendaEventService()org.exoplatform.agenda.service.AgendaUserSettingsServicegetAgendaUserSettingsService()voidonEvent(org.exoplatform.services.listener.Event<org.exoplatform.agenda.model.EventAttendee,org.exoplatform.agenda.model.EventAttendee> event)
-
-
-
Method Detail
-
onEvent
public void onEvent(org.exoplatform.services.listener.Event<org.exoplatform.agenda.model.EventAttendee,org.exoplatform.agenda.model.EventAttendee> event) throws Exception- Specified by:
onEventin classorg.exoplatform.services.listener.Listener<org.exoplatform.agenda.model.EventAttendee,org.exoplatform.agenda.model.EventAttendee>- Throws:
Exception
-
getAgendaUserSettingsService
public org.exoplatform.agenda.service.AgendaUserSettingsService getAgendaUserSettingsService()
-
getAgendaEventReminderService
public org.exoplatform.agenda.service.AgendaEventReminderService getAgendaEventReminderService()
-
getAgendaEventService
public org.exoplatform.agenda.service.AgendaEventService getAgendaEventService()
-
-