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) |
OAuth2ServiceProvider |
addProvider(String serviceName,
String description,
String tokenServerURL,
String authorizationServerURL,
String userAuthorizationURL,
String clientId,
String clientSecret,
List<String> scopes,
Boolean isEnabled) |
protected OAuth2ServiceProvider |
buildProvider(DocumentModel entry)
Instantiates the provider merging the contribution and the directory entry
|
void |
deleteProvider(String serviceName) |
OAuth2ServiceProvider |
getProvider(String serviceName) |
protected DocumentModel |
getProviderDocModel(String serviceName) |
List<OAuth2ServiceProvider> |
getProviders() |
protected List<DocumentModel> |
queryProviders(Map<String,Serializable> filter,
int limit) |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
protected void |
registerCustomProviders() |
void |
start(ComponentContext context)
Start the component.
|
OAuth2ServiceProvider |
updateProvider(String serviceName,
OAuth2ServiceProvider provider) |
activate, deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, stop, unregisterContribution, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
protected 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()
protected DocumentModel getProviderDocModel(String serviceName)
public OAuth2ServiceProvider getProvider(String serviceName)
getProvider
in interface OAuth2ServiceProviderRegistry
public List<OAuth2ServiceProvider> getProviders()
getProviders
in interface OAuth2ServiceProviderRegistry
public OAuth2ServiceProvider addProvider(String serviceName, String description, String tokenServerURL, String authorizationServerURL, String clientId, String clientSecret, List<String> scopes)
addProvider
in interface OAuth2ServiceProviderRegistry
public OAuth2ServiceProvider addProvider(String serviceName, String description, String tokenServerURL, String authorizationServerURL, String userAuthorizationURL, String clientId, String clientSecret, List<String> scopes, Boolean isEnabled)
addProvider
in interface OAuth2ServiceProviderRegistry
public OAuth2ServiceProvider updateProvider(String serviceName, OAuth2ServiceProvider provider)
updateProvider
in interface OAuth2ServiceProviderRegistry
public void deleteProvider(String serviceName)
deleteProvider
in interface OAuth2ServiceProviderRegistry
protected 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 DefaultComponent
public void start(ComponentContext context)
Component
start
in interface Component
start
in class DefaultComponent
protected void registerCustomProviders()
Copyright © 2017 Nuxeo. All rights reserved.