org.rhq.core.domain.content
Class InstalledPackageHistory

java.lang.Object
  extended by org.rhq.core.domain.content.InstalledPackageHistory
All Implemented Interfaces:
Serializable

public class InstalledPackageHistory
extends Object
implements Serializable

Audit trail entity for tracking the results of an individual package request made on a resource. Once created, these objects are effectively immutable; if the state of a package request changes a new entity will be created.

See Also:
Serialized Form

Field Summary
static String QUERY_DELETE_BY_RESOURCES
           
static String QUERY_FIND_BY_CSR_ID
           
static String QUERY_FIND_BY_CSR_ID_AND_PKG_VER_ID
           
static String QUERY_FIND_BY_ID
           
static String QUERY_FIND_BY_RESOURCE_ID
           
static String QUERY_FIND_BY_RESOURCE_ID_AND_PKG_ID
           
static String QUERY_FIND_CONFIG_BY_PACKAGE_VERSION_AND_REQ
           
 
Constructor Summary
InstalledPackageHistory()
           
 
Method Summary
 ContentServiceRequest getContentServiceRequest()
           
 Configuration getDeploymentConfigurationValues()
           
 String getErrorMessage()
           
 int getId()
           
 List<PackageInstallationStep> getInstallationSteps()
           
 PackageVersion getPackageVersion()
           
 Resource getResource()
           
 InstalledPackageHistoryStatus getStatus()
           
 Long getTimestamp()
           
 void setContentServiceRequest(ContentServiceRequest contentServiceRequest)
           
 void setDeploymentConfigurationValues(Configuration deploymentConfigurationValues)
           
 void setErrorMessage(String errorMessage)
           
 void setErrorMessageFromThrowable(Throwable t)
          Convienence method that sets the error message to the given throwable's stack trace dump.
 void setId(int id)
           
 void setInstallationSteps(List<PackageInstallationStep> installationSteps)
           
 void setPackageVersion(PackageVersion packageVersion)
           
 void setResource(Resource resource)
           
 void setStatus(InstalledPackageHistoryStatus status)
           
 void setTimestamp(Long timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUERY_FIND_CONFIG_BY_PACKAGE_VERSION_AND_REQ

public static final String QUERY_FIND_CONFIG_BY_PACKAGE_VERSION_AND_REQ
See Also:
Constant Field Values

QUERY_FIND_BY_CSR_ID_AND_PKG_VER_ID

public static final String QUERY_FIND_BY_CSR_ID_AND_PKG_VER_ID
See Also:
Constant Field Values

QUERY_FIND_BY_CSR_ID

public static final String QUERY_FIND_BY_CSR_ID
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_ID_AND_PKG_ID

public static final String QUERY_FIND_BY_RESOURCE_ID_AND_PKG_ID
See Also:
Constant Field Values

QUERY_FIND_BY_RESOURCE_ID

public static final String QUERY_FIND_BY_RESOURCE_ID
See Also:
Constant Field Values

QUERY_FIND_BY_ID

public static final String QUERY_FIND_BY_ID
See Also:
Constant Field Values

QUERY_DELETE_BY_RESOURCES

public static final String QUERY_DELETE_BY_RESOURCES
See Also:
Constant Field Values
Constructor Detail

InstalledPackageHistory

public InstalledPackageHistory()
Method Detail

getId

public int getId()

setId

public void setId(int id)

getPackageVersion

public PackageVersion getPackageVersion()

setPackageVersion

public void setPackageVersion(PackageVersion packageVersion)

getTimestamp

public Long getTimestamp()

setTimestamp

public void setTimestamp(Long timestamp)

getStatus

public InstalledPackageHistoryStatus getStatus()

setStatus

public void setStatus(InstalledPackageHistoryStatus status)

getErrorMessage

public String getErrorMessage()

setErrorMessage

public void setErrorMessage(String errorMessage)

setErrorMessageFromThrowable

public void setErrorMessageFromThrowable(Throwable t)
Convienence method that sets the error message to the given throwable's stack trace dump. If the given throwable is null, the error message will be set to null as if passing null to setErrorMessage(String).

Parameters:
t - throwable whose message and stack trace will make up the error message (may be null)

getDeploymentConfigurationValues

public Configuration getDeploymentConfigurationValues()

setDeploymentConfigurationValues

public void setDeploymentConfigurationValues(Configuration deploymentConfigurationValues)

getInstallationSteps

public List<PackageInstallationStep> getInstallationSteps()

setInstallationSteps

public void setInstallationSteps(List<PackageInstallationStep> installationSteps)

getResource

public Resource getResource()

setResource

public void setResource(Resource resource)

getContentServiceRequest

public ContentServiceRequest getContentServiceRequest()

setContentServiceRequest

public void setContentServiceRequest(ContentServiceRequest contentServiceRequest)


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.