Spring Social

org.springframework.social.config.annotation
Annotation Type EnableJdbcConnectionRepository


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@Inherited
@Import(value=org.springframework.social.config.annotation.JdbcConnectionRepositoryRegistrar.class)
public @interface EnableJdbcConnectionRepository

Annotation to enable JDBC-based persistence of connections. Configures a singleton JdbcUsersConnectionRepository and a request-scoped JdbcConnectionRepository.

Author:
Craig Walls

Optional Element Summary
 java.lang.String connectionFactoryLocatorRef
          The ID of the ConnectionFactoryLocator bean to fetch a ConnectionFactory from when creating/persisting connections.
 java.lang.String connectionRepositoryId
          The ID to assign to the ConnectionRepository bean.
 java.lang.String connectionSignUpRef
          Reference to ConnectionSignUp bean to execute to create a new local user profile in the event no user id could be mapped to a connection.
 java.lang.String dataSourceRef
          The ID of a DataSource for accessing the database.
 java.lang.String encryptorRef
          The ID of a TextEncryptor used when persisting connection details.
 java.lang.String userIdSourceRef
          The ID of a UserIdSource bean used to determine the unique identifier of the current user.
 java.lang.String usersConnectionRepositoryId
          The ID to assign to the UsersConnectionRepository bean.
 

connectionRepositoryId

public abstract java.lang.String connectionRepositoryId
The ID to assign to the ConnectionRepository bean. Defaults to "connectionRepository".

Default:
"connectionRepository"

usersConnectionRepositoryId

public abstract java.lang.String usersConnectionRepositoryId
The ID to assign to the UsersConnectionRepository bean. Defaults to "usersConnectionRepository".

Default:
"usersConnectionRepository"

connectionFactoryLocatorRef

public abstract java.lang.String connectionFactoryLocatorRef
The ID of the ConnectionFactoryLocator bean to fetch a ConnectionFactory from when creating/persisting connections. Defaults to "connectionFactoryLocator".

Default:
"connectionFactoryLocator"

dataSourceRef

public abstract java.lang.String dataSourceRef
The ID of a DataSource for accessing the database. Defaults to "dataSource".

Default:
"dataSource"

encryptorRef

public abstract java.lang.String encryptorRef
The ID of a TextEncryptor used when persisting connection details. Defaults to "textEncryptor".

Default:
"textEncryptor"

userIdSourceRef

public abstract java.lang.String userIdSourceRef
The ID of a UserIdSource bean used to determine the unique identifier of the current user. Defaults to "userIdSource".

Default:
"userIdSource"

connectionSignUpRef

public abstract java.lang.String connectionSignUpRef
Reference to ConnectionSignUp bean 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.

Default:
""

Spring Social