org.springframework.social.alfresco.connect
Class AlfrescoServiceProvider
java.lang.Object
org.springframework.social.oauth2.AbstractOAuth2ServiceProvider<Alfresco>
org.springframework.social.alfresco.connect.AlfrescoServiceProvider
- All Implemented Interfaces:
- org.springframework.social.oauth2.OAuth2ServiceProvider<Alfresco>, org.springframework.social.ServiceProvider<Alfresco>
public class AlfrescoServiceProvider
- extends org.springframework.social.oauth2.AbstractOAuth2ServiceProvider<Alfresco>
- Author:
- jottley
|
Method Summary |
Alfresco |
getApi(String accessToken)
Returns the Alfresco Api client interface to access protected resources on behalf of a user |
| Methods inherited from class org.springframework.social.oauth2.AbstractOAuth2ServiceProvider |
getOAuthOperations |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlfrescoServiceProvider
public AlfrescoServiceProvider(String consumerKey,
String consumerSecret)
- Create new Alfresco OAuth2ServiceProvider
- Parameters:
consumerKey - - Alfresco Api KeyconsumerSecret - - Alfresco Key Secret
getApi
public Alfresco getApi(String accessToken)
- Returns the Alfresco Api client interface to access protected resources on behalf of a user
- Specified by:
getApi in interface org.springframework.social.oauth2.OAuth2ServiceProvider<Alfresco>- Specified by:
getApi in class org.springframework.social.oauth2.AbstractOAuth2ServiceProvider<Alfresco>
- Parameters:
accessToken - - the Api access Token
Copyright © 2012 Alfresco Software Inc.. All Rights Reserved.