edu.wpi.prc.project
Enum SpotCheckFailureAction

java.lang.Object
  extended by java.lang.Enum<SpotCheckFailureAction>
      extended by edu.wpi.prc.project.SpotCheckFailureAction
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SpotCheckFailureAction>

public enum SpotCheckFailureAction
extends java.lang.Enum<SpotCheckFailureAction>

Indicates what action to take when a computer fails a spot check. NotifyAdmin means that the project administrator will be notified that the user failed a spot check. BanUser means that the user will be permanently banned from submitting results and requesting work units. PurgeResults means that the user will be permanently banned and all results the user has ever returned will be deleted.

Author:
James Baldassari

Enum Constant Summary
BanUser
           
Log
           
PurgeResults
           
 
Field Summary
private  java.lang.String actionStr
           
 
Method Summary
 java.lang.String toString()
           
static SpotCheckFailureAction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SpotCheckFailureAction[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Log

public static final SpotCheckFailureAction Log

BanUser

public static final SpotCheckFailureAction BanUser

PurgeResults

public static final SpotCheckFailureAction PurgeResults
Field Detail

actionStr

private final java.lang.String actionStr
Method Detail

values

public static final SpotCheckFailureAction[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SpotCheckFailureAction c : SpotCheckFailureAction.values())
        System.out.println(c);

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

valueOf

public static SpotCheckFailureAction 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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<SpotCheckFailureAction>