org.rhq.core.pluginapi.content.version
Class PackageVersionData
java.lang.Object
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
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 |
PackageVersionData
public PackageVersionData()
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 packageversion
- version of the package
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.