Enum RegistrationWithIdentityProviders
- java.lang.Object
-
- java.lang.Enum<RegistrationWithIdentityProviders>
-
- org.cyclos.model.system.channelconfigurations.RegistrationWithIdentityProviders
-
- All Implemented Interfaces:
Serializable,Comparable<RegistrationWithIdentityProviders>,HasMessageKey
public enum RegistrationWithIdentityProviders extends Enum<RegistrationWithIdentityProviders> implements HasMessageKey
Defines how registration with identity providers work
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLEDRegistration with providers is disabledENABLED_DIRECTRegistration is enabled.ENABLED_FORMRegistration is enabled.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanenabled()MessageKeygetMessageKey()static RegistrationWithIdentityProvidersvalueOf(String name)Returns the enum constant of this type with the specified name.static RegistrationWithIdentityProviders[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENABLED_DIRECT
public static final RegistrationWithIdentityProviders ENABLED_DIRECT
Registration is enabled. A direct registration will be attempted. If succeed, the user will be automatically logged in.
-
ENABLED_FORM
public static final RegistrationWithIdentityProviders ENABLED_FORM
Registration is enabled. It will always just fill-in the registration form with fields from the provider.
-
DISABLED
public static final RegistrationWithIdentityProviders DISABLED
Registration with providers is disabled
-
-
Method Detail
-
values
public static RegistrationWithIdentityProviders[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RegistrationWithIdentityProviders c : RegistrationWithIdentityProviders.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RegistrationWithIdentityProviders valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
enabled
public boolean enabled()
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-