|
|||||||||
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. |
PackageVersion |
createPackageVersionWithDisplayVersion(Subject subject,
String packageName,
int packageTypeId,
String version,
String displayVersion,
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 |
deletePackageVersion(Subject subject,
int resourceId)
Deletes the specified PackageVersion from the system. |
void |
deployPackages(Subject subject,
int[] resourceIds,
int[] packageVersionIds)
Deprecated. |
void |
deployPackagesWithNote(Subject subject,
int[] resourceIds,
int[] packageVersionIds,
String requestNotes)
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)
|
PageList<Package> |
findPackagesByCriteria(Subject subject,
PackageCriteria criteria)
If the criteria object filters on repo id, the subject needs to be able to access that repo. |
PageList<PackageAndLatestVersionComposite> |
findPackagesWithLatestVersion(Subject subject,
PackageCriteria criteria)
Akin to findPackagesByCriteria(Subject, PackageCriteria) but also
determines the latest version of the returned packages. |
PackageType |
findPackageType(Subject subject,
Integer resourceTypeId,
String packageTypeName)
This re tries to find a package type of given name defined by the resource type provided. |
List<PackageType> |
findPackageTypes(Subject subject,
String resourceTypeName,
String pluginName)
This gets the package types that can be deployed to the given resource. |
PackageTypeAndVersionFormatComposite |
findPackageTypeWithVersionFormat(Subject subject,
Integer resourceTypeId,
String packageTypeName)
Similar to findPackageType(Subject, Integer, String) but
returns the package type along with the version format specification. |
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)
This can be a dangerous call for large packages as the entire package will attempt to be loaded. |
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.
PackageVersion createPackageVersionWithDisplayVersion(Subject subject, String packageName, int packageTypeId, String version, String displayVersion, 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 deletePackageVersion(Subject subject, int resourceId)
subject
- The logged in subjectpackageVersionId
- The PackageVersion to delete.@Deprecated void 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 installvoid deployPackagesWithNote(Subject subject, int[] resourceIds, int[] packageVersionIds, String requestNotes)
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 installrequestNotes
- request notesList<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
PackageType findPackageType(Subject subject, Integer resourceTypeId, String packageTypeName)
The resource type id can be null, in which case only the serverside defined package types are searched for.
subject
- the authenticated userresourceTypeId
- the id of the resource type associated with the package type or null if only server-side package types should be searched forpackageTypeName
- the name of the package type to find
PackageTypeAndVersionFormatComposite findPackageTypeWithVersionFormat(Subject subject, Integer resourceTypeId, String packageTypeName)
findPackageType(Subject, Integer, String)
but
returns the package type along with the version format specification.
subject
- resourceTypeId
- packageTypeName
-
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 filterPageList<Package> findPackagesByCriteria(Subject subject, PackageCriteria criteria)
subject
- criteria
-
PageList<PackageAndLatestVersionComposite> findPackagesWithLatestVersion(Subject subject, PackageCriteria criteria)
findPackagesByCriteria(Subject, PackageCriteria)
but also
determines the latest version of the returned packages.
The provided criteria has to be limited to a specific repo using PackageCriteria.addFilterRepoId(Integer)
.
subject
- criteria
-
IllegalArgumentException
- if the criteria doesn't define a repo filterInstalledPackage getBackingPackageForResource(Subject subject, int resourceId)
resourceId
- a valid resource
byte[] getPackageBytes(Subject user, int resourceId, int installedPackageId)
user
- resourceId
- installedPackageId
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |