public class BundleManagerBean extends Object implements BundleManagerLocal, BundleManagerRemote
| Constructor and Description |
|---|
BundleManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
_finalizePurge(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.bundle.BundleDeployment bundleDeployment,
Map<org.rhq.core.domain.bundle.BundleResourceDeployment,String> failedToPurge)
This is for internal use only - when
BundleManagerRemote.purgeBundleDestination(Subject, int) is done, it
calls this so the purge can be finalized. |
org.rhq.core.domain.bundle.BundleFile |
addBundleFile(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
String name,
String version,
org.rhq.core.domain.content.Architecture architecture,
InputStream fileStream)
Adds a BundleFile to the BundleVersion and implicitly creates the backing PackageVersion.
|
org.rhq.core.domain.bundle.BundleFile |
addBundleFileViaByteArray(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
String name,
String version,
org.rhq.core.domain.content.Architecture architecture,
byte[] fileBytes)
A convenience method taking a byte array as opposed to a stream for the file bits.
|
org.rhq.core.domain.bundle.BundleFile |
addBundleFileViaPackageVersion(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
String name,
int packageVersionId)
A convenience method taking an existing PackageVersion as opposed to a stream for the file bits.
|
org.rhq.core.domain.bundle.BundleFile |
addBundleFileViaURL(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
String name,
String version,
org.rhq.core.domain.content.Architecture architecture,
String bundleFileUrl)
A convenience method taking a URL String whose content will be streamed to the server and used for the file bits.
|
org.rhq.core.domain.bundle.BundleResourceDeploymentHistory |
addBundleResourceDeploymentHistory(org.rhq.core.domain.auth.Subject subject,
int bundleDeploymentId,
org.rhq.core.domain.bundle.BundleResourceDeploymentHistory history)
Called internally to add history when action is taken against a deployment.
|
org.rhq.core.domain.bundle.Bundle |
createBundle(org.rhq.core.domain.auth.Subject subject,
String name,
String description,
int bundleTypeId)
Mainly Used For Testing
|
org.rhq.core.domain.bundle.BundleVersion |
createBundleAndBundleVersion(org.rhq.core.domain.auth.Subject subject,
String bundleName,
String bundleDescription,
int bundleTypeId,
String bundleVersionName,
String bundleVersionDescription,
String version,
String recipe)
Mainly Used For Testing
Convienence method that combines
#createBundle(Subject, String, int) and #createBundleVersion(Subject, int, String, String, String). |
org.rhq.core.domain.bundle.BundleDeployment |
createBundleDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
int bundleDestinationId,
String description,
org.rhq.core.domain.configuration.Configuration configuration)
Create a new bundle deployment.
|
org.rhq.core.domain.bundle.BundleDeployment |
createBundleDeploymentInNewTrans(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
int bundleDestinationId,
String name,
String description,
org.rhq.core.domain.configuration.Configuration configuration)
Similar to
BundleManagerRemote.createBundleDeployment(Subject, int, int, String, Configuration) but
supplies the internally generated deploymentName and has different transaction semantics. |
org.rhq.core.domain.bundle.BundleDestination |
createBundleDestination(org.rhq.core.domain.auth.Subject subject,
int bundleId,
String name,
String description,
String destBaseDirName,
String deployDir,
Integer groupId)
Creates a bundle destination that describes a target for the bundle deployments.
|
org.rhq.core.domain.bundle.BundleResourceDeployment |
createBundleResourceDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDeploymentId,
int resourceId)
This is typically not called directly, typically scheduleBundleResourceDeployment() is called externally.
|
org.rhq.core.domain.bundle.BundleType |
createBundleType(org.rhq.core.domain.auth.Subject subject,
String name,
int resourceTypeId)
Not generally called.
|
org.rhq.core.domain.bundle.BundleVersion |
createBundleVersion(org.rhq.core.domain.auth.Subject subject,
int bundleId,
String name,
String description,
String version,
String recipe)
Mainly Used For Testing
|
org.rhq.core.domain.bundle.BundleVersion |
createBundleVersionViaByteArray(org.rhq.core.domain.auth.Subject subject,
byte[] fileBytes)
Creates a bundle version based on the actual bytes of a Bundle Distribution file.
|
org.rhq.core.domain.bundle.BundleVersion |
createBundleVersionViaFile(org.rhq.core.domain.auth.Subject subject,
File distributionFile)
Creates a bundle version based on a Bundle Distribution file.
|
org.rhq.core.domain.bundle.BundleVersion |
createBundleVersionViaRecipe(org.rhq.core.domain.auth.Subject subject,
String recipe)
Creates a bundle version based on single recipe string.
|
org.rhq.core.domain.bundle.BundleVersion |
createBundleVersionViaURL(org.rhq.core.domain.auth.Subject subject,
String distributionFileUrl)
Creates a bundle version based on a Bundle Distribution file.
|
void |
deleteBundle(org.rhq.core.domain.auth.Subject subject,
int bundleId)
Remove everything associated with the Bundle with the exception of files laid down by related deployments.
|
void |
deleteBundleDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDeploymentId)
This is a simple attempt at delete, typically used for removing a poorly defined deployment before it is
actually scheduled for deployment.
|
void |
deleteBundleDestination(org.rhq.core.domain.auth.Subject subject,
int destinationId)
This is a simple attempt at delete, typically used for removing a poorly defined destination.
|
void |
deleteBundles(org.rhq.core.domain.auth.Subject subject,
int[] bundleIds)
Remove everything associated with the Bundles with the exception of files laid down by related deployments.
|
void |
deleteBundleVersion(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
boolean deleteBundleIfEmpty)
Remove everything associated with the BundleVersion with the exception of files laid down by related deployments.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleDeployment> |
findBundleDeploymentsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleDeploymentCriteria criteria) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleDeployment> |
findBundleDeploymentsByCriteriaWithDestinationFilter(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleDeploymentCriteria criteria)
Fetch bundle deployments by criteria and then filter on destinations on the result objects to limit what the user can see
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleDestination> |
findBundleDestinationsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleDestinationCriteria criteria) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleFile> |
findBundleFilesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleFileCriteria criteria) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleResourceDeployment> |
findBundleResourceDeploymentsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleResourceDeploymentCriteria criteria) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.Bundle> |
findBundlesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleCriteria criteria) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.Bundle> |
findBundlesByCriteriaWithDestinationFilter(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleCriteria criteria)
Fetch bundles by criteria and then filter destination on the result objects to limit what the user can see
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.composite.BundleWithLatestVersionComposite> |
findBundlesWithLatestVersionCompositesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleCriteria criteria) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleVersion> |
findBundleVersionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleVersionCriteria criteria) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleVersion> |
findBundleVersionsByCriteriaWithDestinationFilter(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleVersionCriteria criteria)
Fetch bundle versions by criteria and then filter destination on the result objects to limit what the user can see
|
List<org.rhq.core.domain.bundle.BundleType> |
getAllBundleTypes(org.rhq.core.domain.auth.Subject subject) |
HashMap<String,Boolean> |
getAllBundleVersionFilenames(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId) |
String |
getBundleDeploymentName(org.rhq.core.domain.auth.Subject subject,
int bundleDestinationId,
int bundleVersionId,
int prevDeploymentId)
Needed by the Bundle Deploy and Revert wizards GUI to generate a deployment name for display.
|
org.rhq.core.domain.bundle.BundleType |
getBundleType(org.rhq.core.domain.auth.Subject subject,
String bundleTypeName) |
Set<String> |
getBundleVersionFilenames(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
boolean withoutBundleFileOnly)
Determine the files required for a BundleVersion and return all of the filenames or optionally, just those
that lack BundleFiles for the BundleVersion.
|
org.rhq.core.domain.bundle.ResourceTypeBundleConfiguration |
getResourceTypeBundleConfiguration(org.rhq.core.domain.auth.Subject subject,
int compatGroupId)
Given the ID for a compatible group, this will return the bundle configuration metadata for that group's resource type.
|
BundleScheduleRequest |
getScheduleRequest(org.rhq.core.domain.auth.Subject subject,
int resourceDeploymentId,
boolean isCleanDeployment,
boolean isRevert)
Not for general consumption.
|
void |
purgeBundleDestination(org.rhq.core.domain.auth.Subject subject,
int bundleDestinationId)
Purges the destination's live deployment content from the remote platforms.
|
org.rhq.core.domain.bundle.BundleDeployment |
scheduleBundleDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDeploymentId,
boolean isCleanDeployment)
Deploy the bundle to the destination, as described in the provided deployment.
|
org.rhq.core.domain.bundle.BundleDeployment |
scheduleRevertBundleDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDestinationId,
String deploymentDescription,
boolean isCleanDeployment)
For the specified destination, revert from the current live deployment to the deployment it had replaced.
|
org.rhq.core.domain.bundle.BundleResourceDeployment |
setBundleResourceDeploymentStatus(org.rhq.core.domain.auth.Subject subject,
int resourceDeploymentId,
org.rhq.core.domain.bundle.BundleDeploymentStatus status)
Called internally to set deployment status.
|
public org.rhq.core.domain.bundle.ResourceTypeBundleConfiguration getResourceTypeBundleConfiguration(org.rhq.core.domain.auth.Subject subject,
int compatGroupId)
throws Exception
BundleManagerRemotegetResourceTypeBundleConfiguration in interface BundleManagerRemotesubject - the user making the requestcompatGroupId - the ID for a compatible group whose type's bundle config is to be returnedExceptionpublic org.rhq.core.domain.bundle.BundleResourceDeploymentHistory addBundleResourceDeploymentHistory(org.rhq.core.domain.auth.Subject subject,
int bundleDeploymentId,
org.rhq.core.domain.bundle.BundleResourceDeploymentHistory history)
throws Exception
BundleManagerLocaladdBundleResourceDeploymentHistory in interface BundleManagerLocalbundleDeploymentId - id of the deployment appending the history recordExceptionpublic org.rhq.core.domain.bundle.Bundle createBundle(org.rhq.core.domain.auth.Subject subject,
String name,
String description,
int bundleTypeId)
throws Exception
BundleManagerLocalcreateBundle in interface BundleManagerLocalsubject - user that must have proper permissionsname - not null or emptydescription - optional long description of the bundlebundleTypeId - valid bundleTypeExceptionpublic org.rhq.core.domain.bundle.BundleDeployment createBundleDeploymentInNewTrans(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
int bundleDestinationId,
String name,
String description,
org.rhq.core.domain.configuration.Configuration configuration)
throws Exception
BundleManagerLocalBundleManagerRemote.createBundleDeployment(Subject, int, int, String, Configuration) but
supplies the internally generated deploymentName and has different transaction semantics. Useful when an
slsb method needs to both create a deployment and schedules it prior to returning to an external caller.createBundleDeploymentInNewTrans in interface BundleManagerLocalExceptionpublic org.rhq.core.domain.bundle.BundleDeployment createBundleDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
int bundleDestinationId,
String description,
org.rhq.core.domain.configuration.Configuration configuration)
throws Exception
BundleManagerRemotecreateBundleDeployment in interface BundleManagerRemotesubject - user that must have proper permissionsbundleVersionId - the BundleVersion being deployed by this deploymentbundleDestinationId - the BundleDestination for the deploymentdescription - an optional longer description describing this deploymentconfiguration - a Configuration (pojo) to be associated with this deployment. Although
it is not enforceable must be that of the associated BundleVersion.Exceptionpublic org.rhq.core.domain.bundle.BundleDestination createBundleDestination(org.rhq.core.domain.auth.Subject subject,
int bundleId,
String name,
String description,
String destBaseDirName,
String deployDir,
Integer groupId)
throws Exception
BundleManagerRemotecreateBundleDestination in interface BundleManagerRemotesubject - user must have MANAGE_INVENTORY permissionbundleId - the Bundle to be deployed to this Destinationname - a name for this destination. not null or emptydescription - an optional longer description describing this destinationdestBaseDirName - The name of the base directory location where the bundle will be deployed.
deployDir is relative to the directory that this name refers to.
This name isn't the directory itself, it refers to the named location as
defined in the agent plugin's descriptor for the resource's typedeployDir - the root dir for deployments to this destinationgroupId - the target platforms for deployments to this destinationExceptionpublic String getBundleDeploymentName(org.rhq.core.domain.auth.Subject subject, int bundleDestinationId, int bundleVersionId, int prevDeploymentId)
BundleManagerLocalgetBundleDeploymentName in interface BundleManagerLocalbundleDestinationId - requiredbundleVersionId - required for progressive deployment, -1 for revertprevDeploymentId - required for revert deployment, -1 for progressivepublic org.rhq.core.domain.bundle.BundleType createBundleType(org.rhq.core.domain.auth.Subject subject,
String name,
int resourceTypeId)
throws Exception
BundleManagerLocalcreateBundleType in interface BundleManagerLocalsubject - must be InventoryManagername - not null or emptyresourceTypeId - id of the ResourceType that handles this BundleTypeExceptionpublic org.rhq.core.domain.bundle.BundleVersion createBundleAndBundleVersion(org.rhq.core.domain.auth.Subject subject,
String bundleName,
String bundleDescription,
int bundleTypeId,
String bundleVersionName,
String bundleVersionDescription,
String version,
String recipe)
throws Exception
BundleManagerLocal#createBundle(Subject, String, int) and #createBundleVersion(Subject, int, String, String, String).
This will first check to see if a bundle with the given type/name exists - if it doesn't, it will be created. If it does, it will be reused.
This will then create the bundle version that will be associated with the bundle that was created or found.createBundleAndBundleVersion in interface BundleManagerLocalsubject - user that must have proper permissionsbundleName - name of the bundle to use (if not found, it will be created)bundleDescription - optional long description of the bundlebundleTypeId - the bundle type for the new bundle (if it is created) for which this will be the first versionbundleVersionName - name of the bundle versionbundleVersionDescription - optional long description of the bundle versionversion - optional. If not supplied set to 1.0 for first version, or incremented (as best as possible) for subsequent versionExceptionpublic org.rhq.core.domain.bundle.BundleVersion createBundleVersion(org.rhq.core.domain.auth.Subject subject,
int bundleId,
String name,
String description,
String version,
String recipe)
throws Exception
BundleManagerLocalcreateBundleVersion in interface BundleManagerLocalsubject - user that must have proper permissionsbundleId - the bundle for which this will be the next versionname - not null or emptydescription - optional long description of the bundle versionversion - optional. If not supplied set to 1.0 for first version, or incremented (as best as possible) for subsequent versionExceptionpublic org.rhq.core.domain.bundle.BundleVersion createBundleVersionViaRecipe(org.rhq.core.domain.auth.Subject subject,
String recipe)
throws Exception
BundleManagerRemotecreateBundleVersionViaRecipe in interface BundleManagerRemoterecipe - the recipe that defines the bundle version to be createdExceptionpublic org.rhq.core.domain.bundle.BundleVersion createBundleVersionViaFile(org.rhq.core.domain.auth.Subject subject,
File distributionFile)
throws Exception
BundleManagerRemotecreateBundleVersionViaFile in interface BundleManagerRemotedistributionFile - a local Bundle Distribution file. It must be read accessible by the RHQ server process.Exceptionpublic org.rhq.core.domain.bundle.BundleVersion createBundleVersionViaByteArray(org.rhq.core.domain.auth.Subject subject,
byte[] fileBytes)
throws Exception
BundleManagerRemoteBundleManagerRemote.createBundleVersionViaFile(Subject, File) but the caller is providing the actual
bytes of the file as opposed to the file itself.
WARNING: obviously, this requires the entire distribution file to have been loaded fully in memory.
For very large distribution files, this could cause OutOfMemoryErrors.createBundleVersionViaByteArray in interface BundleManagerRemotefileBytes - the file bits that make up the entire bundle distribution fileExceptionpublic org.rhq.core.domain.bundle.BundleVersion createBundleVersionViaURL(org.rhq.core.domain.auth.Subject subject,
String distributionFileUrl)
throws Exception
BundleManagerRemoteBundleManagerRemote.createBundleVersionViaFile(Subject,File).createBundleVersionViaURL in interface BundleManagerRemotedistributionFileUrl - a URL String to the Bundle Distribution file. It must be live, resolvable and read accessible
by the RHQ server process.Exceptionpublic org.rhq.core.domain.bundle.BundleFile addBundleFile(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
String name,
String version,
org.rhq.core.domain.content.Architecture architecture,
InputStream fileStream)
throws Exception
BundleManagerRemoteaddBundleFile(Subject, int, String, int, boolean)addBundleFile in interface BundleManagerRemotesubject - user that must have proper permissionsbundleVersionId - id of the BundleVersion incorporating this BundleFilename - name of the BundleFile (and the resulting Package)version - version of the backing packagearchitecture - architecture appropriate for the backing package. Defaults to noarch (i.e. any architecture).fileStream - the file bitsExceptionpublic org.rhq.core.domain.bundle.BundleFile addBundleFileViaByteArray(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
String name,
String version,
org.rhq.core.domain.content.Architecture architecture,
byte[] fileBytes)
throws Exception
BundleManagerRemoteaddBundleFileViaByteArray in interface BundleManagerRemoteExceptionaddBundleFile(Subject, int, String, String, Architecture, InputStream, boolean)}public org.rhq.core.domain.bundle.BundleFile addBundleFileViaURL(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
String name,
String version,
org.rhq.core.domain.content.Architecture architecture,
String bundleFileUrl)
throws Exception
BundleManagerRemoteaddBundleFileViaURL in interface BundleManagerRemoteExceptionaddBundleFile(Subject, int, String, String, Architecture, InputStream, boolean)}public org.rhq.core.domain.bundle.BundleFile addBundleFileViaPackageVersion(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
String name,
int packageVersionId)
throws Exception
BundleManagerRemoteaddBundleFileViaPackageVersion in interface BundleManagerRemoteExceptionaddBundleFile(Subject, int, String, String, Architecture, InputStream, boolean)}public void purgeBundleDestination(org.rhq.core.domain.auth.Subject subject,
int bundleDestinationId)
throws Exception
BundleManagerRemotepurgeBundleDestination in interface BundleManagerRemotesubject - user that must have proper permissionsbundleDestinationId - the ID of the destination that is to be purged of bundle contentExceptionpublic void _finalizePurge(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.bundle.BundleDeployment bundleDeployment,
Map<org.rhq.core.domain.bundle.BundleResourceDeployment,String> failedToPurge)
throws Exception
BundleManagerLocalBundleManagerRemote.purgeBundleDestination(Subject, int) is done, it
calls this so the purge can be finalized. This is required because this method is called with
a transactional context, as opposed to the main purge method._finalizePurge in interface BundleManagerLocalExceptionpublic org.rhq.core.domain.bundle.BundleDeployment scheduleBundleDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDeploymentId,
boolean isCleanDeployment)
throws Exception
BundleManagerRemotescheduleBundleDeployment in interface BundleManagerRemotesubject - user that must have proper permissionsbundleDeploymentId - the BundleDeployment being used to guide the deploymentsisCleanDeployment - if true perform a wipe of the deploy directory prior to the deployment. If false
perform as an upgrade to the existing deployment, if any.Exceptionpublic org.rhq.core.domain.bundle.BundleDeployment scheduleRevertBundleDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDestinationId,
String deploymentDescription,
boolean isCleanDeployment)
throws Exception
BundleManagerRemotescheduleRevertBundleDeployment in interface BundleManagerRemotesubject - user that must have proper permissionsdeploymentDescription - an optional longer description describing this deployment. If null defaults
to the description of the previous deployment.isCleanDeployment - if true perform a wipe of the deploy directory prior to the revert deployment. Backed up
files will still be applied. If false perform as an upgrade to the existing deployment.Exceptionpublic BundleScheduleRequest getScheduleRequest(org.rhq.core.domain.auth.Subject subject, int resourceDeploymentId, boolean isCleanDeployment, boolean isRevert) throws Exception
BundleManagerLocalgetScheduleRequest in interface BundleManagerLocalExceptionpublic org.rhq.core.domain.bundle.BundleResourceDeployment createBundleResourceDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDeploymentId,
int resourceId)
throws Exception
BundleManagerLocalcreateBundleResourceDeployment in interface BundleManagerLocalExceptionpublic org.rhq.core.domain.bundle.BundleResourceDeployment setBundleResourceDeploymentStatus(org.rhq.core.domain.auth.Subject subject,
int resourceDeploymentId,
org.rhq.core.domain.bundle.BundleDeploymentStatus status)
throws Exception
BundleManagerLocalsetBundleResourceDeploymentStatus in interface BundleManagerLocalresourceDeploymentId - id of the resource deployment appending the history recordBundleResourceDeploymentExceptionpublic Set<String> getBundleVersionFilenames(org.rhq.core.domain.auth.Subject subject, int bundleVersionId, boolean withoutBundleFileOnly) throws Exception
BundleManagerRemotegetBundleVersionFilenames in interface BundleManagerRemotesubject - user that must have proper permissionsbundleVersionId - the BundleVersion being queriedwithoutBundleFileOnly - if true omit any filenames that already have a corresponding BundleFile for
the BundleVersion.Exceptionpublic HashMap<String,Boolean> getAllBundleVersionFilenames(org.rhq.core.domain.auth.Subject subject, int bundleVersionId) throws Exception
getAllBundleVersionFilenames in interface BundleManagerLocalExceptionpublic List<org.rhq.core.domain.bundle.BundleType> getAllBundleTypes(org.rhq.core.domain.auth.Subject subject)
getAllBundleTypes in interface BundleManagerRemotepublic org.rhq.core.domain.bundle.BundleType getBundleType(org.rhq.core.domain.auth.Subject subject,
String bundleTypeName)
getBundleType in interface BundleManagerRemotepublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleDeployment> findBundleDeploymentsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleDeploymentCriteria criteria)
findBundleDeploymentsByCriteria in interface BundleManagerRemotepublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleDeployment> findBundleDeploymentsByCriteriaWithDestinationFilter(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleDeploymentCriteria criteria)
findBundleDeploymentsByCriteriaWithDestinationFilter in interface BundleManagerLocalsubject - Callercriteria - criteria to fetch the deploymentspublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleDestination> findBundleDestinationsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleDestinationCriteria criteria)
findBundleDestinationsByCriteria in interface BundleManagerRemotepublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleResourceDeployment> findBundleResourceDeploymentsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleResourceDeploymentCriteria criteria)
findBundleResourceDeploymentsByCriteria in interface BundleManagerRemotepublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleVersion> findBundleVersionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleVersionCriteria criteria)
findBundleVersionsByCriteria in interface BundleManagerRemotepublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleVersion> findBundleVersionsByCriteriaWithDestinationFilter(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleVersionCriteria criteria)
findBundleVersionsByCriteriaWithDestinationFilter in interface BundleManagerLocalsubject - Callercriteria - criteria to fetch the bundlespublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.BundleFile> findBundleFilesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleFileCriteria criteria)
findBundleFilesByCriteria in interface BundleManagerRemotepublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.Bundle> findBundlesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleCriteria criteria)
findBundlesByCriteria in interface BundleManagerRemotepublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.Bundle> findBundlesByCriteriaWithDestinationFilter(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleCriteria criteria)
findBundlesByCriteriaWithDestinationFilter in interface BundleManagerLocalsubject - Callercriteria - criteria to fetch the bundlespublic org.rhq.core.domain.util.PageList<org.rhq.core.domain.bundle.composite.BundleWithLatestVersionComposite> findBundlesWithLatestVersionCompositesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.BundleCriteria criteria)
findBundlesWithLatestVersionCompositesByCriteria in interface BundleManagerRemotepublic void deleteBundles(org.rhq.core.domain.auth.Subject subject,
int[] bundleIds)
throws Exception
BundleManagerRemotedeleteBundles in interface BundleManagerRemotebundleIds - IDs of all bundles to be deletedException - if any part of the removal fails.public void deleteBundle(org.rhq.core.domain.auth.Subject subject,
int bundleId)
throws Exception
BundleManagerRemotedeleteBundle in interface BundleManagerRemoteException - if any part of the removal fails.public void deleteBundleDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDeploymentId)
throws Exception
BundleManagerLocaldeleteBundleDeployment in interface BundleManagerLocalException - if any part of the removal fails.public void deleteBundleDestination(org.rhq.core.domain.auth.Subject subject,
int destinationId)
throws Exception
BundleManagerLocaldeleteBundleDestination in interface BundleManagerLocalException - if any part of the removal fails.public void deleteBundleVersion(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
boolean deleteBundleIfEmpty)
throws Exception
BundleManagerRemotedeleteBundleVersion in interface BundleManagerRemotedeleteBundleIfEmpty - if true and if this method deletes the last bundle version for its
bundle, then that bundle entity itself will be completely purgedException - if any part of the removal fails.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.