Class WebrtcProvider
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.webconferencing.CallProvider
org.exoplatform.webconferencing.webrtc.WebrtcProvider
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class WebrtcProvider
extends org.exoplatform.webconferencing.CallProvider
Created by The eXo Platform SAS.
- Version:
- $Id: WebrtcProvider.java 00000 Aug 15, 2017 pnedonosko $
- Author:
- Peter Nedonosko
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe Class DefaultICEServer.static classThe Class ICEServer.static classThe Class RTCConfiguration.classThe Class SettingsBuilder.classThe Class WebrtcSettings.Nested classes/interfaces inherited from class org.exoplatform.webconferencing.CallProvider
org.exoplatform.webconferencing.CallProvider.Settings -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Constant CONFIG_RTC_CONFIGURATION.protected static final StringThe Constant KEY_RTC_SETTINGS.protected static final org.exoplatform.services.log.LogThe Constant LOG.protected final org.exoplatform.services.resources.ResourceBundleServiceThe resource bundle service.protected WebrtcProvider.RTCConfigurationThe rtc configuration.protected final org.exoplatform.commons.api.settings.SettingServiceThe settings service.static final StringThe Constant VERSION.protected static final StringThe Constant WEBRTC_SCOPE_NAME.static final StringThe Constant WEBRTC_TITLE.static final StringThe Constant WEBRTC_TYPE.Fields inherited from class org.exoplatform.webconferencing.CallProvider
active, config, CONFIG_PROVIDER_ACTIVE, CONFIG_PROVIDER_CONFIGURATION, CONFIG_PROVIDER_DESCRIPTION, EMAIL_REGEX, emailTestFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionWebrtcProvider(org.exoplatform.container.xml.InitParams params, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.services.resources.ResourceBundleService resourceBundleService) Instantiates a new WebRTC provider. -
Method Summary
Modifier and TypeMethodDescriptiongetDescription(Locale locale) org.exoplatform.webconferencing.UserInfo.IMInfoGets the rtc configuration.String[]getTitle()getType()booleanprotected booleanChecks if is notnullor JSON NULL.jsonToRtcConfig(org.json.JSONObject json) Json to RTC config.protected voidLog remote log enabled.protected WebrtcProvider.RTCConfigurationRead rtc config.org.json.JSONObjectRTC config to json.protected voidSave rtc config.voidSave rtc configuration.settings()Gets the settings.Methods inherited from class org.exoplatform.webconferencing.CallProvider
equals, hashCode, isActive, isSupportedTypeMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getName, setDescription, setName
-
Field Details
-
WEBRTC_TYPE
The Constant WEBRTC_TYPE.- See Also:
-
WEBRTC_TITLE
The Constant WEBRTC_TITLE.- See Also:
-
CONFIG_RTC_CONFIGURATION
The Constant CONFIG_RTC_CONFIGURATION.- See Also:
-
WEBRTC_SCOPE_NAME
The Constant WEBRTC_SCOPE_NAME. -
KEY_RTC_SETTINGS
The Constant KEY_RTC_SETTINGS. -
VERSION
The Constant VERSION.- See Also:
-
LOG
protected static final org.exoplatform.services.log.Log LOGThe Constant LOG. -
settingService
protected final org.exoplatform.commons.api.settings.SettingService settingServiceThe settings service. -
resourceBundleService
protected final org.exoplatform.services.resources.ResourceBundleService resourceBundleServiceThe resource bundle service. -
rtcConfiguration
The rtc configuration.
-
-
Constructor Details
-
WebrtcProvider
public WebrtcProvider(org.exoplatform.container.xml.InitParams params, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.services.resources.ResourceBundleService resourceBundleService) throws org.exoplatform.container.configuration.ConfigurationException Instantiates a new WebRTC provider.- Parameters:
params- the paramssettingService- the setting serviceresourceBundleService- the resource bundle service- Throws:
org.exoplatform.container.configuration.ConfigurationException- the configuration exception
-
-
Method Details
-
getRtcConfiguration
Gets the rtc configuration.- Returns:
- the rtc configuration
-
saveRtcConfiguration
Save rtc configuration.- Parameters:
conf- the conf- Throws:
Exception- the exception
-
settings
Gets the settings.- Returns:
- the settings
-
getIMInfo
public org.exoplatform.webconferencing.UserInfo.IMInfo getIMInfo(String imId) throws org.exoplatform.webconferencing.CallProviderException - Specified by:
getIMInfoin classorg.exoplatform.webconferencing.CallProvider- Throws:
org.exoplatform.webconferencing.CallProviderException
-
getVersion
- Specified by:
getVersionin classorg.exoplatform.webconferencing.CallProvider
-
getType
- Specified by:
getTypein classorg.exoplatform.webconferencing.CallProvider
-
getSupportedTypes
- Specified by:
getSupportedTypesin classorg.exoplatform.webconferencing.CallProvider
-
getTitle
- Specified by:
getTitlein classorg.exoplatform.webconferencing.CallProvider
-
getDescription
- Specified by:
getDescriptionin interfaceorg.exoplatform.container.component.ComponentPlugin- Overrides:
getDescriptionin classorg.exoplatform.webconferencing.CallProvider
-
getDescription
- Overrides:
getDescriptionin classorg.exoplatform.webconferencing.CallProvider
-
isLogEnabled
public boolean isLogEnabled()- Overrides:
isLogEnabledin classorg.exoplatform.webconferencing.CallProvider
-
jsonToRtcConfig
Json to RTC config.- Parameters:
json- the json- Returns:
- the RTC configuration
- Throws:
Exception- the exception
-
rtcConfigToJson
public org.json.JSONObject rtcConfigToJson(WebrtcProvider.RTCConfiguration rtcConf) throws Exception RTC config to json.- Parameters:
rtcConf- the rtc conf- Returns:
- the JSON object
- Throws:
Exception- the exception
-
saveRtcConfig
Save rtc config.- Parameters:
conf- the conf- Throws:
Exception- the exception
-
readRtcConfig
Read rtc config.- Returns:
- the RTC configuration
- Throws:
Exception- the exception
-
isNotNull
Checks if is notnullor JSON NULL.- Parameters:
obj- the obj- Returns:
- true, if is null
-
logRemoteLogEnabled
protected void logRemoteLogEnabled()Log remote log enabled.
-