public interface UsersConnectionRepository
|Modifier and Type||Method and Description|
Create a single-user
Find the ids of the users who are connected to the specific provider user accounts.
Find the ids for local application users that have the given
List<String> findUserIdsWithConnection(Connection<?> connection)
Connection. Used to support the ProviderSignIn scenario where the user id returned is used to sign a local application user in using his or her provider account. No entries indicates no application users are associated with the connection; ProviderSignInController will offer the user a signup page to register with the app. A single entry indicates that exactly one application user is associated with the connection and is used to sign in that user via ProviderSignInController. Multiple entries indicate that multiple application users are associated with the connection and handled as an error by ProviderSignInController.
connection- the service provider connection resulting from the provider sign-in attempt
providerId- the provider id, e.g. "facebook"
providerUserIds- the set of provider user ids e.g. ("125600", "131345", "54321").
ConnectionRepository createConnectionRepository(String userId)
ConnectionRepositoryinstance for the user assigned the given id. All operations on the returned repository instance are relative to the user.
userId- the id of the local user account.