Class 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
ConstructorsConstructorDescriptionCallRecordingNotificationListener(org.exoplatform.social.core.manager.IdentityManager identityManager, WebConferencingService webConferencingService, org.exoplatform.social.core.space.spi.SpaceService spaceService) Creates the listener. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.exoplatform.commons.api.notification.NotificationContextCreates the context of one notification.voidonEvent(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, setNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 identitieswebConferencingService- builds the recording's URL and tells who may read a space's recordingspaceService- 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
-