Class CallRecordingNotificationListener

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<CallInfo, Map<? extends String, ? extends String>>
org.exoplatform.webconferencing.listeners.CallRecordingNotificationListener
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, org.exoplatform.services.listener.ListenerBase<CallInfo, Map<? extends String, ? extends String>>

public class CallRecordingNotificationListener extends org.exoplatform.services.listener.Listener<CallInfo, Map<? extends String, ? extends String>>
Sends the « recording available » (or « recording failed ») notification when a call recording has been uploaded. A space or space-event recording is saved in the space's Documents, so it is announced only to the participants who are members of that space; a personal event, which a user hosts, is announced to every participant, with the host's name and avatar; a chat-room or one-to-one recording is shared with each participant, so each of them is notified.
  • Field Summary

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

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    CallRecordingNotificationListener(org.exoplatform.social.core.manager.IdentityManager identityManager, WebConferencingService webConferencingService, org.exoplatform.social.core.space.spi.SpaceService spaceService)
    Creates the listener.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.exoplatform.commons.api.notification.NotificationContext
    Creates the context of one notification.
    void
    onEvent(org.exoplatform.services.listener.Event<CallInfo, Map<? extends String, ? extends String>> event)
    Builds and sends the recording notification of the recorded call, with the meeting's title and start date.

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

    getDescription, getName, setDescription, setName

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.exoplatform.services.listener.ListenerBase

    getName
  • Constructor Details

    • CallRecordingNotificationListener

      public CallRecordingNotificationListener(org.exoplatform.social.core.manager.IdentityManager identityManager, WebConferencingService webConferencingService, org.exoplatform.social.core.space.spi.SpaceService spaceService)
      Creates the listener.
      Parameters:
      identityManager - resolves the space-event and user identities
      webConferencingService - builds the recording's URL and tells who may read a space's recording
      spaceService - resolves the call's space
  • Method Details

    • onEvent

      public void onEvent(org.exoplatform.services.listener.Event<CallInfo, Map<? extends String, ? extends String>> event) throws Exception
      Builds and sends the recording notification of the recorded call, with the meeting's title and start date.
      Parameters:
      event - the recorded event: the call as source, the upload information (status, file name, owner identity and type) as data
      Throws:
      Exception - when the recording URL cannot be built
    • newNotificationContext

      protected org.exoplatform.commons.api.notification.NotificationContext newNotificationContext()
      Creates the context of one notification.
      Returns:
      a new notification context