org.springframework.social.connect.sqlite
Class SQLiteUsersConnectionRepository
java.lang.Object
org.springframework.social.connect.sqlite.SQLiteUsersConnectionRepository
- All Implemented Interfaces:
- org.springframework.social.connect.UsersConnectionRepository
public class SQLiteUsersConnectionRepository
- extends java.lang.Object
- implements org.springframework.social.connect.UsersConnectionRepository
UsersConnectionRepository
that uses SQLite to persist connection data to a relational database.
- Author:
- Roy Clarkson
Constructor Summary |
SQLiteUsersConnectionRepository(android.database.sqlite.SQLiteOpenHelper repositoryHelper,
org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator,
org.springframework.security.crypto.encrypt.TextEncryptor textEncryptor)
|
Method Summary |
org.springframework.social.connect.ConnectionRepository |
createConnectionRepository(java.lang.String userId)
|
java.util.Set<java.lang.String> |
findUserIdsConnectedTo(java.lang.String providerId,
java.util.Set<java.lang.String> providerUserIds)
|
java.util.List<java.lang.String> |
findUserIdsWithConnection(org.springframework.social.connect.Connection<?> connection)
|
void |
setConnectionSignUp(org.springframework.social.connect.ConnectionSignUp connectionSignUp)
The command to execute to create a new local user profile in the event no user id could be mapped to a connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLiteUsersConnectionRepository
public SQLiteUsersConnectionRepository(android.database.sqlite.SQLiteOpenHelper repositoryHelper,
org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator,
org.springframework.security.crypto.encrypt.TextEncryptor textEncryptor)
setConnectionSignUp
public void setConnectionSignUp(org.springframework.social.connect.ConnectionSignUp connectionSignUp)
- The command to execute to create a new local user profile in the event no user id could be mapped to a connection.
Allows for implicitly creating a user profile from connection data during a provider sign-in attempt.
Defaults to null, indicating explicit sign-up will be required to complete the provider sign-in attempt.
- See Also:
findUserIdsWithConnection(Connection)
findUserIdsWithConnection
public java.util.List<java.lang.String> findUserIdsWithConnection(org.springframework.social.connect.Connection<?> connection)
- Specified by:
findUserIdsWithConnection
in interface org.springframework.social.connect.UsersConnectionRepository
findUserIdsConnectedTo
public java.util.Set<java.lang.String> findUserIdsConnectedTo(java.lang.String providerId,
java.util.Set<java.lang.String> providerUserIds)
- Specified by:
findUserIdsConnectedTo
in interface org.springframework.social.connect.UsersConnectionRepository
createConnectionRepository
public org.springframework.social.connect.ConnectionRepository createConnectionRepository(java.lang.String userId)
- Specified by:
createConnectionRepository
in interface org.springframework.social.connect.UsersConnectionRepository