Package com.hcl.labs.domi.providers
Class OnlineMeetingProviderFactoryHolder
- java.lang.Object
-
- com.hcl.labs.domi.providers.OnlineMeetingProviderFactoryHolder
-
- All Implemented Interfaces:
OnlineMeetingProviderFactory
public class OnlineMeetingProviderFactoryHolder extends Object implements OnlineMeetingProviderFactory
- Author:
- Paul Withers Factory class for a specific online meeting provider
-
-
Constructor Summary
Constructors Constructor Description OnlineMeetingProviderFactoryHolder(String clientId, String clientSecret, String providerName, String hostName)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createAndEnableRoutes(OnlineMeetingProviderParameters params)
Creates and registers route for callback from OAuth for this provider, hooking it into certain paths.String
getClientId()
String
getClientSecret()
String
getHostName()
String
getProviderName()
-
-
-
Constructor Detail
-
OnlineMeetingProviderFactoryHolder
public OnlineMeetingProviderFactoryHolder(String clientId, String clientSecret, String providerName, String hostName)
Constructor- Parameters:
clientId
- of OAuth application for this providerclientSecret
- of OAuth application for this providerproviderName
- for online meeting providerhostName
- for this server, to use in redirect URLs etc
-
-
Method Detail
-
getClientId
public String getClientId()
- Specified by:
getClientId
in interfaceOnlineMeetingProviderFactory
- Returns:
- client ID of OAuth application for this provider
-
getClientSecret
public String getClientSecret()
- Specified by:
getClientSecret
in interfaceOnlineMeetingProviderFactory
- Returns:
- client secret of OAuth application for this provider
-
getProviderName
public String getProviderName()
- Specified by:
getProviderName
in interfaceOnlineMeetingProviderFactory
- Returns:
- name of the online meeting provider
-
getHostName
public String getHostName()
- Specified by:
getHostName
in interfaceOnlineMeetingProviderFactory
- Returns:
- host name for this server
-
createAndEnableRoutes
public void createAndEnableRoutes(OnlineMeetingProviderParameters params)
Description copied from interface:OnlineMeetingProviderFactory
Creates and registers route for callback from OAuth for this provider, hooking it into certain paths. Also creates the route for refreshing tokens.- Specified by:
createAndEnableRoutes
in interfaceOnlineMeetingProviderFactory
- Parameters:
params
- OnlineMeetingProviderParameters object holding all required settings
-
-