org.rhq.core.pluginapi.content.version
Class PackageVersionData

java.lang.Object
  extended by org.rhq.core.pluginapi.content.version.PackageVersionData
All Implemented Interfaces:
Serializable

public class PackageVersionData
extends Object
implements Serializable

Object that will be persisted to store the versions for packages detected by plugins.

See Also:
Serialized Form

Constructor Summary
PackageVersionData()
           
 
Method Summary
 String getVersion(String packageKey)
          Returns the package version associated with the package identified by the specified key.
 void setVersion(String packageKey, String version)
          Updates the store with a new version for the package identified by the specified key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageVersionData

public PackageVersionData()
Method Detail

getVersion

public String getVersion(String packageKey)
Returns the package version associated with the package identified by the specified key.

Parameters:
packageKey - identifies the package
Returns:
version of the package if it is known; null otherwise

setVersion

public void setVersion(String packageKey,
                       String version)
Updates the store with a new version for the package identified by the specified key. If there is an existing version in the store, it will be overwritten.

Parameters:
packageKey - identifies the package
version - version of the package


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