jetbrains.buildServer.serverSide
Enum CleanupLevel

java.lang.Object
  extended by java.lang.Enum<CleanupLevel>
      extended by jetbrains.buildServer.serverSide.CleanupLevel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CleanupLevel>

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

Specifies what data should be cleaned by a cleanup rule.


Enum Constant Summary
ARTIFACTS
           
EVERYTHING
           
HISTORY_ENTRY
           
 
Field Summary
static java.util.List<CleanupLevel> SORTED_LEVELS
           
 
Method Summary
 java.lang.String getDescription()
          Returns string representation to show in UI
 java.lang.String getKeepDescription()
          Returns string representation to show in UI
 boolean isCleanArtifacts()
          Returns true if build artifacts should be cleaned
 boolean isCleanHistoryEntry()
          Returns true if build history should be cleaned
 boolean isCleanStatistics()
          Returns true if statistics data should be cleaned
static CleanupLevel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CleanupLevel[] 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

EVERYTHING

public static final CleanupLevel EVERYTHING

HISTORY_ENTRY

public static final CleanupLevel HISTORY_ENTRY

ARTIFACTS

public static final CleanupLevel ARTIFACTS
Field Detail

SORTED_LEVELS

public static final java.util.List<CleanupLevel> SORTED_LEVELS
Method Detail

values

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

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

valueOf

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

isCleanStatistics

public boolean isCleanStatistics()
Returns true if statistics data should be cleaned

Returns:
see above

isCleanHistoryEntry

public boolean isCleanHistoryEntry()
Returns true if build history should be cleaned

Returns:
see above

isCleanArtifacts

public boolean isCleanArtifacts()
Returns true if build artifacts should be cleaned

Returns:
see above

getDescription

public java.lang.String getDescription()
Returns string representation to show in UI

Returns:
see above

getKeepDescription

public java.lang.String getKeepDescription()
Returns string representation to show in UI

Returns:
see above