Spring for Android

org.springframework.social.connect.sqlite
Class SQLiteConnectionRepository

java.lang.Object
  extended by org.springframework.social.connect.sqlite.SQLiteConnectionRepository
All Implemented Interfaces:
org.springframework.social.connect.ConnectionRepository

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.

Author:
Roy Clarkson

Constructor Summary
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)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLiteConnectionRepository

public SQLiteConnectionRepository(android.database.sqlite.SQLiteOpenHelper repositoryHelper,
                                  org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator,
                                  org.springframework.security.crypto.encrypt.TextEncryptor textEncryptor)

SQLiteConnectionRepository

public SQLiteConnectionRepository(java.lang.String userId,
                                  android.database.sqlite.SQLiteOpenHelper repositoryHelper,
                                  org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator,
                                  org.springframework.security.crypto.encrypt.TextEncryptor textEncryptor)
Method Detail

findAllConnections

public MultiValueMap<java.lang.String,org.springframework.social.connect.Connection<?>> findAllConnections()
Specified by:
findAllConnections in interface org.springframework.social.connect.ConnectionRepository

findConnections

public java.util.List<org.springframework.social.connect.Connection<?>> findConnections(java.lang.String providerId)
Specified by:
findConnections in interface org.springframework.social.connect.ConnectionRepository

findConnections

public <A> java.util.List<org.springframework.social.connect.Connection<A>> findConnections(java.lang.Class<A> apiType)
Specified by:
findConnections in interface org.springframework.social.connect.ConnectionRepository

findConnectionsToUsers

public MultiValueMap<java.lang.String,org.springframework.social.connect.Connection<?>> findConnectionsToUsers(MultiValueMap<java.lang.String,java.lang.String> providerUsers)
Specified by:
findConnectionsToUsers in interface org.springframework.social.connect.ConnectionRepository

getConnection

public org.springframework.social.connect.Connection<?> getConnection(org.springframework.social.connect.ConnectionKey connectionKey)
Specified by:
getConnection in interface org.springframework.social.connect.ConnectionRepository

getConnection

public <A> org.springframework.social.connect.Connection<A> getConnection(java.lang.Class<A> apiType,
                                                                          java.lang.String providerUserId)
Specified by:
getConnection in interface org.springframework.social.connect.ConnectionRepository

getPrimaryConnection

public <A> org.springframework.social.connect.Connection<A> getPrimaryConnection(java.lang.Class<A> apiType)
Specified by:
getPrimaryConnection in interface org.springframework.social.connect.ConnectionRepository

findPrimaryConnection

public <A> org.springframework.social.connect.Connection<A> findPrimaryConnection(java.lang.Class<A> apiType)
Specified by:
findPrimaryConnection in interface org.springframework.social.connect.ConnectionRepository

addConnection

public void addConnection(org.springframework.social.connect.Connection<?> connection)
Specified by:
addConnection in interface org.springframework.social.connect.ConnectionRepository

updateConnection

public void updateConnection(org.springframework.social.connect.Connection<?> connection)
Specified by:
updateConnection in interface org.springframework.social.connect.ConnectionRepository

removeConnections

public void removeConnections(java.lang.String providerId)
Specified by:
removeConnections in interface org.springframework.social.connect.ConnectionRepository

removeConnection

public void removeConnection(org.springframework.social.connect.ConnectionKey connectionKey)
Specified by:
removeConnection in interface org.springframework.social.connect.ConnectionRepository

Spring for Android