org.rhq.core.domain.drift
Class DriftConfigurationDefinition

java.lang.Object
  extended by org.rhq.core.domain.drift.DriftConfigurationDefinition
All Implemented Interfaces:
Serializable

public class DriftConfigurationDefinition
extends Object
implements Serializable

The drift subsystem has a fixed configuration definition. That is, its property definitions are the same always. There is no metadata that needs to be read in from a descriptor - this definition is fixed and the code requires all the property definitions to follow what is encoded in this POJO. Note that this class must mimic the definition data as found in the database. The installer will prepopulate the configuration definition tables that match the definitions encoded in this POJO.

See Also:
Serialized Form

Nested Class Summary
static class DriftConfigurationDefinition.BaseDirValueContext
          The basedir property is specified in two parts - a "context" and a "name".
static class DriftConfigurationDefinition.DriftHandlingMode
          The enumerated values for drift handling mode property
 
Field Summary
static boolean DEFAULT_ATTACHED
           
static DriftConfigurationDefinition.DriftHandlingMode DEFAULT_DRIFT_HANDLING_MODE
           
static boolean DEFAULT_ENABLED
           
static long DEFAULT_INTERVAL
           
static String PROP_ATTACHED
           
static String PROP_BASEDIR
           
static String PROP_BASEDIR_VALUECONTEXT
           
static String PROP_BASEDIR_VALUENAME
           
static String PROP_DESCRIPTION
           
static String PROP_DRIFT_HANDLING_MODE
           
static String PROP_ENABLED
           
static String PROP_EXCLUDES
           
static String PROP_EXCLUDES_EXCLUDE
           
static String PROP_INCLUDES
           
static String PROP_INCLUDES_INCLUDE
           
static String PROP_INTERVAL
           
static String PROP_NAME
           
static String PROP_NAME_REGEX_PATTERN
           
static String PROP_PATH
           
static String PROP_PATTERN
           
static String PROP_PINNED
           
 
Constructor Summary
DriftConfigurationDefinition()
           
 
Method Summary
static ConfigurationDefinition getExistingResourceInstanceByPinnedTemplate()
           
static ConfigurationDefinition getExistingTemplateInstance()
           
static ConfigurationDefinition getInstance()
          Returns a configuration definition suitable for showing a new configuration form - that is, a configuration that has not yet been created.
static ConfigurationDefinition getInstanceForExistingConfiguration()
          Returns a configuration definition suitable for showing an existing drift definition.
static ConfigurationDefinition getNewPinnedTemplateInstance()
           
static ConfigurationDefinition getNewResourceInstanceByPinnedTemplate()
           
static ConfigurationDefinition getNewTemplateInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_NAME

public static final String PROP_NAME
See Also:
Constant Field Values

PROP_DESCRIPTION

public static final String PROP_DESCRIPTION
See Also:
Constant Field Values

PROP_ENABLED

public static final String PROP_ENABLED
See Also:
Constant Field Values

PROP_BASEDIR

public static final String PROP_BASEDIR
See Also:
Constant Field Values

PROP_BASEDIR_VALUECONTEXT

public static final String PROP_BASEDIR_VALUECONTEXT
See Also:
Constant Field Values

PROP_BASEDIR_VALUENAME

public static final String PROP_BASEDIR_VALUENAME
See Also:
Constant Field Values

PROP_INTERVAL

public static final String PROP_INTERVAL
See Also:
Constant Field Values

PROP_DRIFT_HANDLING_MODE

public static final String PROP_DRIFT_HANDLING_MODE
See Also:
Constant Field Values

PROP_PINNED

public static final String PROP_PINNED
See Also:
Constant Field Values

PROP_ATTACHED

public static final String PROP_ATTACHED
See Also:
Constant Field Values

PROP_INCLUDES

public static final String PROP_INCLUDES
See Also:
Constant Field Values

PROP_INCLUDES_INCLUDE

public static final String PROP_INCLUDES_INCLUDE
See Also:
Constant Field Values

PROP_EXCLUDES

public static final String PROP_EXCLUDES
See Also:
Constant Field Values

PROP_EXCLUDES_EXCLUDE

public static final String PROP_EXCLUDES_EXCLUDE
See Also:
Constant Field Values

PROP_PATH

public static final String PROP_PATH
See Also:
Constant Field Values

PROP_PATTERN

public static final String PROP_PATTERN
See Also:
Constant Field Values

PROP_NAME_REGEX_PATTERN

public static final String PROP_NAME_REGEX_PATTERN
See Also:
Constant Field Values

DEFAULT_ENABLED

public static final boolean DEFAULT_ENABLED
See Also:
Constant Field Values

DEFAULT_ATTACHED

public static final boolean DEFAULT_ATTACHED
See Also:
Constant Field Values

DEFAULT_INTERVAL

public static final long DEFAULT_INTERVAL
See Also:
Constant Field Values

DEFAULT_DRIFT_HANDLING_MODE

public static final DriftConfigurationDefinition.DriftHandlingMode DEFAULT_DRIFT_HANDLING_MODE
Constructor Detail

DriftConfigurationDefinition

public DriftConfigurationDefinition()
Method Detail

getInstance

public static ConfigurationDefinition getInstance()
Returns a configuration definition suitable for showing a new configuration form - that is, a configuration that has not yet been created. This will allow all fields to be editable. If you need a configuration definition to show an existing configuration, use the definition returned by getInstanceForExistingConfiguration().

Returns:
configuration definition

getInstanceForExistingConfiguration

public static ConfigurationDefinition getInstanceForExistingConfiguration()
Returns a configuration definition suitable for showing an existing drift definition. This will set certain fields as read-only - those fields which the user is not allowed to edit on exiting drift definition (which includes name, basedir and includes/excludes filters).

Returns:
configuration definition

getNewResourceInstanceByPinnedTemplate

public static ConfigurationDefinition getNewResourceInstanceByPinnedTemplate()

getExistingResourceInstanceByPinnedTemplate

public static ConfigurationDefinition getExistingResourceInstanceByPinnedTemplate()

getNewTemplateInstance

public static ConfigurationDefinition getNewTemplateInstance()

getExistingTemplateInstance

public static ConfigurationDefinition getExistingTemplateInstance()

getNewPinnedTemplateInstance

public static ConfigurationDefinition getNewPinnedTemplateInstance()


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.