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.
  • Field Summary

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.exoplatform.agenda.service.AgendaEventReminderService
     
    org.exoplatform.agenda.service.AgendaEventService
     
    org.exoplatform.agenda.service.AgendaUserSettingsService
     
    void
    onEvent(org.exoplatform.services.listener.Event<org.exoplatform.agenda.model.EventAttendee,org.exoplatform.agenda.model.EventAttendee> event)
     

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AgendaEventReminderListener

      public AgendaEventReminderListener()
  • Method Details

    • onEvent

      public void onEvent(org.exoplatform.services.listener.Event<org.exoplatform.agenda.model.EventAttendee,org.exoplatform.agenda.model.EventAttendee> event) throws Exception
      Specified by:
      onEvent in class org.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()