Package org.cyclos.model.users.users
Enum SecurityAnswerStatus
- java.lang.Object
-
- java.lang.Enum<SecurityAnswerStatus>
-
- org.cyclos.model.users.users.SecurityAnswerStatus
-
- All Implemented Interfaces:
Serializable,Comparable<SecurityAnswerStatus>,HasMessageKey
public enum SecurityAnswerStatus extends Enum<SecurityAnswerStatus> implements HasMessageKey
Represents the possible status for a security question answer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()static SecurityAnswerStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static SecurityAnswerStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_USED
public static final SecurityAnswerStatus NOT_USED
The user has not any security question to answer
-
PENDING
public static final SecurityAnswerStatus PENDING
The user is pending to answer the security question
-
ACTIVE
public static final SecurityAnswerStatus ACTIVE
The security question has been answered by the user
-
-
Method Detail
-
values
public static SecurityAnswerStatus[] 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 (SecurityAnswerStatus c : SecurityAnswerStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SecurityAnswerStatus 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-