org.rhq.core.domain.bundle
Class BundleVersion

java.lang.Object
  extended by org.rhq.core.domain.bundle.BundleVersion
All Implemented Interfaces:
Serializable

public class BundleVersion
extends Object
implements Serializable

Defines a versioned bundle of content that can be provisioned somewhere.

See Also:
Serialized Form

Field Summary
static String QUERY_FIND_ALL
           
static String QUERY_FIND_BY_BUNDLE_ID
           
static String QUERY_FIND_BY_NAME
           
static String QUERY_FIND_LATEST_BY_BUNDLE_ID
           
static String QUERY_FIND_VERSION_INFO_BY_BUNDLE_ID
           
static String UPDATE_VERSION_ORDER_BY_BUNDLE_ID
           
 
Constructor Summary
BundleVersion()
           
BundleVersion(String name, String version, Bundle bundle, String recipe)
           
 
Method Summary
 void addBundleDeployment(BundleDeployment bundleDeployment)
           
 void addBundleFile(BundleFile bundleFile)
           
 void addTag(Tag tag)
           
 boolean equals(Object obj)
           
 Bundle getBundle()
           
 List<BundleDeployment> getBundleDeployments()
           
 List<BundleFile> getBundleFiles()
           
 ConfigurationDefinition getConfigurationDefinition()
          Returns the metadata that describes the configuration that must be set in order for this bundle to be properly deployed.
 String getDescription()
           
 int getId()
           
 String getName()
           
 String getRecipe()
           
 Set<Tag> getTags()
           
 String getVersion()
           
 int getVersionOrder()
           
 int hashCode()
           
 boolean removeTag(Tag tag)
           
 void setBundle(Bundle bundle)
           
 void setBundleDeployments(List<BundleDeployment> bundleDeployments)
           
 void setBundleFiles(List<BundleFile> bundleFiles)
           
 void setConfigurationDefinition(ConfigurationDefinition configurationDefinition)
           
 void setDescription(String description)
           
 void setId(int id)
           
 void setName(String name)
           
 void setRecipe(String recipe)
           
 void setTags(Set<Tag> tags)
           
 void setVersion(String version)
           
 void setVersionOrder(int versionOrder)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UPDATE_VERSION_ORDER_BY_BUNDLE_ID

public static final String UPDATE_VERSION_ORDER_BY_BUNDLE_ID
See Also:
Constant Field Values

QUERY_FIND_LATEST_BY_BUNDLE_ID

public static final String QUERY_FIND_LATEST_BY_BUNDLE_ID
See Also:
Constant Field Values

QUERY_FIND_VERSION_INFO_BY_BUNDLE_ID

public static final String QUERY_FIND_VERSION_INFO_BY_BUNDLE_ID
See Also:
Constant Field Values

QUERY_FIND_ALL

public static final String QUERY_FIND_ALL
See Also:
Constant Field Values

QUERY_FIND_BY_NAME

public static final String QUERY_FIND_BY_NAME
See Also:
Constant Field Values

QUERY_FIND_BY_BUNDLE_ID

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

BundleVersion

public BundleVersion()

BundleVersion

public BundleVersion(String name,
                     String version,
                     Bundle bundle,
                     String recipe)
Method Detail

getId

public int getId()

setId

public void setId(int id)

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getVersion

public String getVersion()

setVersion

public void setVersion(String version)

getVersionOrder

public int getVersionOrder()

setVersionOrder

public void setVersionOrder(int versionOrder)

getRecipe

public String getRecipe()

setRecipe

public void setRecipe(String recipe)

getBundle

public Bundle getBundle()

setBundle

public void setBundle(Bundle bundle)

getConfigurationDefinition

public ConfigurationDefinition getConfigurationDefinition()
Returns the metadata that describes the configuration that must be set in order for this bundle to be properly deployed. Think of this as "the questions that the user must answer" in order to provide values that are needed to deploy the content. This definition describes the bundle config data.

Returns:
defines the values that must be set in order for this bundle to be deployed properly

setConfigurationDefinition

public void setConfigurationDefinition(ConfigurationDefinition configurationDefinition)

getBundleDeployments

public List<BundleDeployment> getBundleDeployments()

setBundleDeployments

public void setBundleDeployments(List<BundleDeployment> bundleDeployments)

addBundleDeployment

public void addBundleDeployment(BundleDeployment bundleDeployment)

getBundleFiles

public List<BundleFile> getBundleFiles()

addBundleFile

public void addBundleFile(BundleFile bundleFile)

setBundleFiles

public void setBundleFiles(List<BundleFile> bundleFiles)

getTags

public Set<Tag> getTags()

setTags

public void setTags(Set<Tag> tags)

addTag

public void addTag(Tag tag)

removeTag

public boolean removeTag(Tag tag)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.