public class OAuth2ServiceProviderRegistryImpl extends DefaultComponent implements OAuth2ServiceProviderRegistry
OAuth2ServiceProviderRegistry. The storage backend is a SQL Directory.| Modifier and Type | Field and Description |
|---|---|
static String |
DIRECTORY_NAME |
protected static org.apache.commons.logging.Log |
log |
static String |
PROVIDER_EP |
protected OAuth2ServiceProviderContributionRegistry |
registry
Registry of contributed providers.
|
static String |
SCHEMA |
lastModified| Constructor and Description |
|---|
OAuth2ServiceProviderRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
OAuth2ServiceProvider |
addProvider(String serviceName,
String description,
String tokenServerURL,
String authorizationServerURL,
String clientId,
String clientSecret,
List<String> scopes) |
void |
applicationStarted(ComponentContext context)
Notify the component that Nuxeo Framework finished starting all Nuxeo bundles.
|
protected OAuth2ServiceProvider |
buildProvider(DocumentModel entry)
Instantiates the provider merging the contribution and the directory entry
|
OAuth2ServiceProvider |
getProvider(String serviceName) |
protected List<DocumentModel> |
queryProviders(Map<String,Serializable> filter,
int limit) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
protected void |
registerCustomProviders() |
activate, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterContribution, unregisterExtensionprotected static final org.apache.commons.logging.Log log
public static final String PROVIDER_EP
public static final String DIRECTORY_NAME
public static final String SCHEMA
protected OAuth2ServiceProviderContributionRegistry registry
public OAuth2ServiceProviderRegistryImpl()
public OAuth2ServiceProvider getProvider(String serviceName)
getProvider in interface OAuth2ServiceProviderRegistrypublic OAuth2ServiceProvider addProvider(String serviceName, String description, String tokenServerURL, String authorizationServerURL, String clientId, String clientSecret, List<String> scopes)
addProvider in interface OAuth2ServiceProviderRegistryprotected List<DocumentModel> queryProviders(Map<String,Serializable> filter, int limit)
protected OAuth2ServiceProvider buildProvider(DocumentModel entry)
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic void applicationStarted(ComponentContext context)
ComponentapplicationStarted in interface ComponentapplicationStarted in class DefaultComponentprotected void registerCustomProviders()
Copyright © 2016 Nuxeo SA. All rights reserved.