Class 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
    • 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
      • 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.ConfigurationException
        Instantiates a new web conferencing provider.
        Parameters:
        params - the params
        Throws:
        org.exoplatform.container.configuration.ConfigurationException - the configuration exception
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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, false otherwise
      • 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:
        getDescription in interface org.exoplatform.container.component.ComponentPlugin
        Overrides:
        getDescription in class org.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 be null then 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 use getSupportedTypes().
        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