Class OAuth2ServiceProviderRegistryImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.oauth2.providers.OAuth2ServiceProviderRegistryImpl
- All Implemented Interfaces:
OAuth2ServiceProviderRegistry,Adaptable,Component,Extensible,TimestampedService
public class OAuth2ServiceProviderRegistryImpl
extends DefaultComponent
implements OAuth2ServiceProviderRegistry
Implementation of the
OAuth2ServiceProviderRegistry. The storage backend is a SQL Directory.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected Map<String, OAuth2ServiceProviderDescriptor> static final StringFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProvider(String serviceName, String description, String tokenServerURL, String authorizationServerURL, String userAuthorizationURL, String clientId, String clientSecret, List<String> scopes, Boolean isEnabled) addProvider(String serviceName, String description, String tokenServerURL, String authorizationServerURL, String clientId, String clientSecret, List<String> scopes) protected OAuth2ServiceProviderbuildProvider(DocumentModel entry) Instantiates the provider merging the contribution and the directory entryvoiddeleteProvider(String serviceName) getProvider(String serviceName) protected DocumentModelgetProviderDocModel(String serviceName) protected OAuth2ServiceProviderinstantiateProvider(String serviceName) protected List<DocumentModel> queryProviders(QueryBuilder query) voidstart(ComponentContext context) Start the component.voidstop(ComponentContext context) Stop the component.updateProvider(String serviceName, OAuth2ServiceProvider provider) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, unregister, unregisterContribution, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
PROVIDER_EP
- See Also:
-
DIRECTORY_NAME
- See Also:
-
SCHEMA
- See Also:
-
providers
-
-
Constructor Details
-
OAuth2ServiceProviderRegistryImpl
public OAuth2ServiceProviderRegistryImpl()
-
-
Method Details
-
getProviderDocModel
-
getProvider
- Specified by:
getProviderin interfaceOAuth2ServiceProviderRegistry
-
getProviders
- Specified by:
getProvidersin interfaceOAuth2ServiceProviderRegistry
-
addProvider
public OAuth2ServiceProvider addProvider(String serviceName, String description, String tokenServerURL, String authorizationServerURL, String clientId, String clientSecret, List<String> scopes) - Specified by:
addProviderin interfaceOAuth2ServiceProviderRegistry
-
addProvider
public OAuth2ServiceProvider addProvider(String serviceName, String description, String tokenServerURL, String authorizationServerURL, String userAuthorizationURL, String clientId, String clientSecret, List<String> scopes, Boolean isEnabled) - Specified by:
addProviderin interfaceOAuth2ServiceProviderRegistry
-
updateProvider
- Specified by:
updateProviderin interfaceOAuth2ServiceProviderRegistry
-
deleteProvider
- Specified by:
deleteProviderin interfaceOAuth2ServiceProviderRegistry
-
queryProviders
-
buildProvider
Instantiates the provider merging the contribution and the directory entry -
instantiateProvider
-
start
Description copied from interface:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
stop
Description copied from interface:ComponentStop the component.- Specified by:
stopin interfaceComponent- Overrides:
stopin classDefaultComponent
-