public class VideoCallsService extends Object implements org.picocontainer.Startable
| Modifier and Type | Class and Description |
|---|---|
class |
VideoCallsService.RoomInfo
The Class RoomInfo.
|
class |
VideoCallsService.SpaceInfo
The Class SpaceInfo.
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CALL_OWNER_SCOPE_NAME |
protected Map<String,CallInfo> |
calls
The active calls.
|
static String |
CHAT_ROOM_TYPE_NAME |
protected org.exoplatform.services.cms.drives.ManageDriveService |
driveService
The drive service.
|
protected org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator |
hierarchyCreator
The hierarchy owner.
|
protected org.exoplatform.services.jcr.RepositoryService |
jcrService
The jcr service.
|
protected org.exoplatform.services.listener.ListenerService |
listenerService
The listener service.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
protected org.exoplatform.services.organization.OrganizationService |
organization
The organization.
|
static String |
OWNER_TYPE_CHATROOM |
static String |
OWNER_TYPE_SPACE |
static String |
OWNER_TYPE_USER |
protected Map<String,VideoCallsProvider> |
providers
The providers.
|
protected org.exoplatform.services.jcr.ext.app.SessionProviderService |
sessionProviders
The session providers.
|
protected org.exoplatform.commons.api.settings.SettingService |
settingService
The settings service.
|
protected org.exoplatform.social.core.manager.IdentityManager |
socialIdentityManager
The social identity manager.
|
static String |
SPACE_TYPE_NAME |
protected org.exoplatform.social.core.space.spi.SpaceService |
spaceService
The space service.
|
| Constructor and Description |
|---|
VideoCallsService(org.exoplatform.services.jcr.RepositoryService jcrService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator hierarchyCreator,
org.exoplatform.services.organization.OrganizationService organization,
org.exoplatform.social.core.manager.IdentityManager socialIdentityManager,
org.exoplatform.services.cms.drives.ManageDriveService driveService,
org.exoplatform.services.listener.ListenerService listenerService,
org.exoplatform.commons.api.settings.SettingService settingService)
Instantiates a new VideoCalls service.
|
| Modifier and Type | Method and Description |
|---|---|
CallInfo |
addCallInfo(String id,
String ownerId,
String ownerType,
String title,
String providerType,
Collection<String> parts)
Adds the call info.
|
void |
addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds the plugin.
|
void |
addProvider(VideoCallsProvider provider)
Adds the provider.
|
CallInfo |
getCallInfo(String id)
Gets the call info.
|
VideoCallsProvider |
getProvider(String type)
Gets the provider.
|
VideoCallsService.RoomInfo |
getRoomInfo(String id,
String name,
String title,
String[] members)
Gets the room info.
|
VideoCallsService.SpaceInfo |
getSpaceInfo(String spacePrettyName)
Gets the space info.
|
protected Set<String> |
getSpaceMembers(String spacePrettyName)
Gets the space members.
|
UserInfo |
getUserInfo(String id)
Gets the user info.
|
protected boolean |
isSpaceMember(String userName,
String spacePrettyName)
Checks if is space member.
|
protected String |
readCallId(String ownerId) |
CallInfo |
removeCallInfo(String id)
Removes the call info.
|
protected void |
saveCallId(String ownerId,
String callId) |
void |
start() |
void |
stop() |
public static final String SPACE_TYPE_NAME
public static final String CHAT_ROOM_TYPE_NAME
protected static final String CALL_OWNER_SCOPE_NAME
public static final String OWNER_TYPE_USER
public static final String OWNER_TYPE_SPACE
public static final String OWNER_TYPE_CHATROOM
protected static final org.exoplatform.services.log.Log LOG
protected final org.exoplatform.services.jcr.RepositoryService jcrService
protected final org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders
protected final org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator hierarchyCreator
protected final org.exoplatform.services.organization.OrganizationService organization
protected final org.exoplatform.social.core.manager.IdentityManager socialIdentityManager
protected final org.exoplatform.services.cms.drives.ManageDriveService driveService
protected final org.exoplatform.services.listener.ListenerService listenerService
protected final org.exoplatform.commons.api.settings.SettingService settingService
protected final Map<String,VideoCallsProvider> providers
protected org.exoplatform.social.core.space.spi.SpaceService spaceService
public VideoCallsService(org.exoplatform.services.jcr.RepositoryService jcrService,
org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviders,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator hierarchyCreator,
org.exoplatform.services.organization.OrganizationService organization,
org.exoplatform.social.core.manager.IdentityManager socialIdentityManager,
org.exoplatform.services.cms.drives.ManageDriveService driveService,
org.exoplatform.services.listener.ListenerService listenerService,
org.exoplatform.commons.api.settings.SettingService settingService)
jcrService - the jcr servicesessionProviders - the session providershierarchyCreator - the hierarchy ownerorganization - the organizationsocialIdentityManager - the social identity managerdriveService - the drive servicelistenerService - the listener servicesettingService - the settings servicepublic UserInfo getUserInfo(String id) throws Exception
id - the idException - the exceptionpublic VideoCallsService.SpaceInfo getSpaceInfo(String spacePrettyName) throws Exception
spacePrettyName - the space pretty nameException - the exceptionpublic VideoCallsService.RoomInfo getRoomInfo(String id, String name, String title, String[] members) throws Exception
id - the idname - the nametitle - the titlemembers - the room membersException - the exceptionpublic CallInfo addCallInfo(String id, String ownerId, String ownerType, String title, String providerType, Collection<String> parts) throws Exception
id - the idownerId - the owner idtitle - the titleproviderType - the provider typeparts - the partsException - the exceptionpublic CallInfo getCallInfo(String id) throws Exception
id - the idException - the exceptionpublic CallInfo removeCallInfo(String id) throws Exception
id - the idException - the exceptionpublic void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
plugin - the pluginpublic void addProvider(VideoCallsProvider provider)
provider - the providerpublic VideoCallsProvider getProvider(String type)
type - the typepublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startableprotected boolean isSpaceMember(String userName, String spacePrettyName)
userName - the user namespacePrettyName - the space pretty nameprotected Set<String> getSpaceMembers(String spacePrettyName)
spacePrettyName - the space pretty nameCopyright © 2003–2017 eXo Platform SAS. All rights reserved.