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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEvent(org.exoplatform.services.listener.Event<org.exoplatform.agenda.model.Calendar,Object> event)
    Reacts to a calendar having been edited in eXo.
    protected void
    Wires the engine directly, for tests.

    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

    Methods 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

      protected void setCaldavSyncService(CaldavSyncService caldavSyncService)
      Wires the engine directly, for tests.
      Parameters:
      caldavSyncService - the engine to use