public static enum SocialAuthenticationService.ConnectionCardinality extends Enum<SocialAuthenticationService.ConnectionCardinality>
Enum Constant and Description |
---|
MANY_TO_MANY
no restrictions.
|
MANY_TO_ONE
only one providerUserId per userId, but many userIds per providerUserId.
|
ONE_TO_MANY
many connected providerUserIds per userId, but only one userId per providerUserId
|
ONE_TO_ONE
only one connected providerUserId per userId and vice versa
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAuthenticatePossible() |
boolean |
isMultiProviderUserId()
allow many providerUserIds per userId
|
boolean |
isMultiUserId()
allow many userIds per providerUserId.
|
static SocialAuthenticationService.ConnectionCardinality |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocialAuthenticationService.ConnectionCardinality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocialAuthenticationService.ConnectionCardinality ONE_TO_ONE
public static final SocialAuthenticationService.ConnectionCardinality ONE_TO_MANY
public static final SocialAuthenticationService.ConnectionCardinality MANY_TO_ONE
public static final SocialAuthenticationService.ConnectionCardinality MANY_TO_MANY
public static SocialAuthenticationService.ConnectionCardinality[] values()
for (SocialAuthenticationService.ConnectionCardinality c : SocialAuthenticationService.ConnectionCardinality.values()) System.out.println(c);
public static SocialAuthenticationService.ConnectionCardinality valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isMultiUserId()
public boolean isMultiProviderUserId()
public boolean isAuthenticatePossible()