public abstract class CallProvider
extends org.exoplatform.container.component.BaseComponentPlugin
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
config
The config.
|
static String |
CONFIG_PROVIDER_CONFIGURATION
The Constant CONFIG_PROVIDER_CONFIGURATION.
|
static String |
CONFIG_PROVIDER_NAME
The Constant CONFIG_PROVIDER_NAME.
|
static String |
CONFIG_PROVIDER_TYPE
The Constant CONFIG_PROVIDER_TYPE.
|
protected static String |
EMAIL_REGEX
The Constant EMAIL_REGEX.
|
protected Pattern |
emailTest
The email test.
|
| Constructor and Description |
|---|
CallProvider(org.exoplatform.container.xml.InitParams params)
Instantiates a new video calls provider.
|
| Modifier and Type | Method and Description |
|---|---|
abstract UserInfo.IMInfo |
getIMInfo(String imId)
Gets the
UserInfo.IMInfo instance for given IM identifier. |
abstract String[] |
getSupportedTypes()
Gets all types supported by this provider.
|
abstract String |
getTitle()
Gets human-readable name of this provider (e.g.
|
abstract String |
getType()
Gets the main type name of this provider (e.g.
|
abstract String |
getVersion()
Gets the version.
|
boolean |
isSupportedType(String type)
Checks if it is a supported type by this provider.
|
public static final String CONFIG_PROVIDER_TYPE
public static final String CONFIG_PROVIDER_NAME
public static final String CONFIG_PROVIDER_CONFIGURATION
protected static final String EMAIL_REGEX
protected final Pattern emailTest
public CallProvider(org.exoplatform.container.xml.InitParams params)
throws org.exoplatform.container.configuration.ConfigurationException
params - the paramsorg.exoplatform.container.configuration.ConfigurationException - the configuration exceptionpublic abstract String getTitle()
public abstract String getVersion()
public abstract String getType()
getSupportedTypes().public boolean isSupportedType(String type)
type - the typetrue, if is supported type, false otherwisepublic abstract String[] getSupportedTypes()
public abstract UserInfo.IMInfo getIMInfo(String imId) throws CallProviderException
UserInfo.IMInfo instance for given IM identifier.imId - the IM identifierUserInfo.IMInfoCallProviderException - if the provider cannot recognize given IM id or failed to instantiate
an UserInfo.IMInfo objectCopyright © 2003–2017 eXo Platform SAS. All rights reserved.