Class EventUpdatedListener
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin,org.exoplatform.services.listener.ListenerBase<org.exoplatform.agenda.model.AgendaEventModification,Object>
Bound to exo.agenda.event.updated, which is the only thing agenda
broadcasts when an existing meeting changes. It covers more than it looks
like: an ordinary edit in the event drawer, a field-level edit
(updateEventFields — how a meeting is cancelled, by setting its
status), and a date poll being confirmed into a real meeting. All three end
at the same place, because all three mean the same thing to a calendar: this
meeting is not what your copy of it says.
A cancellation needs no listener of its own for the same reason. eXo keeps the
event and marks it CANCELLED; the copy is rewritten carrying
STATUS:CANCELLED, so the attendee sees the meeting struck through
instead of watching it vanish.
Glue only, per the extensibility norm: it hands over the event and what agenda
says moved, and every decision is taken in
CaldavEventPropagationService.
-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidpropagate(CaldavEventPropagationService propagationService, org.exoplatform.agenda.model.AgendaEventModification modification) Asks for every existing copy of the edited meeting to be rewritten.Methods inherited from class org.exoplatform.caldav.listener.AgendaEventPropagationListener
onEvent, setCaldavEventPropagationServiceMethods 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
-
EventUpdatedListener
public EventUpdatedListener()
-
-
Method Details
-
propagate
protected void propagate(CaldavEventPropagationService propagationService, org.exoplatform.agenda.model.AgendaEventModification modification) Asks for every existing copy of the edited meeting to be rewritten.- Specified by:
propagatein classAgendaEventPropagationListener- Parameters:
propagationService- the resolved servicemodification- the modification agenda broadcast
-