userman
Enum UserManager.Status

java.lang.Object
  extended by java.lang.Enum<UserManager.Status>
      extended by userman.UserManager.Status
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UserManager.Status>
Enclosing class:
UserManager

public static enum UserManager.Status
extends java.lang.Enum<UserManager.Status>

An enumerated type for representing login and registration status.


Enum Constant Summary
LOGIN_SUCCESS
          At login time, the submitted user name was found in the database and the submitted password matches
NAME_IN_USE
          At registration time, the submitted user name has already been assigned in the database
NAME_NOT_FOUND
          At login time, the submitted user name was not found in the database
PASSWORD_NOT_MATCHED
          At login time, the submitted user name was found but the submitted password does not match
REGISTER_SUCCESS
          At registration time, the submitted user name and password were successfully added to the database
 
Method Summary
static UserManager.Status valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static UserManager.Status[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NAME_NOT_FOUND

public static final UserManager.Status NAME_NOT_FOUND
At login time, the submitted user name was not found in the database


PASSWORD_NOT_MATCHED

public static final UserManager.Status PASSWORD_NOT_MATCHED
At login time, the submitted user name was found but the submitted password does not match


NAME_IN_USE

public static final UserManager.Status NAME_IN_USE
At registration time, the submitted user name has already been assigned in the database


LOGIN_SUCCESS

public static final UserManager.Status LOGIN_SUCCESS
At login time, the submitted user name was found in the database and the submitted password matches


REGISTER_SUCCESS

public static final UserManager.Status REGISTER_SUCCESS
At registration time, the submitted user name and password were successfully added to the database

Method Detail

values

public static UserManager.Status[] 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 (UserManager.Status c : UserManager.Status.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static UserManager.Status 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 name
java.lang.NullPointerException - if the argument is null