Package org.exoplatform.caldav.listener
Class CalendarUpdatedListener
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<org.exoplatform.agenda.model.Calendar,Object>
org.exoplatform.caldav.listener.CalendarUpdatedListener
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin,org.exoplatform.services.listener.ListenerBase<org.exoplatform.agenda.model.Calendar,Object>
public class CalendarUpdatedListener
extends org.exoplatform.services.listener.Listener<org.exoplatform.agenda.model.Calendar,Object>
Carries an edit of a calendar — its rename, above all — to the user's
CalDAV server without waiting for the throttled sync.
Glue only: it resolves the engine and hands the owner over, and the decision of what an edit means for the collection (a display name to reconcile, read back and confirmed) lives in the outbound service, where a sweep makes it too. Until EXO-89528 nothing listened here at all, and a calendar renamed in eXo kept its first name on the server for good.
-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonEvent(org.exoplatform.services.listener.Event<org.exoplatform.agenda.model.Calendar, Object> event) Reacts to a calendar having been edited in eXo.protected voidsetCaldavSyncService(CaldavSyncService caldavSyncService) Wires the engine directly, for tests.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
-
CalendarUpdatedListener
public CalendarUpdatedListener()
-
-
Method Details
-
onEvent
public void onEvent(org.exoplatform.services.listener.Event<org.exoplatform.agenda.model.Calendar, Object> event) Reacts to a calendar having been edited in eXo.- Parameters:
event- the broadcast, carrying the calendar as agenda now holds it
-
setCaldavSyncService
Wires the engine directly, for tests.- Parameters:
caldavSyncService- the engine to use
-