Class AgendaCalendarSharedListener

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<org.exoplatform.agenda.model.CalendarShare,Long>
org.exoplatform.agenda.listener.AgendaCalendarSharedListener
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, org.exoplatform.services.listener.ListenerBase<org.exoplatform.agenda.model.CalendarShare,Long>

public class AgendaCalendarSharedListener extends org.exoplatform.services.listener.Listener<org.exoplatform.agenda.model.CalendarShare,Long>
Sends the "a calendar was shared with you" notification once a share is recorded (EXO-90357). Glue only, the shape of AgendaEventReplyListener: the share service broadcasts, this hands the record to the notification framework, which decides the channels from the colleague's settings.
  • Field Summary

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

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    AgendaCalendarSharedListener(org.exoplatform.container.ExoContainer container)
    Builds the listener.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEvent(org.exoplatform.services.listener.Event<org.exoplatform.agenda.model.CalendarShare,Long> event)
    Dispatches the notification of a recorded share.
    void
    sendCalendarSharedNotification(org.exoplatform.agenda.model.CalendarShare share)
    Hands a share to the notification framework.

    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

    • AgendaCalendarSharedListener

      public AgendaCalendarSharedListener(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.CalendarShare,Long> event) throws Exception
      Dispatches the notification of a recorded share.
      Parameters:
      event - the share event, whose source is the record
      Throws:
      Exception - when the dispatch fails
    • sendCalendarSharedNotification

      public void sendCalendarSharedNotification(org.exoplatform.agenda.model.CalendarShare share)
      Hands a share to the notification framework.
      Parameters:
      share - the record