|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rhq.core.domain.content.PackageType
public class PackageType
Defines a type of Package
that can exist in the system. Package types are used to provide information about
the content of a particular package. Plugins can then use this information to provide clues on how to deal with a
package.
A package type is defined by a resource type and is only supported by its parent resource type. A resource type can support multiple package types.
Field Summary | |
---|---|
static String |
QUERY_DYNAMIC_CONFIG_VALUES
|
static String |
QUERY_FIND_ALL
|
static String |
QUERY_FIND_BY_NAME_AND_NULL_RESOURCE_TYPE
|
static String |
QUERY_FIND_BY_RESOURCE_TYPE_ID
|
static String |
QUERY_FIND_BY_RESOURCE_TYPE_ID_AND_CREATION_FLAG
|
static String |
QUERY_FIND_BY_RESOURCE_TYPE_ID_AND_NAME
|
Constructor Summary | |
---|---|
PackageType()
|
|
PackageType(String name,
ResourceType resourceType)
|
Method Summary | |
---|---|
void |
addPackage(Package pkg)
|
void |
afterUnmarshal(Object u,
Object resourceType)
|
boolean |
equals(Object obj)
|
PackageCategory |
getCategory()
Describes the type of content in this package. |
ConfigurationDefinition |
getDeploymentConfigurationDefinition()
Defines the properties the user should be prompted to enter when deploying a package of this type. |
String |
getDescription()
Free text description of this package type. |
long |
getDiscoveryInterval()
Time, in milliseconds, between discovery scans for packages of this type. |
String |
getDisplayName()
Name of this package type that is suitable for display to the user in the UI. |
int |
getId()
|
String |
getName()
Programmatic name of the package type. |
ConfigurationDefinition |
getPackageExtraPropertiesDefinition()
A package type may have the need to indicate more data about a package than the package entity allows. |
Set<Package> |
getPackages()
The packages of this type. |
ResourceType |
getResourceType()
The resource type that defined this package type. |
int |
hashCode()
|
boolean |
isCreationData()
Indicates if this type of package must be specified when a new instance of the parent resource type is created. |
boolean |
isSupportsArchitecture()
Indicates if this package type will be of any specific architecture. |
void |
setCategory(PackageCategory category)
|
void |
setCreationData(boolean creationData)
|
void |
setDeploymentConfigurationDefinition(ConfigurationDefinition deploymentConfigurationDefinition)
|
void |
setDescription(String description)
|
void |
setDiscoveryInterval(long discoveryInterval)
|
void |
setDisplayName(String displayName)
|
void |
setId(int id)
|
void |
setName(String name)
|
void |
setPackageExtraPropertiesDefinition(ConfigurationDefinition packageExtraPropertiesDefinition)
|
void |
setPackages(Set<Package> packages)
|
void |
setResourceType(ResourceType resourceType)
|
void |
setSupportsArchitecture(boolean supportsArchitecture)
|
String |
toString()
|
void |
update(PackageType newType)
Updates the contents of this definition with values from the specified new defintion. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String QUERY_FIND_ALL
public static final String QUERY_FIND_BY_RESOURCE_TYPE_ID
public static final String QUERY_FIND_BY_RESOURCE_TYPE_ID_AND_NAME
public static final String QUERY_FIND_BY_NAME_AND_NULL_RESOURCE_TYPE
public static final String QUERY_FIND_BY_RESOURCE_TYPE_ID_AND_CREATION_FLAG
public static final String QUERY_DYNAMIC_CONFIG_VALUES
Constructor Detail |
---|
public PackageType()
public PackageType(String name, ResourceType resourceType)
Method Detail |
---|
public void afterUnmarshal(Object u, Object resourceType)
public int getId()
public void setId(int id)
public String getName()
public void setName(String name)
public String getDisplayName()
public void setDisplayName(String displayName)
public String getDescription()
public void setDescription(String description)
public PackageCategory getCategory()
public void setCategory(PackageCategory category)
public long getDiscoveryInterval()
public void setDiscoveryInterval(long discoveryInterval)
public boolean isCreationData()
public void setCreationData(boolean creationData)
public boolean isSupportsArchitecture()
true
, each package
may be of a different architecture. If this is false
, all packages will be of architecture
"noarch".
public void setSupportsArchitecture(boolean supportsArchitecture)
public ConfigurationDefinition getDeploymentConfigurationDefinition()
public void setDeploymentConfigurationDefinition(ConfigurationDefinition deploymentConfigurationDefinition)
public ConfigurationDefinition getPackageExtraPropertiesDefinition()
public void setPackageExtraPropertiesDefinition(ConfigurationDefinition packageExtraPropertiesDefinition)
public Set<Package> getPackages()
public void addPackage(Package pkg)
public void setPackages(Set<Package> packages)
public ResourceType getResourceType()
public void setResourceType(ResourceType resourceType)
public void update(PackageType newType)
newType
- contains new data to merge into this definition; cannot be null
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |