org.rhq.core.domain.drift
Class DriftSnapshotRequest

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

public class DriftSnapshotRequest
extends Object
implements Serializable

An immutable class used to specify the characteristics of a requested DriftSnapshot. See org.rhq.enterprise.server.drift.DriftManagerLocal#getSnapshot(org.rhq.core.domain.auth.Subject, DriftSnapshotRequest).

 Defaults:
 startVersion = 0 (initial snapshot)
 includeDriftDirectories = false
 includeDriftInstances = true;
 

See Also:
Serialized Form

Constructor Summary
DriftSnapshotRequest()
          This should not be used.
DriftSnapshotRequest(int driftDefinitionId)
          Get the current (most recent) snapshot for the specified drift definition.
DriftSnapshotRequest(int driftDefinitionId, Integer version)
          Get the requested snapshot version for the specified drift definition.
DriftSnapshotRequest(int driftDefinitionId, Integer version, Integer startVersion, String directory, boolean includeDriftDirectories, boolean includeDriftInstances)
           
DriftSnapshotRequest(int driftDefinitionId, Integer version, String directory)
          Get the requested snapshot version for the specified drift definition, narrowed to files in the specified directory.
DriftSnapshotRequest(String templateChangesetIdString, String directory, boolean includeDriftDirectories, boolean includeDriftInstances)
           
 
Method Summary
 String getDirectory()
           
 Integer getDriftDefinitionId()
           
 Integer getStartVersion()
           
 String getTemplateChangeSetId()
           
 Integer getVersion()
           
 boolean isIncludeDriftDirectories()
           
 boolean isIncludeDriftInstances()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DriftSnapshotRequest

public DriftSnapshotRequest()
This should not be used. It's to satisfy smartgwt.


DriftSnapshotRequest

public DriftSnapshotRequest(int driftDefinitionId)
Get the current (most recent) snapshot for the specified drift definition.

Parameters:
driftDefinitionId -

DriftSnapshotRequest

public DriftSnapshotRequest(int driftDefinitionId,
                            Integer version)
Get the requested snapshot version for the specified drift definition.

Parameters:
driftDefinitionId -
version - not null

DriftSnapshotRequest

public DriftSnapshotRequest(int driftDefinitionId,
                            Integer version,
                            String directory)
Get the requested snapshot version for the specified drift definition, narrowed to files in the specified directory.

Parameters:
driftDefinitionId -
version - null or < 0 or > most recent will default to most recent
directory - if specified, limit the snapshot to the specified directory

DriftSnapshotRequest

public DriftSnapshotRequest(int driftDefinitionId,
                            Integer version,
                            Integer startVersion,
                            String directory,
                            boolean includeDriftDirectories,
                            boolean includeDriftInstances)
Parameters:
driftDefinitionId -
version - null or < 0 or > most recent will default to most recent
startVersion - null or < 0 or > version will default to 0
directory - if specified, limit the snapshot to the specified directory
includeDriftDirectories -
includeDriftInstances -

DriftSnapshotRequest

public DriftSnapshotRequest(String templateChangesetIdString,
                            String directory,
                            boolean includeDriftDirectories,
                            boolean includeDriftInstances)
Method Detail

getTemplateChangeSetId

public String getTemplateChangeSetId()

getDriftDefinitionId

public Integer getDriftDefinitionId()

getVersion

public Integer getVersion()

getStartVersion

public Integer getStartVersion()

getDirectory

public String getDirectory()

isIncludeDriftDirectories

public boolean isIncludeDriftDirectories()

isIncludeDriftInstances

public boolean isIncludeDriftInstances()

toString

public String toString()
Overrides:
toString in class Object


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