|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.content.ContentManagerBean
public class ContentManagerBean
EJB that handles content subsystem interaction with resources, including content discovery reports and create/delete functionality.
| Field Summary |
|---|
| Fields inherited from interface org.rhq.enterprise.server.content.ContentManagerLocal |
|---|
UPLOAD_DISPLAY_VERSION, UPLOAD_FILE_INSTALL_DATE, UPLOAD_FILE_NAME, UPLOAD_FILE_SIZE, UPLOAD_MD5, UPLOAD_OWNER, UPLOAD_SHA256 |
| Constructor Summary | |
|---|---|
ContentManagerBean()
|
|
| Method Summary | |
|---|---|
void |
checkForTimedOutRequests(org.rhq.core.domain.auth.Subject subject)
For internal use only - Will check to see if any in progress content request jobs are taking too long to finish and if so marks them as failed. |
void |
completeDeletePackageRequest(org.rhq.core.domain.content.transfer.RemovePackagesResponse response)
For documentation, see ContentServerService.completeDeletePackageRequest(org.rhq.core.domain.content.transfer.RemovePackagesResponse)
. |
void |
completeDeployPackageRequest(org.rhq.core.domain.content.transfer.DeployPackagesResponse response)
For documentation, see ContentServerService.completeDeployPackageRequest(org.rhq.core.domain.content.transfer.DeployPackagesResponse)
. |
void |
completeRetrievePackageBitsRequest(ContentServiceResponse response,
InputStream bitStream)
For documentation, see ContentServerService.completeRetrievePackageBitsRequest(org.rhq.core.clientapi.server.content.ContentServiceResponse, java.io.InputStream)
)}. |
org.rhq.core.domain.content.ContentServiceRequest |
createDeployRequest(int resourceId,
String username,
Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> packages,
String notes)
For internal use only - Adds a request entry to the database to track the deployment of a group of packages. |
org.rhq.core.domain.content.PackageVersion |
createPackageVersion(org.rhq.core.domain.auth.Subject subject,
String packageName,
int packageTypeId,
String version,
Integer architectureId,
byte[] packageBytes)
Creates a new package version in the system. |
org.rhq.core.domain.content.PackageVersion |
createPackageVersionWithDisplayVersion(org.rhq.core.domain.auth.Subject subject,
String packageName,
int packageTypeId,
String version,
String displayVersion,
Integer architectureId,
byte[] packageBytes)
Creates a new package version in the system. |
org.rhq.core.domain.content.PackageVersion |
createPackageVersionWithDisplayVersion(org.rhq.core.domain.auth.Subject subject,
String packageName,
int packageTypeId,
String version,
String displayVersion,
int architectureId,
InputStream packageBitStream)
Creates a new package version in the system. |
org.rhq.core.domain.content.ContentServiceRequest |
createRemoveRequest(int resourceId,
String username,
int[] installedPackageIds,
String requestNotes)
For internal use only - Adds a request entry to the database to track the deleting of currently installed packages from the resource. |
org.rhq.core.domain.content.ContentServiceRequest |
createRetrieveBitsRequest(int resourceId,
String username,
int installedPackageId)
For internal use only - Adds a request entry to the database to track the request for a package's bits. |
void |
deletePackages(org.rhq.core.domain.auth.Subject user,
int[] resourceIds,
int[] installedPackageIds)
Deletes the specified package from the resource. |
void |
deletePackages(org.rhq.core.domain.auth.Subject user,
int resourceId,
int[] installedPackageIds,
String requestNotes)
Deletes the specified package from the resource. |
void |
deletePackageVersion(org.rhq.core.domain.auth.Subject subject,
int packageVersionId)
Deletes the specified PackageVersion from the system. |
void |
deployPackages(org.rhq.core.domain.auth.Subject user,
int[] resourceIds,
int[] packageVersionIds)
Deploys packages on the specified resources. |
void |
deployPackages(org.rhq.core.domain.auth.Subject user,
int resourceId,
Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> packages,
String requestNotes)
Deploys a package on the specified resource. |
void |
deployPackagesWithNote(org.rhq.core.domain.auth.Subject user,
int[] resourceIds,
int[] packageVersionIds,
String requestNotes)
Deploys packages on the specified resources. |
void |
failRequest(int requestId,
Throwable error)
For internal use only - Updates a persisted ContentServiceRequest in the case a failure is
encountered during one of the use case methods (i.e. |
List<org.rhq.core.domain.content.Architecture> |
findArchitectures(org.rhq.core.domain.auth.Subject subject)
Returns all architectures known to the system. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.InstalledPackage> |
findInstalledPackagesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.InstalledPackageCriteria criteria)
|
List<String> |
findInstalledPackageVersions(org.rhq.core.domain.auth.Subject user,
int resourceId)
Returns list of version strings for installed packages on the resource. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.Package> |
findPackagesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.PackageCriteria criteria)
If the criteria object filters on repo id, the subject needs to be able to access that repo. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.composite.PackageAndLatestVersionComposite> |
findPackagesWithLatestVersion(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.PackageCriteria criteria)
Akin to ContentManagerRemote.findPackagesByCriteria(Subject, PackageCriteria) but also
determines the latest version of the returned packages. |
org.rhq.core.domain.content.PackageType |
findPackageType(org.rhq.core.domain.auth.Subject subject,
Integer resourceTypeId,
String packageTypeName)
This re tries to find a package type of given name defined by the resource type provided. |
List<org.rhq.core.domain.content.PackageType> |
findPackageTypes(org.rhq.core.domain.auth.Subject subject,
String resourceTypeName,
String pluginName)
This gets the package types that can be deployed to the given resource. |
org.rhq.core.domain.content.composite.PackageTypeAndVersionFormatComposite |
findPackageTypeWithVersionFormat(org.rhq.core.domain.auth.Subject subject,
Integer resourceTypeId,
String packageTypeName)
Similar to ContentManagerRemote.findPackageType(Subject, Integer, String) but
returns the package type along with the version format specification. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.PackageVersion> |
findPackageVersionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.PackageVersionCriteria criteria)
If a resourceId filter is not set via PackageVersionCriteria.addFilterResourceId() then
this method requires InventoryManager permissions. |
org.rhq.core.domain.content.InstalledPackage |
getBackingPackageForResource(org.rhq.core.domain.auth.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). |
org.rhq.core.domain.content.Architecture |
getNoArchitecture()
Returns the entity associated with no architecture. |
byte[] |
getPackageBytes(org.rhq.core.domain.auth.Subject user,
int resourceId,
int installedPackageId)
This can be a dangerous call for large packages as the entire package will attempt to be loaded. |
org.rhq.core.domain.content.PackageType |
getResourceCreationPackageType(int resourceTypeId)
Returns the package type that backs resources of the specified type. |
org.rhq.core.domain.content.PackageVersion |
getUploadedPackageVersion(org.rhq.core.domain.auth.Subject subject,
String packageName,
int packageTypeId,
String version,
int architectureId,
InputStream packageBitStream,
Map<String,String> packageUploadDetails,
Integer repoId)
Does much of same functionality as createPackageVersion, but uses same named query as the agent side discovery mechanism, and passes in additional parameters available when file has been uploaded via the UI. |
Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> |
loadDependencies(int requestId,
Set<org.rhq.core.domain.content.PackageDetailsKey> keys)
For documentation, see ContentServerService.loadDependencies(int, java.util.Set) |
void |
mergeDiscoveredPackages(ContentDiscoveryReport report)
For documentation, see ContentServerService.mergeDiscoveredPackages(org.rhq.core.clientapi.server.content.ContentDiscoveryReport)
. |
org.rhq.core.domain.content.Package |
persistOrMergePackageSafely(org.rhq.core.domain.content.Package pkg)
Finds, and if it doesn't exist, persists the package. |
org.rhq.core.domain.content.PackageVersion |
persistOrMergePackageVersionSafely(org.rhq.core.domain.content.PackageVersion pv)
Finds, and if it doesn't exist, persists the package version. |
org.rhq.core.domain.content.Package |
persistPackage(org.rhq.core.domain.content.Package pkg)
Very simple method that pesists the given package within its own transaction. |
org.rhq.core.domain.content.PackageVersion |
persistPackageVersion(org.rhq.core.domain.content.PackageVersion pv)
Very simple method that persists the given package version within its own transaction. |
org.rhq.core.domain.content.PackageType |
persistServersidePackageType(org.rhq.core.domain.content.PackageType packageType)
This method is used to persist new package types that are defined on the server-side by some kind of plugin. |
void |
retrieveBitsFromResource(org.rhq.core.domain.auth.Subject user,
int resourceId,
int installedPackageId)
Requests the plugin load and send the actual bits for the specified package. |
List<org.rhq.core.domain.content.transfer.DeployPackageStep> |
translateInstallationSteps(int resourceId,
org.rhq.core.domain.content.transfer.ResourcePackageDetails packageDetails)
Requests the plugin translate the installation steps of the specified package. |
void |
updateBlobStream(InputStream stream,
org.rhq.core.domain.content.PackageBits bits,
Map<String,String> contentDetails)
Takes an input stream and copies it into the PackageBits table using Hibernate Blob mechanism with PreparedStatements. |
void |
writeBlobOutToStream(OutputStream stream,
org.rhq.core.domain.content.PackageBits bits,
boolean closeStreams)
For Testing only Writes the contents of a the Blob out to the stream passed in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentManagerBean()
| Method Detail |
|---|
public void mergeDiscoveredPackages(ContentDiscoveryReport report)
ContentManagerLocalContentServerService.mergeDiscoveredPackages(org.rhq.core.clientapi.server.content.ContentDiscoveryReport)
.
mergeDiscoveredPackages in interface ContentManagerLocal
public void deployPackages(org.rhq.core.domain.auth.Subject user,
int[] resourceIds,
int[] packageVersionIds)
ContentManagerRemote
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.
deployPackages in interface ContentManagerRemoteuser - The logged in subjectresourceIds - identifies the resources against which the package will be deployedpackageVersionIds - packageVersions we want to install
public void deployPackagesWithNote(org.rhq.core.domain.auth.Subject user,
int[] resourceIds,
int[] packageVersionIds,
String requestNotes)
ContentManagerRemote
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.
deployPackagesWithNote in interface ContentManagerLocaldeployPackagesWithNote in interface ContentManagerRemoteuser - The logged in subjectresourceIds - identifies the resources against which the package will be deployedpackageVersionIds - packageVersions we want to installrequestNotes - request notesContentManagerRemote#deployPackagesWithNote(Subject, int[], int[], String)}
public void deployPackages(org.rhq.core.domain.auth.Subject user,
int resourceId,
Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> packages,
String requestNotes)
ContentManagerLocal
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.
deployPackages in interface ContentManagerLocaluser - the user who is requesting the creationresourceId - identifies the resource against which the package will be deployedpackages - packages (with their deployment time configuration values) to deployrequestNotes - user-specified notes on what is contained in this request
public org.rhq.core.domain.content.ContentServiceRequest createDeployRequest(int resourceId,
String username,
Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> packages,
String notes)
ContentManagerLocal
createDeployRequest in interface ContentManagerLocalresourceId - resource against which the package request was executedusername - user who made the requestpackages - packages being deployed in the requestnotes - user-specified notes on what the request entails
public void completeDeployPackageRequest(org.rhq.core.domain.content.transfer.DeployPackagesResponse response)
ContentManagerLocalContentServerService.completeDeployPackageRequest(org.rhq.core.domain.content.transfer.DeployPackagesResponse)
.
completeDeployPackageRequest in interface ContentManagerLocal
public void deletePackages(org.rhq.core.domain.auth.Subject user,
int[] resourceIds,
int[] installedPackageIds)
ContentManagerLocal
deletePackages in interface ContentManagerLocaluser - the user who is requesting the deleteresourceIds - identifies the resources from which the packages should be deletedinstalledPackageIds - identifies all of the packages to be deleted
public void deletePackages(org.rhq.core.domain.auth.Subject user,
int resourceId,
int[] installedPackageIds,
String requestNotes)
ContentManagerRemote
deletePackages in interface ContentManagerLocaldeletePackages in interface ContentManagerRemoteuser - The logged in subjectresourceId - identifies the resource from which the packages should be deletedinstalledPackageIds - identifies all of the packages to be deletedContentManagerRemote#deletePackages(Subject, int, int[], String)}
public void deletePackageVersion(org.rhq.core.domain.auth.Subject subject,
int packageVersionId)
ContentManagerRemote
deletePackageVersion in interface ContentManagerLocaldeletePackageVersion in interface ContentManagerRemotesubject - The logged in subjectContentManagerRemote#deletePackageVersion(Subject, int)}
public org.rhq.core.domain.content.ContentServiceRequest createRemoveRequest(int resourceId,
String username,
int[] installedPackageIds,
String requestNotes)
ContentManagerLocal
createRemoveRequest in interface ContentManagerLocalresourceId - resource against which the package request was executedusername - user who made the requestinstalledPackageIds - identifies the installed packages that are to be deleted; ids in this list must be of
valid InstalledPackage objects on the resourcerequestNotes - user-specified notes on what the request entails
public void completeDeletePackageRequest(org.rhq.core.domain.content.transfer.RemovePackagesResponse response)
ContentManagerLocalContentServerService.completeDeletePackageRequest(org.rhq.core.domain.content.transfer.RemovePackagesResponse)
.
completeDeletePackageRequest in interface ContentManagerLocal
public void retrieveBitsFromResource(org.rhq.core.domain.auth.Subject user,
int resourceId,
int installedPackageId)
ContentManagerLocal
retrieveBitsFromResource in interface ContentManagerLocaluser - the user who is requesting the updateresourceId - identifies the resource against which the package existsinstalledPackageId - id of the installed package to retrieve bits
public byte[] getPackageBytes(org.rhq.core.domain.auth.Subject user,
int resourceId,
int installedPackageId)
ContentManagerRemote
getPackageBytes in interface ContentManagerLocalgetPackageBytes in interface ContentManagerRemoteContentManagerRemote#getPackageBytes(Subject, int, int)
public List<org.rhq.core.domain.content.transfer.DeployPackageStep> translateInstallationSteps(int resourceId,
org.rhq.core.domain.content.transfer.ResourcePackageDetails packageDetails)
throws Exception
ContentManagerLocal
translateInstallationSteps in interface ContentManagerLocalresourceId - resource against which the package is being installedpackageDetails - package being installed
null if they cannot be determined
for this package
Exception - if there is an error either contacting the agent or in the plugin's generation of the steps
public org.rhq.core.domain.content.ContentServiceRequest createRetrieveBitsRequest(int resourceId,
String username,
int installedPackageId)
ContentManagerLocal
createRetrieveBitsRequest in interface ContentManagerLocalresourceId - resource against which the package request was executedusername - user who made the requestinstalledPackageId - package whose bits are being retrieved by the request; this must be the ID of a valid
InstalledPackage on the resource.
public void completeRetrievePackageBitsRequest(ContentServiceResponse response,
InputStream bitStream)
ContentManagerLocalContentServerService.completeRetrievePackageBitsRequest(org.rhq.core.clientapi.server.content.ContentServiceResponse, java.io.InputStream)
)}.
completeRetrievePackageBitsRequest in interface ContentManagerLocal
public Set<org.rhq.core.domain.content.transfer.ResourcePackageDetails> loadDependencies(int requestId,
Set<org.rhq.core.domain.content.PackageDetailsKey> keys)
ContentManagerLocalContentServerService.loadDependencies(int, java.util.Set)
loadDependencies in interface ContentManagerLocal
public void failRequest(int requestId,
Throwable error)
ContentManagerLocalContentServiceRequest in the case a failure is
encountered during one of the use case methods (i.e. create, delete).
failRequest in interface ContentManagerLocalrequestId - identifies the previously persisted requesterror - error encountered to cause the failurepublic List<org.rhq.core.domain.content.Architecture> findArchitectures(org.rhq.core.domain.auth.Subject subject)
ContentManagerRemote
findArchitectures in interface ContentManagerLocalfindArchitectures in interface ContentManagerRemotesubject - The logged in subject
ContentManagerRemote#findArchitectures(Subject)}public org.rhq.core.domain.content.Architecture getNoArchitecture()
ContentManagerLocal
getNoArchitecture in interface ContentManagerLocal
public List<org.rhq.core.domain.content.PackageType> findPackageTypes(org.rhq.core.domain.auth.Subject subject,
String resourceTypeName,
String pluginName)
throws ResourceTypeNotFoundException
ContentManagerRemote
findPackageTypes in interface ContentManagerLocalfindPackageTypes in interface ContentManagerRemotesubject - The logged in subjectresourceTypeName - The resource type in question
ResourceTypeNotFoundExceptionContentManagerRemote#findPackageTypes(Subject, String, String)}
public org.rhq.core.domain.content.PackageType findPackageType(org.rhq.core.domain.auth.Subject subject,
Integer resourceTypeId,
String packageTypeName)
ContentManagerRemoteThe resource type id can be null, in which case only the serverside defined package types are searched for.
findPackageType in interface ContentManagerLocalfindPackageType in interface ContentManagerRemotesubject - 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
ContentManagerRemote#findPackageType(Subject, Integer, String)}
public org.rhq.core.domain.content.composite.PackageTypeAndVersionFormatComposite findPackageTypeWithVersionFormat(org.rhq.core.domain.auth.Subject subject,
Integer resourceTypeId,
String packageTypeName)
ContentManagerRemoteContentManagerRemote.findPackageType(Subject, Integer, String) but
returns the package type along with the version format specification.
findPackageTypeWithVersionFormat in interface ContentManagerLocalfindPackageTypeWithVersionFormat in interface ContentManagerRemoteContentManagerRemote#findPackageTypeWithVersionFormat(Subject, Integer, String)}public void checkForTimedOutRequests(org.rhq.core.domain.auth.Subject subject)
ContentManagerLocal
checkForTimedOutRequests in interface ContentManagerLocalsubject - only the overlord may execute this system operation
public org.rhq.core.domain.content.PackageVersion createPackageVersion(org.rhq.core.domain.auth.Subject subject,
String packageName,
int packageTypeId,
String version,
Integer architectureId,
byte[] packageBytes)
ContentManagerRemote
createPackageVersion in interface ContentManagerLocalcreatePackageVersion in interface ContentManagerRemotesubject - 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.
createPackageVersion(Subject, String, int, String, int, byte[]);
public org.rhq.core.domain.content.PackageVersion createPackageVersionWithDisplayVersion(org.rhq.core.domain.auth.Subject subject,
String packageName,
int packageTypeId,
String version,
String displayVersion,
Integer architectureId,
byte[] packageBytes)
ContentManagerRemote
createPackageVersionWithDisplayVersion in interface ContentManagerLocalcreatePackageVersionWithDisplayVersion in interface ContentManagerRemotesubject - 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.
createPackageVersion(Subject, String, int, String, int, byte[]);
public org.rhq.core.domain.content.PackageVersion createPackageVersionWithDisplayVersion(org.rhq.core.domain.auth.Subject subject,
String packageName,
int packageTypeId,
String version,
String displayVersion,
int architectureId,
InputStream packageBitStream)
ContentManagerLocal
createPackageVersionWithDisplayVersion in interface ContentManagerLocalsubject - the user requesting the package creationpackageName - 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 createdisplayVersion - package display versionarchitectureId - architecture of the newly created package version
public org.rhq.core.domain.content.PackageVersion persistPackageVersion(org.rhq.core.domain.content.PackageVersion pv)
ContentManagerLocalThis method is here to support ContentManagerLocal.persistOrMergePackageVersionSafely(PackageVersion),
it is not meant for general consumption.
persistPackageVersion in interface ContentManagerLocalpv - the package version to persist
public org.rhq.core.domain.content.PackageVersion persistOrMergePackageVersionSafely(org.rhq.core.domain.content.PackageVersion pv)
ContentManagerLocalThis method is for a very specific use case - that is, when creating a package version in a place where, concurrently, someone else might try to create the same package version. It is not for general persisting/merging of package versions.
persistOrMergePackageVersionSafely in interface ContentManagerLocalpv - the package version to find and possibly persist to the database
public org.rhq.core.domain.content.Package persistPackage(org.rhq.core.domain.content.Package pkg)
ContentManagerLocalThis method is here to support ContentManagerLocal.persistOrMergePackageSafely(Package),
it is not meant for general consumption.
persistPackage in interface ContentManagerLocalpkg - the package to persist
public org.rhq.core.domain.content.Package persistOrMergePackageSafely(org.rhq.core.domain.content.Package pkg)
ContentManagerLocalThis method is for a very specific use case - that is, when creating a package in a place where, concurrently, someone else might try to create the same package. It is not for general persisting/merging of packages.
persistOrMergePackageSafely in interface ContentManagerLocalpkg - the package to find and possibly persist to the database
public org.rhq.core.domain.content.PackageType getResourceCreationPackageType(int resourceTypeId)
ContentManagerLocal
getResourceCreationPackageType in interface ContentManagerLocalresourceTypeId - identifies the resource type.
null otherwise
public List<String> findInstalledPackageVersions(org.rhq.core.domain.auth.Subject user,
int resourceId)
ContentManagerLocal
findInstalledPackageVersions in interface ContentManagerLocal
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.InstalledPackage> findInstalledPackagesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.InstalledPackageCriteria criteria)
findInstalledPackagesByCriteria in interface ContentManagerLocalfindInstalledPackagesByCriteria in interface ContentManagerRemotecriteria - InstalledPackageCriteria
ContentManagerRemote#findInstalledPackagesByCriteria(Subject, InstalledPackageCriteria)}
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.PackageVersion> findPackageVersionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.PackageVersionCriteria criteria)
ContentManagerRemotePackageVersionCriteria.addFilterResourceId() then
this method requires InventoryManager permissions. When set the user must have permission to view
the resource.
findPackageVersionsByCriteria in interface ContentManagerLocalfindPackageVersionsByCriteria in interface ContentManagerRemoteContentManagerRemote#findPackageVersionsByCriteria(Subject, PackageVersionCriteria)}
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.Package> findPackagesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.PackageCriteria criteria)
ContentManagerRemote
findPackagesByCriteria in interface ContentManagerLocalfindPackagesByCriteria in interface ContentManagerRemoteContentManagerRemote.findPackagesByCriteria(Subject, PackageCriteria)
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.composite.PackageAndLatestVersionComposite> findPackagesWithLatestVersion(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.PackageCriteria criteria)
ContentManagerRemoteContentManagerRemote.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).
findPackagesWithLatestVersion in interface ContentManagerLocalfindPackagesWithLatestVersion in interface ContentManagerRemoteContentManagerRemote.findPackagesWithLatestVersion(Subject, PackageCriteria)
public org.rhq.core.domain.content.InstalledPackage getBackingPackageForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
ContentManagerRemote
getBackingPackageForResource in interface ContentManagerLocalgetBackingPackageForResource in interface ContentManagerRemoteresourceId - a valid resource
ContentManagerRemote#getBackingPackageForResource(Subject, int)
public org.rhq.core.domain.content.PackageVersion getUploadedPackageVersion(org.rhq.core.domain.auth.Subject subject,
String packageName,
int packageTypeId,
String version,
int architectureId,
InputStream packageBitStream,
Map<String,String> packageUploadDetails,
Integer repoId)
getUploadedPackageVersion in interface ContentManagerLocalsubject - the current userpackageName - the name of the package (the general package will be created if none exists)packageTypeId - the id of the package type. This is ignored if the newResourceTypeId is not nullversion - the version of the package version being createdarchitectureId - the architecture of the package versionpackageBitStream - the input stream with the package bitspackageUploadDetails - additional details about the package. See the constants defined in this interfacerepoId - an optional id of the repo to insert the package version in
public org.rhq.core.domain.content.PackageType persistServersidePackageType(org.rhq.core.domain.content.PackageType packageType)
ContentManagerLocal
Server-side package types are used to identify data stored in the content subsystem
which don't have any agent-side counter-part. Such package types are required to have
the resource type set to null.
persistServersidePackageType in interface ContentManagerLocalpackageType - the package type to persist
public void updateBlobStream(InputStream stream,
org.rhq.core.domain.content.PackageBits bits,
Map<String,String> contentDetails)
updateBlobStream in interface ContentManagerLocalstream - contentDetails - Map to store content details in used in PackageVersioning
public void writeBlobOutToStream(OutputStream stream,
org.rhq.core.domain.content.PackageBits bits,
boolean closeStreams)
writeBlobOutToStream in interface ContentManagerLocalstream - non null stream where contents to be written to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||