Interface OAuthServiceProviderRegistry
-
- All Known Implementing Classes:
OAuthServiceProviderRegistryImpl
public interface OAuthServiceProviderRegistry
This service is used to manage OAuth Service Providers: ie REST Services that can be used by Nuxeo via OAuth.Typically, this service is used by Shindig to determine what what shared secret should be used by gadgets to fetch their data.
- Author:
- tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NuxeoOAuthServiceProvider
addReadOnlyProvider(String gadgetUri, String serviceName, String consumerKey, String consumerSecret, String publicKey)
This method is here for compatibility reasons.void
deleteProvider(String providerId)
Deletes a provider.void
deleteProvider(String gadgetUri, String serviceName)
Deletes a provider.NuxeoOAuthServiceProvider
getProvider(String gadgetUri, String serviceName)
Select the best provider given.List<NuxeoOAuthServiceProvider>
listProviders()
Return the list of all know providers (both readonly and editable ones).
-
-
-
Method Detail
-
getProvider
NuxeoOAuthServiceProvider getProvider(String gadgetUri, String serviceName)
Select the best provider given.- Parameters:
gadgetUri
- the gadget url (or AppId)serviceName
- the service name as defined in MakeRequest
-
addReadOnlyProvider
NuxeoOAuthServiceProvider addReadOnlyProvider(String gadgetUri, String serviceName, String consumerKey, String consumerSecret, String publicKey)
This method is here for compatibility reasons. Providers that are directly contributed to the OpenSocialService are forwarded to the new centralized service.
-
deleteProvider
void deleteProvider(String providerId)
Deletes a provider.
-
listProviders
List<NuxeoOAuthServiceProvider> listProviders()
Return the list of all know providers (both readonly and editable ones).
-
-