hudson.plugins.jobConfigHistory
Enum ConfigHistoryListenerHelper

java.lang.Object
  extended by java.lang.Enum<ConfigHistoryListenerHelper>
      extended by hudson.plugins.jobConfigHistory.ConfigHistoryListenerHelper
All Implemented Interfaces:
Serializable, Comparable<ConfigHistoryListenerHelper>

public enum ConfigHistoryListenerHelper
extends Enum<ConfigHistoryListenerHelper>

Defines some helper functions needed by JobConfigHistoryJobListener and JobConfigHistorySaveableListener.

Author:
mfriedenhagen

Enum Constant Summary
CHANGED
          Helper for job change.
CREATED
          Helper for job creation.
DELETED
          Helper for job deleted.
RENAMED
          Helper for job rename.
 
Method Summary
 void createNewHistoryEntry(hudson.XmlFile xmlFile)
          Creates a new backup of the job configuration.
static ConfigHistoryListenerHelper valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConfigHistoryListenerHelper[] 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

CREATED

public static final ConfigHistoryListenerHelper CREATED
Helper for job creation.


RENAMED

public static final ConfigHistoryListenerHelper RENAMED
Helper for job rename.


CHANGED

public static final ConfigHistoryListenerHelper CHANGED
Helper for job change.


DELETED

public static final ConfigHistoryListenerHelper DELETED
Helper for job deleted.

Method Detail

values

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

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

valueOf

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

createNewHistoryEntry

public final void createNewHistoryEntry(hudson.XmlFile xmlFile)
Creates a new backup of the job configuration.

Parameters:
xmlFile - configuration file for the item we want to backup


Copyright © 2004-2011. All Rights Reserved.