Package org.exoplatform.webconferencing
Class CallProvider
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.webconferencing.CallProvider
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public abstract class CallProvider
extends org.exoplatform.container.component.BaseComponentPlugin
Created by The eXo Platform SAS.
- Version:
- $Id: CallProvider.java 00000 Mar 30, 2017 pnedonosko $
- Author:
- Peter Nedonosko
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassCall Provider runtime Settings (for serialization in JSON to remote clients). -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanThe active flag.The config.static final StringThe Constant CONFIG_PROVIDER_ACTIVE.static final StringThe Constant CONFIG_PROVIDER_CONFIGURATION.static final StringThe Constant CONFIG_PROVIDER_DESCRIPTION.protected static final StringThe Constant EMAIL_REGEX.protected final PatternThe email test.Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionCallProvider(org.exoplatform.container.xml.InitParams params) Instantiates a new web conferencing provider. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanabstract List<ActiveCallProvider> getActiveProvidersForSpace(String spaceId) Technical description for this provider.getDescription(Locale locale) Gets the technical description for this provider.abstract UserInfo.IMInfoGets theUserInfo.IMInfoinstance for given IM identifier.abstract String[]Gets all types supported by this provider.abstract StringgetTitle()Gets human-readable name of this provider (e.g.abstract StringgetType()Gets the main type name of this provider (e.g.abstract StringGets the version.inthashCode()final booleanisActive()Checks if is active.booleanisConfiguredForIdentity(String identityId) booleanChecks if is remote log enabled for the provider.booleanisSupportedType(String type) Checks if it is a supported type by this provider.voidsetConfiguredForIdentity(String identityId, boolean configured) Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getName, setDescription, setName
-
Field Details
-
CONFIG_PROVIDER_ACTIVE
The Constant CONFIG_PROVIDER_ACTIVE.- See Also:
-
CONFIG_PROVIDER_DESCRIPTION
The Constant CONFIG_PROVIDER_DESCRIPTION.- See Also:
-
CONFIG_PROVIDER_CONFIGURATION
The Constant CONFIG_PROVIDER_CONFIGURATION.- See Also:
-
EMAIL_REGEX
The Constant EMAIL_REGEX.- See Also:
-
emailTest
The email test. -
config
The config. -
active
protected boolean activeThe active flag.
-
-
Constructor Details
-
CallProvider
public CallProvider(org.exoplatform.container.xml.InitParams params) throws org.exoplatform.container.configuration.ConfigurationException Instantiates a new web conferencing provider.- Parameters:
params- the params- Throws:
org.exoplatform.container.configuration.ConfigurationException- the configuration exception
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
isActive
public final boolean isActive()Checks if is active.- Returns:
- true, if is active
-
isSupportedType
Checks if it is a supported type by this provider.- Parameters:
type- the type- Returns:
true, if is supported type,falseotherwise
-
getTitle
Gets human-readable name of this provider (e.g. 'Skype'). Provider name can be used in building UI labels and messages.- Returns:
- the name
-
getDescription
Technical description for this provider. Will be used in administrative settings. Provider implementation can override it to offer own content. By default it will be taken from the plugin configuration.- Specified by:
getDescriptionin interfaceorg.exoplatform.container.component.ComponentPlugin- Overrides:
getDescriptionin classorg.exoplatform.container.component.BaseComponentPlugin- Returns:
- the description
-
getDescription
Gets the technical description for this provider.- Parameters:
locale- the locale, can benullthen default locale will be assumed.- Returns:
- the description in given locale
-
isLogEnabled
public boolean isLogEnabled()Checks if is remote log enabled for the provider.- Returns:
- true, if is log enabled
-
getVersion
Gets the version.- Returns:
- the version
-
getType
Gets the main type name of this provider (e.g. 'skype'). Provider type should be in lower case and without white spaces. A provider may support several types as well, to observe all supported types usegetSupportedTypes().- Returns:
- the type
-
getSupportedTypes
Gets all types supported by this provider. Provider type should be in lower case and without white spaces.- Returns:
- the types array
-
getIMInfo
Gets theUserInfo.IMInfoinstance for given IM identifier.- Parameters:
imId- the IM identifier- Returns:
- an instance of
UserInfo.IMInfoornullif IM not supported by the provider - Throws:
CallProviderException- if the provider cannot recognize given IM id or failed to instantiate anUserInfo.IMInfoobject
-
getActiveProvidersForSpace
-
canInvite
public boolean canInvite() -
isConfiguredForIdentity
-
setConfiguredForIdentity
-