|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentManagerRemote
Method Summary | |
---|---|
PackageVersion |
createPackageVersion(Subject subject,
String packageName,
int packageTypeId,
String version,
Integer architectureId,
byte[] packageBytes)
Creates a new package version in the system. |
void |
deletePackages(Subject subject,
int resourceId,
int[] installedPackageIds,
String requestNotes)
Deletes the specified package from the resource. |
void |
deployPackages(Subject subject,
int[] resourceIds,
int[] packageVersionIds)
Deploys packages on the specified resources. |
List<Architecture> |
findArchitectures(Subject subject)
Returns all architectures known to the system. |
PageList<InstalledPackage> |
findInstalledPackagesByCriteria(Subject subject,
InstalledPackageCriteria criteria)
|
List<PackageType> |
findPackageTypes(Subject subject,
String resourceTypeName,
String pluginName)
This gets the package types that can be deployed to the given resource. |
PageList<PackageVersion> |
findPackageVersionsByCriteria(Subject subject,
PackageVersionCriteria criteria)
If a resourceId filter is not set via PackageVersionCriteria.addFilterResourceId() then
this method requires InventoryManager permissions. |
InstalledPackage |
getBackingPackageForResource(Subject subject,
int resourceId)
For a resource that is content-backed (aka package-backed), this call will return InstalledPackage information for the backing content (package). |
byte[] |
getPackageBytes(Subject user,
int resourceId,
int installedPackageId)
|
Method Detail |
---|
PackageVersion createPackageVersion(Subject subject, String packageName, int packageTypeId, String version, Integer architectureId, byte[] packageBytes)
subject
- The logged in subjectpackageName
- parent package name; uniquely identifies the package under which this version goespackageTypeId
- identifies the type of package in case the general package needs to be createdversion
- identifies the version to be createarchitectureId
- architecture of the newly created package version. If null then no architecture restriction.
void deletePackages(Subject subject, int resourceId, int[] installedPackageIds, String requestNotes)
subject
- The logged in subjectresourceId
- identifies the resource from which the packages should be deletedinstalledPackageIds
- identifies all of the packages to be deletedvoid deployPackages(Subject subject, int[] resourceIds, int[] packageVersionIds)
PackageVersion
being installed, along with the deployment configuration values if any. This method will
take care of populating the rest of the values in each installed package object.
subject
- The logged in subjectresourceIds
- identifies the resources against which the package will be deployedpackageVersionIds
- packageVersions we want to installList<Architecture> findArchitectures(Subject subject)
subject
- The logged in subject
List<PackageType> findPackageTypes(Subject subject, String resourceTypeName, String pluginName) throws org.rhq.enterprise.server.resource.ResourceTypeNotFoundException
subject
- The logged in subjectresourceTypeName
- The resource type in question
org.rhq.enterprise.server.resource.ResourceTypeNotFoundException
PageList<InstalledPackage> findInstalledPackagesByCriteria(Subject subject, InstalledPackageCriteria criteria)
subject
- criteria
- InstalledPackageCriteria
PageList<PackageVersion> findPackageVersionsByCriteria(Subject subject, PackageVersionCriteria criteria)
PackageVersionCriteria.addFilterResourceId()
then
this method requires InventoryManager permissions. When set the user must have permission to view
the resource.
subject
- criteria
-
IllegalArgumentException
- for invalid resourceId filterInstalledPackage getBackingPackageForResource(Subject subject, int resourceId)
resourceId
- a valid resource
byte[] getPackageBytes(Subject user, int resourceId, int installedPackageId)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |