|
||||||||||
| 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,
java.lang.String packageName,
int packageTypeId,
java.lang.String version,
java.lang.Integer architectureId,
byte[] packageBytes)
Creates a new package version in the system. |
void |
deletePackages(Subject subject,
int resourceId,
int[] installedPackageIds,
java.lang.String requestNotes)
Deletes the specified package from the resource. |
void |
deployPackages(Subject subject,
int[] resourceIds,
int[] packageVersionIds)
Deploys packages on the specified resources. |
java.util.List<Architecture> |
findArchitectures(Subject subject)
Returns all architectures known to the system. |
PageList<InstalledPackage> |
findInstalledPackagesByCriteria(Subject subject,
InstalledPackageCriteria criteria)
|
java.util.List<PackageType> |
findPackageTypes(Subject subject,
java.lang.String resourceTypeName,
java.lang.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,
java.lang.String packageName,
int packageTypeId,
java.lang.String version,
java.lang.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,
java.lang.String requestNotes)
subject - The logged in subjectresourceId - identifies the resource from which the packages should be deletedinstalledPackageIds - identifies all of the packages to be deleted
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 installjava.util.List<Architecture> findArchitectures(Subject subject)
subject - The logged in subject
java.util.List<PackageType> findPackageTypes(Subject subject,
java.lang.String resourceTypeName,
java.lang.String pluginName)
throws ResourceTypeNotFoundException
subject - The logged in subjectresourceTypeName - The resource type in question
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 -
java.lang.IllegalArgumentException - for invalid resourceId filter
InstalledPackage 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 | |||||||||