public class CometdVideoCallsService extends Object implements org.picocontainer.Startable
| Modifier and Type | Class and Description |
|---|---|
class |
CometdVideoCallsService.CallService |
| Modifier and Type | Field and Description |
|---|---|
static String |
CALL_SUBSCRIPTION_CHANNEL_NAME |
static String |
CALL_SUBSCRIPTION_CHANNEL_NAME_ALL |
static String |
CALL_SUBSCRIPTION_CHANNEL_NAME_PARAMS |
static String |
CALLS_CHANNEL_NAME |
static String |
CALLS_SERVICE_CHANNEL_NAME |
static String |
COMMAND_CREATE |
static String |
COMMAND_DELETE |
static String |
COMMAND_GET |
static String |
COMMAND_GET_CALLS_STATE |
static String |
COMMAND_UPDATE |
protected org.mortbay.cometd.continuation.EXoContinuationBayeux |
exoBayeux |
protected org.exoplatform.services.security.IdentityRegistry |
identityRegistry |
protected org.exoplatform.services.organization.OrganizationService |
organization |
protected CometdVideoCallsService.CallService |
service |
protected org.exoplatform.services.jcr.ext.app.SessionProviderService |
sessionProviders |
static String |
USER_SUBSCRIPTION_CHANNEL_NAME |
static String |
USER_SUBSCRIPTION_CHANNEL_PATTERN |
static String |
USERS_SERVICE_CHANNEL_NAME |
protected VideoCallsService |
videoCalls |
| Constructor and Description |
|---|
CometdVideoCallsService(org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.services.security.IdentityRegistry identityRegistry,
org.exoplatform.services.organization.OrganizationService organization,
VideoCallsService videoCalls,
org.mortbay.cometd.continuation.EXoContinuationBayeux exoBayeux)
Instantiates a new CometD interaction service for VideoCalls.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
callId(String type,
String info)
Call id.
|
protected String |
channelsAsString(Set<org.cometd.bayeux.server.ServerChannel> channles) |
protected String |
channelUserId(String channelId)
Channel user id.
|
protected String |
currentUserId(org.cometd.bayeux.server.ServerMessage message)
Current user id.
|
String |
getCometdServerPath()
Gets the cometd server path.
|
String |
getUserToken(String userId)
Gets the user token.
|
void |
start() |
void |
stop() |
public static final String CALLS_CHANNEL_NAME
public static final String CALLS_SERVICE_CHANNEL_NAME
public static final String USERS_SERVICE_CHANNEL_NAME
public static final String CALL_SUBSCRIPTION_CHANNEL_NAME
public static final String CALL_SUBSCRIPTION_CHANNEL_NAME_ALL
public static final String CALL_SUBSCRIPTION_CHANNEL_NAME_PARAMS
public static final String USER_SUBSCRIPTION_CHANNEL_NAME
public static final String USER_SUBSCRIPTION_CHANNEL_PATTERN
public static final String COMMAND_GET
public static final String COMMAND_CREATE
public static final String COMMAND_UPDATE
public static final String COMMAND_DELETE
public static final String COMMAND_GET_CALLS_STATE
protected final VideoCallsService videoCalls
protected final org.mortbay.cometd.continuation.EXoContinuationBayeux exoBayeux
protected final CometdVideoCallsService.CallService service
protected final org.exoplatform.services.organization.OrganizationService organization
protected final org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders
protected final org.exoplatform.services.security.IdentityRegistry identityRegistry
public CometdVideoCallsService(org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.services.security.IdentityRegistry identityRegistry,
org.exoplatform.services.organization.OrganizationService organization,
VideoCallsService videoCalls,
org.mortbay.cometd.continuation.EXoContinuationBayeux exoBayeux)
videoCalls - the video callspublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic String getCometdServerPath()
public String getUserToken(String userId)
userId - the user idprotected String currentUserId(org.cometd.bayeux.server.ServerMessage message)
message - the messageIdentityConstants.ANONIMprotected String channelUserId(String channelId) throws IndexOutOfBoundsException
USER_SUBSCRIPTION_CHANNEL_NAME.channelId - the channel idIndexOutOfBoundsException - if channel id doesn't look like an user channelprotected String channelsAsString(Set<org.cometd.bayeux.server.ServerChannel> channles)
Copyright © 2003–2017 eXo Platform SAS. All rights reserved.