edu.internet2.middleware.grouper.app.loader
Enum GrouperLoaderStatus

java.lang.Object
  extended by java.lang.Enum<GrouperLoaderStatus>
      extended by edu.internet2.middleware.grouper.app.loader.GrouperLoaderStatus
All Implemented Interfaces:
Serializable, Comparable<GrouperLoaderStatus>

public enum GrouperLoaderStatus
extends Enum<GrouperLoaderStatus>

status of a job


Enum Constant Summary
CONFIG_ERROR
          job cant even start
ERROR
          job didnt finish, it had problems
RUNNING
          job is running
STARTED
          job was started
SUBJECT_PROBLEMS
          job finished but there were problems with one or more subjects (e.g.
SUCCESS
          job finished with success
WARNING
          job finished, but had problems.
 
Method Summary
 String getFriendlyString()
          friendly string e.g.
static GrouperLoaderStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GrouperLoaderStatus valueOfIgnoreCase(String string, boolean exceptionOnNotFound)
          do a case-insensitive matching
static GrouperLoaderStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STARTED

public static final GrouperLoaderStatus STARTED
job was started


RUNNING

public static final GrouperLoaderStatus RUNNING
job is running


CONFIG_ERROR

public static final GrouperLoaderStatus CONFIG_ERROR
job cant even start


SUBJECT_PROBLEMS

public static final GrouperLoaderStatus SUBJECT_PROBLEMS
job finished but there were problems with one or more subjects (e.g. not found, duplicate, unresolvable)


SUCCESS

public static final GrouperLoaderStatus SUCCESS
job finished with success


WARNING

public static final GrouperLoaderStatus WARNING
job finished, but had problems. Or maybe some subjobs ok, some not


ERROR

public static final GrouperLoaderStatus ERROR
job didnt finish, it had problems

Method Detail

values

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

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

valueOf

public static GrouperLoaderStatus 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 name
NullPointerException - if the argument is null

getFriendlyString

public String getFriendlyString()
friendly string e.g. for report

Returns:
the friendly string

valueOfIgnoreCase

public static GrouperLoaderStatus valueOfIgnoreCase(String string,
                                                    boolean exceptionOnNotFound)
do a case-insensitive matching

Parameters:
string -
exceptionOnNotFound - true to throw exception if method not found
Returns:
the enum or null or exception if not found