com.force.sdk.oauth.userdata
Class CustomUserDataRetrievalService
java.lang.Object
com.force.sdk.oauth.userdata.UserDataRetrievalService
com.force.sdk.oauth.userdata.CustomUserDataRetrievalService
public final class CustomUserDataRetrievalService
- extends UserDataRetrievalService
Defines the logic which calls a CustomUserDataRetriever. When customer user data retrieval is used a
CustomerUserDataRetriever that returns the CustomSecurityContext object will be needed. The
CustomUserDataRetrievalService is called to retrieve custom user data and it will, in turn, call the application
specific CustomerUserDataRetriever.
- Author:
- John Simone
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomUserDataRetrievalService
protected CustomUserDataRetrievalService()
CustomUserDataRetrievalService
public CustomUserDataRetrievalService(CustomUserDataRetriever<?> customDataRetriever,
boolean storeUsername)
- Create a custom user data retrieval service with this CustomUserDataRetriever.
- Parameters:
customDataRetriever
- CustomUserDataRetrieverstoreUsername
- flag that controls whether or not the username will be stored
CustomUserDataRetrievalService
public CustomUserDataRetrievalService(CustomUserDataRetriever<?> customDataRetriever)
- Create a custom user data retrieval service with this CustomUserDataRetriever. Create a custom user data
retrieval service with this CustomUserDataRetriever
- Parameters:
customDataRetriever
- CustomUserDataRetriever
setCustomDataRetriever
public void setCustomDataRetriever(CustomUserDataRetriever<?> customDataRetriever)
retrieveUserData
public SecurityContext retrieveUserData(String sessionId,
String endpoint,
String refreshToken)
throws com.sforce.ws.ConnectionException
- Call the super method to retrieve the default user data. Then set up the custom user data retriever and use it to
retrieve the extended user data.
- Overrides:
retrieveUserData
in class UserDataRetrievalService
- Parameters:
sessionId
- Stringendpoint
- StringrefreshToken
- String
- Returns:
- SecurityContext
- Throws:
com.sforce.ws.ConnectionException
- connection error
Copyright © 2011. All Rights Reserved.