Enum LoginState
- java.lang.Object
-
- java.lang.Enum<LoginState>
-
- aero.panasonic.inflight.services.user.v2.login.LoginState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<LoginState>
public enum LoginState extends java.lang.Enum<LoginState>
This list various login states that user can be.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LOGIN_STATE_LOCKEDState is lockedLOGIN_STATE_LOGGED_INUser is logged inLOGIN_STATE_NOT_LOGGED_INUser is not logged inLOGIN_STATE_UNKNOWNState is unknown
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoginStategetStateById(int id)intgetStateId()static java.lang.StringgetSTATEMessage(LoginState STATE)Get details of the STATE.intgetValue()static LoginStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LoginState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LOGIN_STATE_UNKNOWN
public static final LoginState LOGIN_STATE_UNKNOWN
State is unknown
-
LOGIN_STATE_LOGGED_IN
public static final LoginState LOGIN_STATE_LOGGED_IN
User is logged in
-
LOGIN_STATE_NOT_LOGGED_IN
public static final LoginState LOGIN_STATE_NOT_LOGGED_IN
User is not logged in
-
LOGIN_STATE_LOCKED
public static final LoginState LOGIN_STATE_LOCKED
State is locked
-
-
Method Detail
-
values
public static LoginState[] 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 (LoginState c : LoginState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LoginState valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getSTATEMessage
public static java.lang.String getSTATEMessage(LoginState STATE)
Get details of the STATE.- Parameters:
STATE-LoginState- STATE object.- Returns:
- A String message with STATE details.
-
getStateById
public static LoginState getStateById(int id)
-
getValue
public int getValue()
-
getStateId
public int getStateId()
-
-