Package | Description |
---|---|
org.springframework.social.connect |
Framework for establishing connections between local users and users of ServiceProviders such as Twitter and Facebook.
|
org.springframework.social.connect.jdbc |
JDBC-based
ConnectionRepository implementation. |
org.springframework.social.connect.support |
ServiceProvider Connect API implementation support.
|
org.springframework.social.connect.web |
Spring MVC Controller for controlling ServiceProvider connect operations.
|
Modifier and Type | Method and Description |
---|---|
abstract Connection<A> |
ConnectionFactory.createConnection(ConnectionData data) |
<A> Connection<A> |
ConnectionRepository.findPrimaryConnection(Class<A> apiType)
Find the "primary" connection the current user has to the provider of the given API e.g.
|
<A> Connection<A> |
ConnectionRepository.getConnection(Class<A> apiType,
String providerUserId)
Get a connection between the current user and the given provider user.
|
Connection<?> |
ConnectionRepository.getConnection(ConnectionKey connectionKey)
Get a connection for the current user by its key, which consists of the providerId + providerUserId.
|
<A> Connection<A> |
ConnectionRepository.getPrimaryConnection(Class<A> apiType)
Get the "primary" connection the current user has to the provider of the given API e.g.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.util.MultiValueMap<String,Connection<?>> |
ConnectionRepository.findAllConnections()
Find all connections the current user has across all providers.
|
<A> List<Connection<A>> |
ConnectionRepository.findConnections(Class<A> apiType)
Find the connections the current user has to the provider of the given API e.g.
|
List<Connection<?>> |
ConnectionRepository.findConnections(String providerId)
Find the connections the current user has to the provider registered by the given id e.g.
|
org.springframework.util.MultiValueMap<String,Connection<?>> |
ConnectionRepository.findConnectionsToUsers(org.springframework.util.MultiValueMap<String,String> providerUserIds)
Find the connections the current user has to the given provider users.
|
Modifier and Type | Method and Description |
---|---|
void |
ConnectionRepository.addConnection(Connection<?> connection)
Add a new connection to this repository for the current user.
|
String |
ConnectionSignUp.execute(Connection<?> connection)
Sign up a new user of the application from the connection.
|
List<String> |
UsersConnectionRepository.findUserIdsWithConnection(Connection<?> connection)
Find the ids for local application users that have the given
Connection . |
void |
ConnectionRepository.updateConnection(Connection<?> connection)
Update a Connection already added to this repository.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
JdbcUsersConnectionRepository.findUserIdsWithConnection(Connection<?> connection) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractConnection<A>
Base support class for
Connection implementations. |
class |
OAuth1Connection<A>
An OAuth1-based Connection implementation.
|
class |
OAuth2Connection<A>
An OAuth2-based Connection implementation.
|
Modifier and Type | Method and Description |
---|---|
Connection<S> |
OAuth2ConnectionFactory.createConnection(AccessGrant accessGrant)
|
Connection<A> |
OAuth1ConnectionFactory.createConnection(ConnectionData data)
Create a OAuth1-based
Connection from the connection data. |
Connection<S> |
OAuth2ConnectionFactory.createConnection(ConnectionData data)
Create a OAuth2-based
Connection from the connection data. |
Connection<A> |
OAuth1ConnectionFactory.createConnection(OAuthToken accessToken)
Create a OAuth1-based Connection from the access token response returned after
completing the OAuth1 flow . |
Modifier and Type | Method and Description |
---|---|
Connection<?> |
ConnectSupport.completeConnection(OAuth1ConnectionFactory<?> connectionFactory,
org.springframework.web.context.request.NativeWebRequest request)
Complete the connection to the OAuth1 provider.
|
Connection<?> |
ConnectSupport.completeConnection(OAuth2ConnectionFactory<?> connectionFactory,
org.springframework.web.context.request.NativeWebRequest request)
Complete the connection to the OAuth2 provider.
|
Connection<?> |
ProviderSignInAttempt.getConnection()
Get the connection to the provider user account the client attempted to sign-in as.
|
static Connection<?> |
ProviderSignInUtils.getConnection(org.springframework.web.context.request.RequestAttributes request)
Get the connection to the provider user the client attempted to sign-in as.
|
Modifier and Type | Method and Description |
---|---|
void |
ConnectInterceptor.postConnect(Connection<S> connection,
org.springframework.web.context.request.WebRequest request)
Called immediately after the connection is established.
|
String |
SignInAdapter.signIn(String userId,
Connection<?> connection,
org.springframework.web.context.request.NativeWebRequest request)
Complete a provider sign-in attempt by signing in the local user account with the specified id.
|
Constructor and Description |
---|
ProviderSignInAttempt(Connection<?> connection,
ConnectionFactoryLocator connectionFactoryLocator,
UsersConnectionRepository connectionRepository) |
Copyright © 2016. All rights reserved.