Class JitsiProvider

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.webconferencing.CallProvider
org.exoplatform.webconferencing.jitsi.JitsiProvider
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class JitsiProvider extends org.exoplatform.webconferencing.CallProvider
Jitsi provider implementation. Created by The eXo Platform SAS.
Version:
$Id: MyConnectorProvider.java 00000 Mar 30, 2017 pnedonosko $
Author:
Peter Nedonosko
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    IM info for user profile.
    class 
    Settings for Jitsi provider.

    Nested classes/interfaces inherited from class org.exoplatform.webconferencing.CallProvider

    org.exoplatform.webconferencing.CallProvider.Settings
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The Constant CONFIG_CLIENT_SECRET.
    static final String
    The Constant CONFIG_EXTERNAL_AUTH_SECRET.
    static final String
    The Constant CONFIG_EXTERNAL_AUTH_SECRET.
    static final String
    The Constant CONFIG_SERVICE_URL.
    protected final String
    The external auth secret.
    protected final String
    The internal auth secret.
    protected static final org.exoplatform.services.log.Log
    The Constant LOG.
    static final String
    The Constant TITLE.
    static final String
    The Constant TYPE.
    protected final String
    The connector web-services URL (will be used to generate Call page URLs).
    static final String
    The Constant VERSION.

    Fields inherited from class org.exoplatform.webconferencing.CallProvider

    active, config, CONFIG_PROVIDER_ACTIVE, CONFIG_PROVIDER_CONFIGURATION, CONFIG_PROVIDER_DESCRIPTION, EMAIL_REGEX, emailTest

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    JitsiProvider(org.exoplatform.container.xml.InitParams params, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService)
    Instantiates a new JitsiProvider provider.
    JitsiProvider(org.exoplatform.social.core.profile.settings.UserProfileSettingsService profileSettings, org.exoplatform.container.xml.InitParams params, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService)
    Instantiates a new JitsiProvider provider.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.exoplatform.webconferencing.ActiveCallProvider>
     
    Gets the external auth secret.
    org.exoplatform.webconferencing.UserInfo.IMInfo
    Gets the internal auth secret.
    Gets the settings.
    Gets the url.
    boolean
     
    void
    setConfiguredForIdentity(String spaceId, boolean configured)
     

    Methods inherited from class org.exoplatform.webconferencing.CallProvider

    canInvite, equals, getDescription, hashCode, isActive, isLogEnabled, isSupportedType

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      protected static final org.exoplatform.services.log.Log LOG
      The Constant LOG.
    • TYPE

      public static final String TYPE
      The Constant TYPE.
      See Also:
    • CONFIG_CLIENT_SECRET

      public static final String CONFIG_CLIENT_SECRET
      The Constant CONFIG_CLIENT_SECRET.
      See Also:
    • CONFIG_INTERNAL_AUTH_SECRET

      public static final String CONFIG_INTERNAL_AUTH_SECRET
      The Constant CONFIG_EXTERNAL_AUTH_SECRET.
      See Also:
    • CONFIG_EXTERNAL_AUTH_SECRET

      public static final String CONFIG_EXTERNAL_AUTH_SECRET
      The Constant CONFIG_EXTERNAL_AUTH_SECRET.
      See Also:
    • CONFIG_SERVICE_URL

      public static final String CONFIG_SERVICE_URL
      The Constant CONFIG_SERVICE_URL.
      See Also:
    • TITLE

      public static final String TITLE
      The Constant TITLE.
      See Also:
    • VERSION

      public static final String VERSION
      The Constant VERSION.
      See Also:
    • internalAuthSecret

      protected final String internalAuthSecret
      The internal auth secret.
    • externalAuthSecret

      protected final String externalAuthSecret
      The external auth secret.
    • url

      protected final String url
      The connector web-services URL (will be used to generate Call page URLs).
  • Constructor Details

    • JitsiProvider

      public JitsiProvider(org.exoplatform.social.core.profile.settings.UserProfileSettingsService profileSettings, org.exoplatform.container.xml.InitParams params, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService) throws org.exoplatform.container.configuration.ConfigurationException
      Instantiates a new JitsiProvider provider.
      Parameters:
      profileSettings - the profile settings
      params - the params (from configuration.xml)
      Throws:
      org.exoplatform.container.configuration.ConfigurationException - the configuration exception
    • JitsiProvider

      public JitsiProvider(org.exoplatform.container.xml.InitParams params, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService) throws org.exoplatform.container.configuration.ConfigurationException
      Instantiates a new JitsiProvider provider. This constructor can be used in environments when no UserProfileSettingsService found (e.g. in test environments).
      Parameters:
      params - the params (from configuration.xml)
      Throws:
      org.exoplatform.container.configuration.ConfigurationException - the configuration exception
  • Method Details

    • getInternalAuthSecret

      public String getInternalAuthSecret()
      Gets the internal auth secret.
      Returns:
      the internal auth secret
    • getExternalAuthSecret

      public String getExternalAuthSecret()
      Gets the external auth secret.
      Returns:
      the external auth secret
    • getSettings

      public JitsiProvider.JitsiSettings getSettings()
      Gets the settings.
      Returns:
      the settings
    • getUrl

      public String getUrl()
      Gets the url.
      Returns:
      the url
    • getIMInfo

      public org.exoplatform.webconferencing.UserInfo.IMInfo getIMInfo(String imId)
      Specified by:
      getIMInfo in class org.exoplatform.webconferencing.CallProvider
    • getActiveProvidersForSpace

      public List<org.exoplatform.webconferencing.ActiveCallProvider> getActiveProvidersForSpace(String spaceId)
      Specified by:
      getActiveProvidersForSpace in class org.exoplatform.webconferencing.CallProvider
    • getType

      public String getType()
      Specified by:
      getType in class org.exoplatform.webconferencing.CallProvider
    • getSupportedTypes

      public String[] getSupportedTypes()
      Specified by:
      getSupportedTypes in class org.exoplatform.webconferencing.CallProvider
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in class org.exoplatform.webconferencing.CallProvider
    • getDescription

      public String getDescription(Locale locale)
      Overrides:
      getDescription in class org.exoplatform.webconferencing.CallProvider
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in class org.exoplatform.webconferencing.CallProvider
    • setConfiguredForIdentity

      public void setConfiguredForIdentity(String spaceId, boolean configured)
      Overrides:
      setConfiguredForIdentity in class org.exoplatform.webconferencing.CallProvider
    • isConfiguredForIdentity

      public boolean isConfiguredForIdentity(String remoteId)
      Overrides:
      isConfiguredForIdentity in class org.exoplatform.webconferencing.CallProvider