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.BaseComponentPluginCreated by The eXo Platform SAS.- Version:
- $Id: CallProvider.java 00000 Mar 30, 2017 pnedonosko $
- Author:
- Peter Nedonosko
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCallProvider.SettingsCall Provider runtime Settings (for serialization in JSON to remote clients).
-
Field Summary
Fields Modifier and Type Field Description protected booleanactiveThe active flag.protected Map<String,String>configThe config.static StringCONFIG_PROVIDER_ACTIVEThe Constant CONFIG_PROVIDER_ACTIVE.static StringCONFIG_PROVIDER_CONFIGURATIONThe Constant CONFIG_PROVIDER_CONFIGURATION.static StringCONFIG_PROVIDER_DESCRIPTIONThe Constant CONFIG_PROVIDER_DESCRIPTION.protected static StringEMAIL_REGEXThe Constant EMAIL_REGEX.protected PatternemailTestThe email test.
-
Constructor Summary
Constructors Constructor Description CallProvider(org.exoplatform.container.xml.InitParams params)Instantiates a new web conferencing provider.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDescription()Technical description for this provider.StringgetDescription(Locale locale)Gets the technical description for this provider.abstract UserInfo.IMInfogetIMInfo(String imId)Gets theUserInfo.IMInfoinstance for given IM identifier.abstract String[]getSupportedTypes()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 StringgetVersion()Gets the version.inthashCode()booleanisActive()Checks if is active.booleanisLogEnabled()Checks if is remote log enabled for the provider.booleanisSupportedType(String type)Checks if it is a supported type by this provider.
-
-
-
Field Detail
-
CONFIG_PROVIDER_ACTIVE
public static final String CONFIG_PROVIDER_ACTIVE
The Constant CONFIG_PROVIDER_ACTIVE.- See Also:
- Constant Field Values
-
CONFIG_PROVIDER_DESCRIPTION
public static final String CONFIG_PROVIDER_DESCRIPTION
The Constant CONFIG_PROVIDER_DESCRIPTION.- See Also:
- Constant Field Values
-
CONFIG_PROVIDER_CONFIGURATION
public static final String CONFIG_PROVIDER_CONFIGURATION
The Constant CONFIG_PROVIDER_CONFIGURATION.- See Also:
- Constant Field Values
-
EMAIL_REGEX
protected static final String EMAIL_REGEX
The Constant EMAIL_REGEX.- See Also:
- Constant Field Values
-
emailTest
protected final Pattern emailTest
The email test.
-
active
protected boolean active
The active flag.
-
-
Constructor Detail
-
CallProvider
public CallProvider(org.exoplatform.container.xml.InitParams params) throws org.exoplatform.container.configuration.ConfigurationExceptionInstantiates a new web conferencing provider.- Parameters:
params- the params- Throws:
org.exoplatform.container.configuration.ConfigurationException- the configuration exception
-
-
Method Detail
-
isActive
public final boolean isActive()
Checks if is active.- Returns:
- true, if is active
-
isSupportedType
public boolean isSupportedType(String type)
Checks if it is a supported type by this provider.- Parameters:
type- the type- Returns:
true, if is supported type,falseotherwise
-
getTitle
public abstract String 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
public String 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
public String getDescription(Locale locale)
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
public abstract String getVersion()
Gets the version.- Returns:
- the version
-
getType
public abstract String 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
public abstract String[] getSupportedTypes()
Gets all types supported by this provider. Provider type should be in lower case and without white spaces.- Returns:
- the types array
-
getIMInfo
public abstract UserInfo.IMInfo getIMInfo(String imId) throws CallProviderException
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
-
-