public class SQLiteConnectionRepository
extends java.lang.Object
implements org.springframework.social.connect.ConnectionRepository
ConnectionRepository
that uses SQLite to persist connection data to a relational database.Constructor and Description |
---|
SQLiteConnectionRepository(android.database.sqlite.SQLiteOpenHelper repositoryHelper,
org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator,
org.springframework.security.crypto.encrypt.TextEncryptor textEncryptor) |
SQLiteConnectionRepository(java.lang.String userId,
android.database.sqlite.SQLiteOpenHelper repositoryHelper,
org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator,
org.springframework.security.crypto.encrypt.TextEncryptor textEncryptor) |
Modifier and Type | Method and Description |
---|---|
void |
addConnection(org.springframework.social.connect.Connection<?> connection) |
MultiValueMap<java.lang.String,org.springframework.social.connect.Connection<?>> |
findAllConnections() |
<A> java.util.List<org.springframework.social.connect.Connection<A>> |
findConnections(java.lang.Class<A> apiType) |
java.util.List<org.springframework.social.connect.Connection<?>> |
findConnections(java.lang.String providerId) |
MultiValueMap<java.lang.String,org.springframework.social.connect.Connection<?>> |
findConnectionsToUsers(MultiValueMap<java.lang.String,java.lang.String> providerUsers) |
<A> org.springframework.social.connect.Connection<A> |
findPrimaryConnection(java.lang.Class<A> apiType) |
<A> org.springframework.social.connect.Connection<A> |
getConnection(java.lang.Class<A> apiType,
java.lang.String providerUserId) |
org.springframework.social.connect.Connection<?> |
getConnection(org.springframework.social.connect.ConnectionKey connectionKey) |
<A> org.springframework.social.connect.Connection<A> |
getPrimaryConnection(java.lang.Class<A> apiType) |
void |
removeConnection(org.springframework.social.connect.ConnectionKey connectionKey) |
void |
removeConnections(java.lang.String providerId) |
void |
updateConnection(org.springframework.social.connect.Connection<?> connection) |
public SQLiteConnectionRepository(android.database.sqlite.SQLiteOpenHelper repositoryHelper, org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator, org.springframework.security.crypto.encrypt.TextEncryptor textEncryptor)
public SQLiteConnectionRepository(java.lang.String userId, android.database.sqlite.SQLiteOpenHelper repositoryHelper, org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator, org.springframework.security.crypto.encrypt.TextEncryptor textEncryptor)
public MultiValueMap<java.lang.String,org.springframework.social.connect.Connection<?>> findAllConnections()
findAllConnections
in interface org.springframework.social.connect.ConnectionRepository
public java.util.List<org.springframework.social.connect.Connection<?>> findConnections(java.lang.String providerId)
findConnections
in interface org.springframework.social.connect.ConnectionRepository
public <A> java.util.List<org.springframework.social.connect.Connection<A>> findConnections(java.lang.Class<A> apiType)
findConnections
in interface org.springframework.social.connect.ConnectionRepository
public MultiValueMap<java.lang.String,org.springframework.social.connect.Connection<?>> findConnectionsToUsers(MultiValueMap<java.lang.String,java.lang.String> providerUsers)
findConnectionsToUsers
in interface org.springframework.social.connect.ConnectionRepository
public org.springframework.social.connect.Connection<?> getConnection(org.springframework.social.connect.ConnectionKey connectionKey)
getConnection
in interface org.springframework.social.connect.ConnectionRepository
public <A> org.springframework.social.connect.Connection<A> getConnection(java.lang.Class<A> apiType, java.lang.String providerUserId)
getConnection
in interface org.springframework.social.connect.ConnectionRepository
public <A> org.springframework.social.connect.Connection<A> getPrimaryConnection(java.lang.Class<A> apiType)
getPrimaryConnection
in interface org.springframework.social.connect.ConnectionRepository
public <A> org.springframework.social.connect.Connection<A> findPrimaryConnection(java.lang.Class<A> apiType)
findPrimaryConnection
in interface org.springframework.social.connect.ConnectionRepository
public void addConnection(org.springframework.social.connect.Connection<?> connection)
addConnection
in interface org.springframework.social.connect.ConnectionRepository
public void updateConnection(org.springframework.social.connect.Connection<?> connection)
updateConnection
in interface org.springframework.social.connect.ConnectionRepository
public void removeConnections(java.lang.String providerId)
removeConnections
in interface org.springframework.social.connect.ConnectionRepository
public void removeConnection(org.springframework.social.connect.ConnectionKey connectionKey)
removeConnection
in interface org.springframework.social.connect.ConnectionRepository