com.buildforge.services.common.dbo
Enum BuildClassDBO.PurgeRule

java.lang.Object
  extended by java.lang.Enum<BuildClassDBO.PurgeRule>
      extended by com.buildforge.services.common.dbo.BuildClassDBO.PurgeRule
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BuildClassDBO.PurgeRule>
Enclosing class:
BuildClassDBO

public static enum BuildClassDBO.PurgeRule
extends java.lang.Enum<BuildClassDBO.PurgeRule>

Specifies which of a project's builds may be purged automatically by the system on the basis of whether or not they passed. Builds that do not satisfy this condition will only be purged if a user expressly requests that the build be purged.

ValueMeaning
ANY_BUILDAny build
KEEP_PASSAny build except the most recent build that passed
ONLY_FAILEDOnly builds that failed
ONLY_PASSEDOnly builds that passed


Enum Constant Summary
ANY_BUILD
           
KEEP_PASS
           
ONLY_FAILED
           
ONLY_PASSED
           
 
Field Summary
static java.lang.Class<BuildClassDBO.PurgeRule> CLASS
           
 java.lang.String code
           
 
Method Summary
static BuildClassDBO.PurgeRule fromDB(java.lang.String s)
           
static BuildClassDBO.PurgeRule fromObject(java.lang.Object o)
           
static BuildClassDBO.PurgeRule valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BuildClassDBO.PurgeRule[] values()
          Returns an array containing the constants of this enum type, in the order they're 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

ANY_BUILD

public static final BuildClassDBO.PurgeRule ANY_BUILD

KEEP_PASS

public static final BuildClassDBO.PurgeRule KEEP_PASS

ONLY_FAILED

public static final BuildClassDBO.PurgeRule ONLY_FAILED

ONLY_PASSED

public static final BuildClassDBO.PurgeRule ONLY_PASSED
Field Detail

CLASS

public static final java.lang.Class<BuildClassDBO.PurgeRule> CLASS

code

public final java.lang.String code
Method Detail

values

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

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

valueOf

public static BuildClassDBO.PurgeRule 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

fromDB

public static BuildClassDBO.PurgeRule fromDB(java.lang.String s)

fromObject

public static BuildClassDBO.PurgeRule fromObject(java.lang.Object o)
                                          throws APIException
Throws:
APIException