org.rhq.core.domain.drift
Class DriftDetails
java.lang.Object
org.rhq.core.domain.drift.DriftDetails
- All Implemented Interfaces:
- Serializable
public class DriftDetails
- extends Object
- implements Serializable
Encapsulates information and details about drift that can be used in the UI. This class
the Drift object, the change set to which the drift belongs, and the change set in which
the file with drift was last referenced. This class also store statuses of the current
and previous versions of the file to indicate whether or not the content is in the
database. Lastly, it has a flag to indicate whether or not the file is a binary file.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DriftDetails
public DriftDetails()
getDrift
public Drift<?,?> getDrift()
- Returns:
- The drift object
setDrift
public void setDrift(Drift<?,?> drift)
- Parameters:
drift
- The Drift object to which the details belong
getChangeSet
public DriftChangeSet<?> getChangeSet()
- Returns:
- The change set to which the drift is part of
getPreviousChangeSet
public DriftChangeSet<?> getPreviousChangeSet()
- Returns the previous change set for which there was an occurrence of drift on the
file referenced by the Drift object. This can be null if there was no previous
drift.
- Returns:
- The previous change set for which there was drift on the file referenced by
the Drift object or null if there is not previous drift on the file.
setPreviousChangeSet
public void setPreviousChangeSet(DriftChangeSet<?> changeSet)
- Parameters:
changeSet
- The previous change set in which drift occurred on the file
referenced by the Drift object.
getNewFileStatus
public DriftFileStatus getNewFileStatus()
- Returns:
- The status of the file as reported in the current change set. Indicates
whether or not the file has been loaded into the database. Can be null if the type
of drift is a
deletion
.
setNewFileStatus
public void setNewFileStatus(DriftFileStatus status)
- Parameters:
status
- The status of the file reported in the change set.
getOldFileStatus
public DriftFileStatus getOldFileStatus()
- Returns:
- The status of the file as reported in the previous change set. Indicates
whether or not the file has been loaded into the database. Can be null if the type
of drift is a
addition
.
setOldFileStatus
public void setOldFileStatus(DriftFileStatus status)
- Parameters:
status
- The status of the file as reported in the last change set in which the
file was referenced.
isBinaryFile
public boolean isBinaryFile()
- Returns:
- true if the file is a binary file.
setBinaryFile
public void setBinaryFile(boolean binaryFile)
- Parameters:
binaryFile
- True if the file is a binary type, false otherwise.
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.