Package org.exoplatform.agenda.listener
Class AgendaCalendarEditedListener
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<org.exoplatform.agenda.model.CalendarEditorChange,Long>
org.exoplatform.agenda.listener.AgendaCalendarEditedListener
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin,org.exoplatform.services.listener.ListenerBase<org.exoplatform.agenda.model.CalendarEditorChange,Long>
public class AgendaCalendarEditedListener
extends org.exoplatform.services.listener.Listener<org.exoplatform.agenda.model.CalendarEditorChange,Long>
Sends the "changes in your calendar" notification once a colleague holding
an edit share wrote in a calendar (EXO-90378). Glue only, the shape of
AgendaCalendarSharedListener: the event service decides that
the writer's one right was the share and broadcasts the change, this hands
it to the notification framework, which decides the channels from the
owner's settings. No business logic here, and none possible: everything the
decision needed was known where the write happened.-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionAgendaCalendarEditedListener(org.exoplatform.container.ExoContainer container) Builds the listener. -
Method Summary
Modifier and TypeMethodDescriptionvoidonEvent(org.exoplatform.services.listener.Event<org.exoplatform.agenda.model.CalendarEditorChange, Long> event) Dispatches the notification of a change a colleague made.voidsendCalendarEditedNotification(org.exoplatform.agenda.model.CalendarEditorChange change) Hands a change to the notification framework.Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.services.listener.ListenerBase
getName
-
Constructor Details
-
AgendaCalendarEditedListener
public AgendaCalendarEditedListener(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.CalendarEditorChange, Long> event) throws ExceptionDispatches the notification of a change a colleague made.- Parameters:
event- the change event, whose source is the change- Throws:
Exception- when the dispatch fails
-
sendCalendarEditedNotification
public void sendCalendarEditedNotification(org.exoplatform.agenda.model.CalendarEditorChange change) Hands a change to the notification framework.- Parameters:
change- the change a colleague made
-