|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.content.Package
public class Package
Represents a package inventoried in the system. A package can be created by either a ContentSource
(on the
server side) or via a plugin discovery (on the agent side). A package has no knowledge of how it was created (i.e. it
doesn't know if it was pulled down from a content source or pushed in from an agent discovery).
Regardless of how a package was created, it can be placed in one or more Repo
s so resources can later
subscribe to those repos and install different versions of the package.
A package can have one or more PackageVersion
s associated with it. Package versions allow for things like
different software revisions or different architectures.
Field Summary | |
---|---|
static String |
QUERY_FIND_BY_NAME_PKG_TYPE_ID
|
static String |
QUERY_FIND_BY_NAME_PKG_TYPE_RESOURCE_TYPE
|
Constructor Summary | |
---|---|
Package()
|
|
Package(String name,
PackageType type)
|
Method Summary | |
---|---|
void |
addVersion(PackageVersion version)
|
boolean |
equals(Object o)
|
String |
getClassification()
Provides a second means for indicating a package's type. |
int |
getId()
|
String |
getName()
Programmatic name of the package. |
PackageType |
getPackageType()
The type definition of this package. |
List<PackageVersion> |
getVersions()
List of all versions of this package known to the system. |
int |
hashCode()
|
void |
setClassification(String classification)
|
void |
setId(int id)
|
void |
setName(String name)
|
void |
setPackageType(PackageType packageType)
|
void |
setVersions(List<PackageVersion> versions)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String QUERY_FIND_BY_NAME_PKG_TYPE_ID
public static final String QUERY_FIND_BY_NAME_PKG_TYPE_RESOURCE_TYPE
Constructor Detail |
---|
public Package()
public Package(String name, PackageType type)
Method Detail |
---|
public int getId()
public void setId(int id)
public PackageType getPackageType()
public void setPackageType(PackageType packageType)
public String getName()
public void setName(String name)
public String getClassification()
public void setClassification(String classification)
public List<PackageVersion> getVersions()
public void addVersion(PackageVersion version)
public void setVersions(List<PackageVersion> versions)
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |