|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.webservices.WebservicesManagerBean
public class WebservicesManagerBean
The purpose of this class is to aggregate all the EJB remote implementation into one class that can be annotated by JBossWS. Each annotated SLSB causes a full WSDL compile and publish by JBossWS which is very costly in terms of time. Deploy times went from 2 mins to 12 mins.
| Constructor Summary | |
|---|---|
WebservicesManagerBean()
|
|
| Method Summary | |
|---|---|
int |
acknowledgeAlerts(org.rhq.core.domain.auth.Subject subject,
int[] alertIds)
|
int |
acknowledgeAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
|
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. |
void |
addPackageVersionsToRepo(org.rhq.core.domain.auth.Subject subject,
int repoId,
int[] packageVersionIds)
Associates the package versions (identified by their IDs) to the given repo (also identified by its ID). |
void |
addResourceGroupsToRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] pendingGroupIds)
Adds the given resource groups to the given role. |
void |
addResourcesToGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] resourceIds)
|
void |
addRolesToResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] roleIds)
|
void |
addRolesToSubject(org.rhq.core.domain.auth.Subject subject,
int subjectId,
int[] roleIds)
Assigns a set of roles to a subject which authorizes the subject to do anything the roles permit. |
void |
addSubjectsToRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] subjectIds)
Assigns a set of subjects to a role which authorizes the subjects to do anything the role permits. |
void |
cancelOperationHistory(org.rhq.core.domain.auth.Subject subject,
int operationHistoryId,
boolean ignoreAgentErrors)
Cancels a currently in-progress operation. |
void |
changePassword(org.rhq.core.domain.auth.Subject subject,
String username,
String password)
Change the password for a user. |
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.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.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. |
org.rhq.core.domain.resource.CreateResourceHistory |
createPackageBackedResource(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
org.rhq.core.domain.configuration.Configuration deploymentTimeConfiguration,
byte[] packageBits)
|
org.rhq.core.domain.resource.CreateResourceHistory |
createPackageBackedResource(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
org.rhq.core.domain.configuration.Configuration deploymentTimeConfiguration,
byte[] packageBits,
Integer timeout)
Creates a new physical resource. |
org.rhq.core.domain.resource.CreateResourceHistory |
createPackageBackedResourceViaPackageVersion(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
org.rhq.core.domain.configuration.Configuration deploymentTimeConfiguration,
int packageVersionId)
|
org.rhq.core.domain.resource.CreateResourceHistory |
createPackageBackedResourceViaPackageVersion(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
org.rhq.core.domain.configuration.Configuration deploymentTimeConfiguration,
int packageVersionId,
Integer timeout)
Creates a new physical resource. |
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. |
void |
createPrincipal(org.rhq.core.domain.auth.Subject subject,
String username,
String password)
Creates a new principal (username and password) in the internal database. |
org.rhq.core.domain.content.Repo |
createRepo(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.content.Repo repo)
Creates a new Repo. |
org.rhq.core.domain.resource.CreateResourceHistory |
createResource(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int resourceTypeId,
String resourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
org.rhq.core.domain.configuration.Configuration resourceConfiguration)
|
org.rhq.core.domain.resource.CreateResourceHistory |
createResource(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int resourceTypeId,
String resourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
org.rhq.core.domain.configuration.Configuration resourceConfiguration,
Integer timeout)
Creates a new physical resource. |
org.rhq.core.domain.resource.group.ResourceGroup |
createResourceGroup(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.group.ResourceGroup resourceGroup)
|
org.rhq.core.domain.authz.Role |
createRole(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.authz.Role newRole)
Persists the new role to the database. |
org.rhq.core.domain.auth.Subject |
createSubject(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.auth.Subject subjectToCreate)
Create a a new subject. |
int |
deleteAlerts(org.rhq.core.domain.auth.Subject subject,
int[] alertIds)
|
int |
deleteAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
|
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 |
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. |
void |
deleteOperationHistory(org.rhq.core.domain.auth.Subject subject,
int operationHistoryId,
boolean purgeInProgress)
Purges the history from the database. |
void |
deletePackages(org.rhq.core.domain.auth.Subject subject,
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. |
boolean |
deletePackageVersionsFromRepo(org.rhq.core.domain.auth.Subject subject,
int repoId,
int[] packageVersionIds)
Deletes package versions from a repo if they are not referenced by a content source. |
void |
deleteRepo(org.rhq.core.domain.auth.Subject subject,
int repoId)
Deletes the indicated repo. |
org.rhq.core.domain.resource.DeleteResourceHistory |
deleteResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Deletes a physical resource from the agent machine. |
void |
deleteResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId)
|
void |
deleteResourceGroups(org.rhq.core.domain.auth.Subject subject,
int[] groupIds)
|
List<org.rhq.core.domain.resource.DeleteResourceHistory> |
deleteResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
Deletes physical resources from the agent machine. |
void |
deleteRoles(org.rhq.core.domain.auth.Subject subject,
int[] roleIds)
Removes a set of roles from the database. |
void |
deleteSubjects(org.rhq.core.domain.auth.Subject subject,
int[] subjectIds)
Deletes the given set of users, including both the Subject and Principal objects associated with
those users. |
void |
deployPackages(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds,
int[] packageVersionIds)
Deploys packages on the specified resources. |
void |
deployPackagesWithNote(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds,
int[] packageVersionIds,
String requestNotes)
Deploys packages on the specified resources. |
int |
disableAlertDefinitions(org.rhq.core.domain.auth.Subject subject,
int[] alertDefinitionIds)
|
void |
disableMeasurementTemplates(org.rhq.core.domain.auth.Subject subject,
int[] measurementDefinitionIds)
|
void |
disableSchedulesForCompatibleGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] measurementDefinitionIds)
|
void |
disableSchedulesForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] measurementDefinitionIds)
|
int |
enableAlertDefinitions(org.rhq.core.domain.auth.Subject subject,
int[] alertDefinitionIds)
|
void |
enableMeasurementTemplates(org.rhq.core.domain.auth.Subject subject,
int[] measurementDefinitionIds)
|
void |
enableSchedulesForCompatibleGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] measurementDefinitionIds)
|
void |
enableSchedulesForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] measurementDefinitionIds)
|
org.rhq.core.domain.sync.ExportReport |
exportAllSubsystems(org.rhq.core.domain.auth.Subject subject)
This exports the configuration data of all supported subsystems in RHQ. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.AlertDefinition> |
findAlertDefinitionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.AlertDefinitionCriteria criteria)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> |
findAlertsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.AlertCriteria criteria)
|
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.measurement.Availability> |
findAvailabilityForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.util.PageControl pc)
|
List<org.rhq.core.domain.measurement.MeasurementBaseline> |
findBaselinesForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
|
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.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.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.measurement.calltime.CallTimeDataComposite> |
findCallTimeDataForResource(org.rhq.core.domain.auth.Subject subject,
int scheduleId,
long beginTime,
long endTime,
org.rhq.core.domain.util.PageControl pc)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> |
findChildResources(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.util.PageControl pageControl)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.CreateResourceHistory> |
findCreateChildResourceHistory(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
org.rhq.core.domain.util.PageControl pageControl)
Returns a pagination enabled list of requests for the creation of new child resources to the specified parent. |
List<org.rhq.core.domain.measurement.MeasurementDataTrait> |
findCurrentTraitsForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.measurement.DisplayType displayType)
|
List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> |
findDataForCompatibleGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int definitionId,
long beginTime,
long endTime,
int numPoints)
|
List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> |
findDataForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] definitionIds,
long beginTime,
long endTime,
int numPoints)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.DeleteResourceHistory> |
findDeleteChildResourceHistory(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
org.rhq.core.domain.util.PageControl pageControl)
Returns a pagination enabled list of requests to delete a child resource on the specified parent. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.event.Event> |
findEventsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.EventCriteria criteria)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.GroupOperationHistory> |
findGroupOperationHistoriesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.GroupOperationHistoryCriteria criteria)
|
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)
|
Set<org.rhq.core.domain.measurement.MeasurementData> |
findLiveData(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] definitionIds)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.MeasurementDefinition> |
findMeasurementDefinitionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.MeasurementDefinitionCriteria criteria)
|
List<org.rhq.core.domain.operation.OperationDefinition> |
findOperationDefinitionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.OperationDefinitionCriteria criteria)
|
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.util.PageList<org.rhq.core.domain.content.PackageVersion> |
findPackageVersionsInRepo(org.rhq.core.domain.auth.Subject subject,
int repoId,
String filter,
org.rhq.core.domain.util.PageControl pc)
Returns the set of package versions that can currently be accessed via the given repo. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.PackageVersion> |
findPackageVersionsInRepoByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.PackageVersionCriteria criteria)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.composite.ProblemResourceComposite> |
findProblemResources(org.rhq.core.domain.auth.Subject subject,
long oldestDate,
org.rhq.core.domain.util.PageControl pc)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.Repo> |
findRepos(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.util.PageControl pc)
Returns all imported repos in the server. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.Repo> |
findReposByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.RepoCriteria criteria)
Returns all repos that match the given criteria. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.ResourceGroup> |
findResourceGroupsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceGroupCriteria criteria)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.ResourceGroup> |
findResourceGroupsForRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
org.rhq.core.domain.util.PageControl pc)
|
List<org.rhq.core.domain.resource.Resource> |
findResourceLineage(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Returns the lineage of the Resource with the specified id. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.ResourceOperationHistory> |
findResourceOperationHistoriesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceOperationHistoryCriteria criteria)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> |
findResourcesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceCriteria criteria)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.ResourceType> |
findResourceTypesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceTypeCriteria criteria)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> |
findRolesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.RoleCriteria criteria)
|
List<org.rhq.core.domain.operation.bean.GroupOperationSchedule> |
findScheduledGroupOperations(org.rhq.core.domain.auth.Subject subject,
int groupId)
|
List<org.rhq.core.domain.operation.bean.ResourceOperationSchedule> |
findScheduledResourceOperations(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Returns the list of scheduled operations for the given resource. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.MeasurementSchedule> |
findSchedulesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.MeasurementScheduleCriteria criteria)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> |
findSubjectAssignedRoles(org.rhq.core.domain.auth.Subject subject,
int subjectId,
org.rhq.core.domain.util.PageControl pc)
Get all roles assigned for a certain subject |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.auth.Subject> |
findSubjectsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.SubjectCriteria criteria)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> |
findSubjectUnassignedRoles(org.rhq.core.domain.auth.Subject subject,
int subjectId,
org.rhq.core.domain.util.PageControl pc)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> |
findSubscribedResources(org.rhq.core.domain.auth.Subject subject,
int repoId,
org.rhq.core.domain.util.PageControl pc)
Gets all resources that are subscribed to the given repo. |
List<org.rhq.core.domain.content.transfer.SubscribedRepo> |
findSubscriptions(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Get a list of truncated Repo objects that represent the subscriptions for the specified resource. |
List<org.rhq.core.domain.measurement.MeasurementDataTrait> |
findTraits(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int definitionId)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.MeasurementDataTrait> |
findTraitsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.MeasurementDataTraitCriteria criteria)
|
MeasurementAggregate |
getAggregate(org.rhq.core.domain.auth.Subject subject,
int scheduleId,
long startTime,
long endTime)
|
org.rhq.core.domain.alert.AlertDefinition |
getAlertDefinition(org.rhq.core.domain.auth.Subject subject,
int alertDefinitionId)
|
String[] |
getAlertNotificationConfigurationPreview(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.alert.notification.AlertNotification[] alertNotifications)
|
List<org.rhq.core.domain.bundle.BundleType> |
getAllBundleTypes(org.rhq.core.domain.auth.Subject subject)
|
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.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.configuration.Configuration |
getConfiguration(org.rhq.core.domain.auth.Subject subject,
int configurationId)
|
org.rhq.core.domain.measurement.Availability |
getCurrentAvailabilityForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Gets the last known Availability for the given resource - which includes whether it is currently up (i.e. |
org.rhq.core.domain.configuration.group.GroupPluginConfigurationUpdate |
getGroupPluginConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int configurationUpdateId)
|
org.rhq.core.domain.configuration.group.GroupResourceConfigurationUpdate |
getGroupResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int configurationUpdateId)
|
org.rhq.core.domain.sync.ImportConfigurationDefinition |
getImportConfigurationDefinition(String importerClass)
Returns the configuration definition of the import for synchronizer of given type. |
List<org.rhq.core.domain.sync.ImportConfigurationDefinition> |
getImportConfigurationDefinitionOfAllSynchronizers()
Returns the configuration definitions of all known importers. |
org.rhq.core.domain.content.PackageVersion |
getLatestPackageVersion(org.rhq.core.domain.auth.Subject subject,
int packageId,
int repoId)
Returns the latest package version of the supplied package. |
org.rhq.core.domain.configuration.PluginConfigurationUpdate |
getLatestPluginConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int resourceId)
|
org.rhq.core.domain.configuration.ResourceConfigurationUpdate |
getLatestResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int resourceId)
|
org.rhq.core.domain.measurement.ResourceAvailability |
getLiveResourceAvailability(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Returns the availability of the resource with the specified id. |
org.rhq.core.domain.configuration.Configuration |
getLiveResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
boolean pingAgentFirst)
Get the currently live resource configuration for the Resource with the given id. |
org.rhq.core.domain.measurement.MeasurementDefinition |
getMeasurementDefinition(org.rhq.core.domain.auth.Subject subject,
int definitionId)
|
byte[] |
getPackageBytes(org.rhq.core.domain.auth.Subject subject,
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.configuration.definition.ConfigurationDefinition |
getPackageTypeConfigurationDefinition(org.rhq.core.domain.auth.Subject subject,
int packageTypeId)
Return the deploy configuration definition for the PackageType with the
specified id. |
org.rhq.core.domain.resource.Resource |
getParentResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
|
org.rhq.core.domain.configuration.Configuration |
getPluginConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Get the current plugin configuration for the Resource with the given id, or null if the
resource's plugin configuration is not yet initialized. |
org.rhq.core.domain.configuration.definition.ConfigurationDefinition |
getPluginConfigurationDefinitionForResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
Return the plugin configuration definition for the ResourceType with the
specified id. |
org.rhq.core.domain.common.ProductInfo |
getProductInfo(org.rhq.core.domain.auth.Subject subject)
Provides product information suitable for "About" details. |
org.rhq.core.domain.content.Repo |
getRepo(org.rhq.core.domain.auth.Subject subject,
int repoId)
Returns the repo with the given id; throws an error if one does not exist at that id. |
org.rhq.core.domain.resource.Resource |
getResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Returns the Resource with the specified id. |
org.rhq.core.domain.configuration.Configuration |
getResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Get the current Resource configuration. |
org.rhq.core.domain.configuration.definition.ConfigurationDefinition |
getResourceConfigurationDefinitionForResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
Return the resource configuration definition for the ResourceType with the
specified id. |
org.rhq.core.domain.configuration.definition.ConfigurationDefinition |
getResourceConfigurationDefinitionWithTemplatesForResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
Return the resource configuration definition for the ResourceType with the
specified id. |
org.rhq.core.domain.resource.group.ResourceGroup |
getResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId)
|
org.rhq.core.domain.resource.group.composite.ResourceGroupComposite |
getResourceGroupComposite(org.rhq.core.domain.auth.Subject subject,
int groupId)
|
Map<Integer,String> |
getResourcesAncestry(org.rhq.core.domain.auth.Subject subject,
Integer[] resourceIds,
org.rhq.core.domain.resource.ResourceAncestryFormat format)
Resource.ancestry is an encoded value that holds the resource's parental ancestry. |
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. |
org.rhq.core.domain.resource.ResourceType |
getResourceTypeById(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
|
org.rhq.core.domain.resource.ResourceType |
getResourceTypeByNameAndPlugin(org.rhq.core.domain.auth.Subject subject,
String name,
String plugin)
|
org.rhq.core.domain.authz.Role |
getRole(org.rhq.core.domain.auth.Subject subject,
int roleId)
Returns the role with the given ID |
org.rhq.core.domain.common.ServerDetails |
getServerDetails(org.rhq.core.domain.auth.Subject subject)
Provides details (such as product version) of the server processing the request. |
org.rhq.core.domain.event.EventSeverity[] |
getSeverityBuckets(org.rhq.core.domain.auth.Subject subject,
int resourceId,
long begin,
long end,
int numBuckets)
|
org.rhq.core.domain.event.EventSeverity[] |
getSeverityBucketsForAutoGroup(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int resourceTypeId,
long begin,
long end,
int numBuckets)
|
org.rhq.core.domain.event.EventSeverity[] |
getSeverityBucketsForCompGroup(org.rhq.core.domain.auth.Subject subject,
int resourceGroupId,
long begin,
long end,
int numBuckets)
|
URL |
getSnapshotReport(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String name,
String description)
Asks that a snapshot report be taken of the given resource. |
org.rhq.core.domain.auth.Subject |
getSubjectByName(String username)
Looks up the existing subject using the given username. |
org.rhq.core.domain.auth.Subject |
getSubjectByNameAndSessionId(String username,
int sessionId)
Looks up the Subject for a current RHQ session by username and sessionId. |
Properties |
getSystemConfiguration(org.rhq.core.domain.auth.Subject subject)
|
org.rhq.core.domain.common.composite.SystemSettings |
getSystemSettings(org.rhq.core.domain.auth.Subject subject)
Get the server cloud configuration. |
void |
ignoreResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
Analogous to the GUI feature Ignore Resources in the auto discovery queue. |
org.rhq.core.domain.sync.ImportReport |
importAllSubsystems(org.rhq.core.domain.auth.Subject subject,
byte[] exportFile,
List<org.rhq.core.domain.sync.ImportConfiguration> importerConfigurations)
Imports everything from the export file. |
void |
importResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
Analogous to the GUI feature Import Resources in the auto discovery queue. |
boolean |
isGroupResourceConfigurationUpdateInProgress(org.rhq.core.domain.auth.Subject subject,
int resourceGroupId)
|
boolean |
isResourceConfigurationUpdateInProgress(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Get whether the the specified resource is in the process of updating its configuration. |
org.rhq.core.domain.auth.Subject |
login(String username,
String password)
Logs a user into the system. |
void |
logout(org.rhq.core.domain.auth.Subject subject)
Logs out a user. |
org.rhq.core.domain.resource.Resource |
manuallyAddResource(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId,
int parentResourceId,
org.rhq.core.domain.configuration.Configuration pluginConfiguration)
Manually Add the resource of the specified type to inventory using the specified plugin configuration (i.e. |
void |
purgeBundleDestination(org.rhq.core.domain.auth.Subject subject,
int bundleDestinationId)
Purges the destination's live deployment content from the remote platforms. |
int |
removeAlertDefinitions(org.rhq.core.domain.auth.Subject subject,
int[] alertDefinitionIds)
|
void |
removeResourceGroupsFromRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] groupIds)
Removes the given resource groups from the given role. |
void |
removeResourcesFromGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] resourceIds)
|
void |
removeRolesFromResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] roleIds)
|
void |
removeRolesFromSubject(org.rhq.core.domain.auth.Subject subject,
int subjectId,
int[] roleIds)
Disassociates particular roles from a subject. |
void |
removeSubjectsFromRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] subjectIds)
Dissociate particular subjects from a role. |
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.operation.bean.GroupOperationSchedule |
scheduleGroupOperation(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] executionOrderResourceIds,
boolean haltOnFailure,
String operationName,
org.rhq.core.domain.configuration.Configuration parameters,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
String description)
|
int |
scheduleGroupResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int compatibleGroupId,
Map<Integer,org.rhq.core.domain.configuration.Configuration> newResourceConfigurationMap)
|
org.rhq.core.domain.operation.bean.ResourceOperationSchedule |
scheduleResourceOperation(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String operationName,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
org.rhq.core.domain.configuration.Configuration parameters,
String description)
Schedules an operation for execution on the given resource. |
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. |
void |
setAssignedResourceGroups(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] groupIds)
|
void |
setAssignedSubjectRoles(org.rhq.core.domain.auth.Subject subject,
int subjectId,
int[] roleIds)
Sets the set of roles assigned to a subject. |
void |
setRecursive(org.rhq.core.domain.auth.Subject subject,
int groupId,
boolean isRecursive)
|
void |
setSystemConfiguration(org.rhq.core.domain.auth.Subject subject,
Properties properties,
boolean skipValidation)
|
void |
setSystemSettings(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.composite.SystemSettings settings)
Set the server cloud configuration. |
void |
subscribeResourceToRepos(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] repoIds)
Subscribes the identified resource to the set of identified repos. |
int |
synchronizeRepos(org.rhq.core.domain.auth.Subject subject,
int[] repoIds)
|
org.rhq.core.domain.configuration.Configuration |
translateResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.configuration.Configuration configuration,
boolean fromStructured)
|
void |
unignoreResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
Analogous to the GUI feature Unignore Resources in the auto discovery queue. |
List<Integer> |
uninventoryResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
Removes these resources from inventory. |
void |
unscheduleGroupOperation(org.rhq.core.domain.auth.Subject subject,
String jobId,
int resourceGroupId)
Unschedules the group operation identified with the given job ID. |
void |
unscheduleResourceOperation(org.rhq.core.domain.auth.Subject subject,
String jobId,
int resourceId)
Unschedules the resource operation identified with the given job ID. |
void |
unsubscribeResourceFromRepos(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] repoIds)
Unsubscribes the identified resource from the set of identified repos. |
void |
updateMeasurementTemplates(org.rhq.core.domain.auth.Subject subject,
int[] measurementDefinitionIds,
long collectionInterval)
|
org.rhq.core.domain.configuration.PluginConfigurationUpdate |
updatePluginConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.configuration.Configuration newConfiguration)
Updates the plugin configuration used to connect and communicate with the resource. |
org.rhq.core.domain.content.Repo |
updateRepo(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.content.Repo repo)
Update an existing Repo object's basic fields, like name, description, etc. |
org.rhq.core.domain.resource.Resource |
updateResource(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.Resource resource)
Update resource's editable properties (name, description, location). |
org.rhq.core.domain.configuration.ResourceConfigurationUpdate |
updateResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.configuration.Configuration newConfiguration)
This method is called when a user has requested to change the resource configuration for an existing resource. |
org.rhq.core.domain.resource.group.ResourceGroup |
updateResourceGroup(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.group.ResourceGroup newResourceGroup)
|
org.rhq.core.domain.authz.Role |
updateRole(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.authz.Role role)
Updates the given role, excluding the subjects and groups. |
void |
updateSchedule(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.measurement.MeasurementSchedule schedule)
|
void |
updateSchedulesForCompatibleGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] measurementDefinitionIds,
long collectionInterval)
|
void |
updateSchedulesForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] measurementDefinitionIds,
long collectionInterval)
|
org.rhq.core.domain.auth.Subject |
updateSubject(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.auth.Subject subjectToModify)
Updates an existing subject with new data. |
void |
validate(org.rhq.core.domain.auth.Subject subject,
byte[] exportFile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebservicesManagerBean()
| Method Detail |
|---|
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.Alert> findAlertsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.AlertCriteria criteria)
findAlertsByCriteria in interface AlertManagerRemote
public int deleteAlerts(org.rhq.core.domain.auth.Subject subject,
int[] alertIds)
deleteAlerts in interface AlertManagerRemote
public int deleteAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
deleteAlertsByContext in interface AlertManagerRemote
public int acknowledgeAlerts(org.rhq.core.domain.auth.Subject subject,
int[] alertIds)
acknowledgeAlerts in interface AlertManagerRemote
public int acknowledgeAlertsByContext(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.EntityContext context)
acknowledgeAlertsByContext in interface AlertManagerRemote
public org.rhq.core.domain.alert.AlertDefinition getAlertDefinition(org.rhq.core.domain.auth.Subject subject,
int alertDefinitionId)
getAlertDefinition in interface AlertDefinitionManagerRemote
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.alert.AlertDefinition> findAlertDefinitionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.AlertDefinitionCriteria criteria)
findAlertDefinitionsByCriteria in interface AlertDefinitionManagerRemote
public int enableAlertDefinitions(org.rhq.core.domain.auth.Subject subject,
int[] alertDefinitionIds)
enableAlertDefinitions in interface AlertDefinitionManagerRemote
public int disableAlertDefinitions(org.rhq.core.domain.auth.Subject subject,
int[] alertDefinitionIds)
disableAlertDefinitions in interface AlertDefinitionManagerRemote
public int removeAlertDefinitions(org.rhq.core.domain.auth.Subject subject,
int[] alertDefinitionIds)
removeAlertDefinitions in interface AlertDefinitionManagerRemote
public String[] getAlertNotificationConfigurationPreview(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.alert.notification.AlertNotification[] alertNotifications)
getAlertNotificationConfigurationPreview in interface AlertDefinitionManagerRemote
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.Availability> findAvailabilityForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.util.PageControl pc)
findAvailabilityForResource in interface AvailabilityManagerRemote
public org.rhq.core.domain.measurement.Availability getCurrentAvailabilityForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
AvailabilityManagerRemote
getCurrentAvailabilityForResource in interface AvailabilityManagerRemote
public org.rhq.core.domain.bundle.ResourceTypeBundleConfiguration getResourceTypeBundleConfiguration(org.rhq.core.domain.auth.Subject subject,
int compatGroupId)
throws Exception
BundleManagerRemote
getResourceTypeBundleConfiguration in interface BundleManagerRemotesubject - the user making the requestcompatGroupId - the ID for a compatible group whose type's bundle config is to be returned
Exception
public 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 bits
Exception
public 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
BundleManagerRemote
addBundleFileViaByteArray 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
BundleManagerRemote
addBundleFileViaURL 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
BundleManagerRemote
addBundleFileViaPackageVersion in interface BundleManagerRemoteExceptionaddBundleFile(Subject, int, String, String, Architecture, InputStream, boolean)}
public 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
BundleManagerRemote
createBundleDeployment 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.
Exception
public 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
BundleManagerRemote
createBundleDestination 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 destination
Exception
public org.rhq.core.domain.bundle.BundleVersion createBundleVersionViaRecipe(org.rhq.core.domain.auth.Subject subject,
String recipe)
throws Exception
BundleManagerRemote
createBundleVersionViaRecipe in interface BundleManagerRemoterecipe - the recipe that defines the bundle version to be created
Exception
public org.rhq.core.domain.bundle.BundleVersion createBundleVersionViaFile(org.rhq.core.domain.auth.Subject subject,
File distributionFile)
throws Exception
BundleManagerRemote
createBundleVersionViaFile in interface BundleManagerRemotedistributionFile - a local Bundle Distribution file. It must be read accessible by the RHQ server process.
Exception
public 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 file
Exception
public 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.
Exception
public void deleteBundles(org.rhq.core.domain.auth.Subject subject,
int[] bundleIds)
throws Exception
BundleManagerRemote
deleteBundles in interface BundleManagerRemotebundleIds - IDs of all bundles to be deleted
Exception - if any part of the removal fails.
public void deleteBundle(org.rhq.core.domain.auth.Subject subject,
int bundleId)
throws Exception
BundleManagerRemote
deleteBundle in interface BundleManagerRemoteException - if any part of the removal fails.
public void deleteBundleVersion(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
boolean deleteBundleIfEmpty)
throws Exception
BundleManagerRemote
deleteBundleVersion 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 purged
Exception - if any part of the removal fails.
public 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 BundleManagerRemote
public 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 BundleManagerRemote
public 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 BundleManagerRemote
public 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 BundleManagerRemote
public 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 BundleManagerRemote
public 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 BundleManagerRemote
public 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 List<org.rhq.core.domain.bundle.BundleType> getAllBundleTypes(org.rhq.core.domain.auth.Subject subject)
getAllBundleTypes in interface BundleManagerRemote
public org.rhq.core.domain.bundle.BundleType getBundleType(org.rhq.core.domain.auth.Subject subject,
String bundleTypeName)
getBundleType in interface BundleManagerRemote
public Set<String> getBundleVersionFilenames(org.rhq.core.domain.auth.Subject subject,
int bundleVersionId,
boolean withoutBundleFileOnly)
throws Exception
BundleManagerRemote
getBundleVersionFilenames 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.
Exception
public org.rhq.core.domain.bundle.BundleDeployment scheduleBundleDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDeploymentId,
boolean isCleanDeployment)
throws Exception
BundleManagerRemote
scheduleBundleDeployment 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.
Exception
public org.rhq.core.domain.bundle.BundleDeployment scheduleRevertBundleDeployment(org.rhq.core.domain.auth.Subject subject,
int bundleDestinationId,
String deploymentDescription,
boolean isCleanDeployment)
throws Exception
BundleManagerRemote
scheduleRevertBundleDeployment 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.
Exception
public void purgeBundleDestination(org.rhq.core.domain.auth.Subject subject,
int bundleDestinationId)
throws Exception
BundleManagerRemote
purgeBundleDestination in interface BundleManagerRemotesubject - user that must have proper permissionsbundleDestinationId - the ID of the destination that is to be purged of bundle content
Exception
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.calltime.CallTimeDataComposite> findCallTimeDataForResource(org.rhq.core.domain.auth.Subject subject,
int scheduleId,
long beginTime,
long endTime,
org.rhq.core.domain.util.PageControl pc)
findCallTimeDataForResource in interface CallTimeDataManagerRemote
public org.rhq.core.domain.configuration.Configuration getConfiguration(org.rhq.core.domain.auth.Subject subject,
int configurationId)
public org.rhq.core.domain.configuration.group.GroupPluginConfigurationUpdate getGroupPluginConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int configurationUpdateId)
getGroupPluginConfigurationUpdate in interface ConfigurationManagerRemote
public org.rhq.core.domain.configuration.group.GroupResourceConfigurationUpdate getGroupResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int configurationUpdateId)
getGroupResourceConfigurationUpdate in interface ConfigurationManagerRemote
public org.rhq.core.domain.configuration.PluginConfigurationUpdate getLatestPluginConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int resourceId)
getLatestPluginConfigurationUpdate in interface ConfigurationManagerRemote
public org.rhq.core.domain.configuration.ResourceConfigurationUpdate getLatestResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int resourceId)
getLatestResourceConfigurationUpdate in interface ConfigurationManagerRemote
public org.rhq.core.domain.configuration.Configuration getLiveResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
boolean pingAgentFirst)
throws Exception
ConfigurationManagerRemoteResource with the given id. This actually asks for
the up-to-date configuration directly from the agent. An exception will be thrown if communications with the
agent cannot be made.
getLiveResourceConfiguration in interface ConfigurationManagerRemotesubject - The logged in user's subject.resourceId - resourceId
Exception - if failed to get the configuration from the agent
public org.rhq.core.domain.configuration.Configuration getPluginConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId)
ConfigurationManagerRemoteResource with the given id, or null if the
resource's plugin configuration is not yet initialized.
getPluginConfiguration in interface ConfigurationManagerRemoteresourceId - Resource Id
Resource with the given id, or null if the
resource's configuration is not yet initialized
public org.rhq.core.domain.configuration.definition.ConfigurationDefinition getPluginConfigurationDefinitionForResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
ConfigurationManagerRemoteResourceType with the
specified id.
getPluginConfigurationDefinitionForResourceType in interface ConfigurationManagerRemotesubject - the user who is requesting the plugin configuration definitionresourceTypeId - identifies the resource type whose plugin configuration definition is being requested
ResourceType with the
specified id, or null if the ResourceType does not define a plugin configuration
public org.rhq.core.domain.configuration.Configuration getResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId)
ConfigurationManagerRemote
getResourceConfiguration in interface ConfigurationManagerRemotesubject - The logged in user's subject.resourceId - A resource id.
public org.rhq.core.domain.configuration.definition.ConfigurationDefinition getResourceConfigurationDefinitionForResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
ConfigurationManagerRemoteResourceType with the
specified id.
getResourceConfigurationDefinitionForResourceType in interface ConfigurationManagerRemotesubject - the user who is requesting the resource configuration definitionresourceTypeId - identifies the resource type whose resource configuration definition is being requested
ResourceType with the
specified id, or null if the ResourceType does not define a resource configuration
public org.rhq.core.domain.configuration.definition.ConfigurationDefinition getResourceConfigurationDefinitionWithTemplatesForResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
ConfigurationManagerRemoteResourceType with the
specified id. The templates will be loaded in the definition returned from this call.
getResourceConfigurationDefinitionWithTemplatesForResourceType in interface ConfigurationManagerRemotesubject - the user who is requesting the resource configuration definitionresourceTypeId - identifies the resource type whose resource configuration definition is being requested
ResourceType with the
specified id, or null if the ResourceType does not define a resource configuration
public boolean isGroupResourceConfigurationUpdateInProgress(org.rhq.core.domain.auth.Subject subject,
int resourceGroupId)
isGroupResourceConfigurationUpdateInProgress in interface ConfigurationManagerRemote
public boolean isResourceConfigurationUpdateInProgress(org.rhq.core.domain.auth.Subject subject,
int resourceId)
ConfigurationManagerRemote
isResourceConfigurationUpdateInProgress in interface ConfigurationManagerRemotesubject - The logged in user's subject.resourceId - A resource id.
public int scheduleGroupResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int compatibleGroupId,
Map<Integer,org.rhq.core.domain.configuration.Configuration> newResourceConfigurationMap)
scheduleGroupResourceConfigurationUpdate in interface ConfigurationManagerRemote
public org.rhq.core.domain.configuration.PluginConfigurationUpdate updatePluginConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.configuration.Configuration newConfiguration)
throws ResourceNotFoundException
ConfigurationManagerRemote
newConfiguration is usually a modified version of a configuration returned by
ConfigurationManagerRemote.getPluginConfiguration(Subject, int).
updatePluginConfiguration in interface ConfigurationManagerRemotesubject - The logged in user's subject.resourceId - a Resource idnewConfiguration - the new plugin configuration
ResourceNotFoundException
public org.rhq.core.domain.configuration.ResourceConfigurationUpdate updateResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.configuration.Configuration newConfiguration)
throws ResourceNotFoundException,
ConfigurationUpdateStillInProgressException
ConfigurationManagerRemoteThis will not wait for the agent to finish the configuration update. This will return after the request is
sent. Once the agent finishes with the request, it will send the completed request information to
#completedResourceConfigurationUpdate(AbstractResourceConfigurationUpdate).
updateResourceConfiguration in interface ConfigurationManagerRemotesubject - The logged in user's subject.resourceId - identifies the resource to be updatednewConfiguration - the resource's desired new configuration
ResourceNotFoundException
ConfigurationUpdateStillInProgressException
public org.rhq.core.domain.configuration.definition.ConfigurationDefinition getPackageTypeConfigurationDefinition(org.rhq.core.domain.auth.Subject subject,
int packageTypeId)
ConfigurationManagerRemotePackageType with the
specified id.
getPackageTypeConfigurationDefinition in interface ConfigurationManagerRemotesubject - the user who is requesting the plugin configuration definitionpackageTypeId - identifies the package type whose configuration definition is being requested
PackageType with the
specified id.
public org.rhq.core.domain.configuration.Configuration translateResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.configuration.Configuration configuration,
boolean fromStructured)
throws ResourceNotFoundException
translateResourceConfiguration in interface ConfigurationManagerRemoteResourceNotFoundException
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 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.
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 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.
public void deletePackages(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] installedPackageIds,
String requestNotes)
ContentManagerRemote
deletePackages in interface ContentManagerRemotesubject - The logged in subjectresourceId - identifies the resource from which the packages should be deletedinstalledPackageIds - identifies all of the packages to be deleted
public void deletePackageVersion(org.rhq.core.domain.auth.Subject subject,
int packageVersionId)
ContentManagerRemote
deletePackageVersion in interface ContentManagerRemotesubject - The logged in subject
public void deployPackages(org.rhq.core.domain.auth.Subject subject,
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 ContentManagerRemotesubject - 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 subject,
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 ContentManagerRemotesubject - The logged in subjectresourceIds - identifies the resources against which the package will be deployedpackageVersionIds - packageVersions we want to installrequestNotes - request notespublic List<org.rhq.core.domain.content.Architecture> findArchitectures(org.rhq.core.domain.auth.Subject subject)
ContentManagerRemote
findArchitectures in interface ContentManagerRemotesubject - The logged in subject
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 ContentManagerRemotecriteria - InstalledPackageCriteria
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 ContentManagerRemotesubject - The logged in subjectresourceTypeName - The resource type in question
ResourceTypeNotFoundException
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 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
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 ContentManagerRemote
public org.rhq.core.domain.content.InstalledPackage getBackingPackageForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
ContentManagerRemote
getBackingPackageForResource in interface ContentManagerRemoteresourceId - a valid resource
public byte[] getPackageBytes(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int installedPackageId)
ContentManagerRemote
getPackageBytes in interface ContentManagerRemote
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 ContentManagerRemote
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 ContentManagerRemote
public void ignoreResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
DiscoveryBossRemoteResourceManagerRemote.findResourcesByCriteria(org.rhq.core.domain.auth.Subject, org.rhq.core.domain.criteria.ResourceCriteria).
ignoreResources in interface DiscoveryBossRemote
public void importResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
DiscoveryBossRemoteResourceManagerRemote.findResourcesByCriteria(org.rhq.core.domain.auth.Subject, org.rhq.core.domain.criteria.ResourceCriteria).
importResources in interface DiscoveryBossRemote
public void unignoreResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
DiscoveryBossRemoteResourceManagerRemote.findResourcesByCriteria(org.rhq.core.domain.auth.Subject, org.rhq.core.domain.criteria.ResourceCriteria).
unignoreResources in interface DiscoveryBossRemote
public org.rhq.core.domain.resource.Resource manuallyAddResource(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId,
int parentResourceId,
org.rhq.core.domain.configuration.Configuration pluginConfiguration)
throws Exception
DiscoveryBossRemote
manuallyAddResource in interface DiscoveryBossRemotesubject - the user making the requestresourceTypeId - the type of resource to be manually discoveredparentResourceId - the id of the resource that will be the parent of the manually discovered resourcepluginConfiguration - the properties that should be used to connect to the underlying managed resource
Exception - if connecting to the underlying managed resource failed due to invalid plugin configuration or
if the manual discovery fails for any reason.
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.event.Event> findEventsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.EventCriteria criteria)
findEventsByCriteria in interface EventManagerRemote
public org.rhq.core.domain.event.EventSeverity[] getSeverityBuckets(org.rhq.core.domain.auth.Subject subject,
int resourceId,
long begin,
long end,
int numBuckets)
getSeverityBuckets in interface EventManagerRemote
public org.rhq.core.domain.event.EventSeverity[] getSeverityBucketsForAutoGroup(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int resourceTypeId,
long begin,
long end,
int numBuckets)
getSeverityBucketsForAutoGroup in interface EventManagerRemote
public org.rhq.core.domain.event.EventSeverity[] getSeverityBucketsForCompGroup(org.rhq.core.domain.auth.Subject subject,
int resourceGroupId,
long begin,
long end,
int numBuckets)
getSeverityBucketsForCompGroup in interface EventManagerRemote
public List<org.rhq.core.domain.measurement.MeasurementBaseline> findBaselinesForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
findBaselinesForResource in interface MeasurementBaselineManagerRemote
public List<org.rhq.core.domain.measurement.MeasurementDataTrait> findCurrentTraitsForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.measurement.DisplayType displayType)
findCurrentTraitsForResource in interface MeasurementDataManagerRemote
public List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> findDataForCompatibleGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int definitionId,
long beginTime,
long endTime,
int numPoints)
findDataForCompatibleGroup in interface MeasurementDataManagerRemote
public List<List<org.rhq.core.domain.measurement.composite.MeasurementDataNumericHighLowComposite>> findDataForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] definitionIds,
long beginTime,
long endTime,
int numPoints)
findDataForResource in interface MeasurementDataManagerRemote
public Set<org.rhq.core.domain.measurement.MeasurementData> findLiveData(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] definitionIds)
findLiveData in interface MeasurementDataManagerRemote
public List<org.rhq.core.domain.measurement.MeasurementDataTrait> findTraits(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int definitionId)
findTraits in interface MeasurementDataManagerRemote
public MeasurementAggregate getAggregate(org.rhq.core.domain.auth.Subject subject,
int scheduleId,
long startTime,
long endTime)
getAggregate in interface MeasurementDataManagerRemote
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.MeasurementDataTrait> findTraitsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.MeasurementDataTraitCriteria criteria)
findTraitsByCriteria in interface MeasurementDataManagerRemote
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.MeasurementDefinition> findMeasurementDefinitionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.MeasurementDefinitionCriteria criteria)
findMeasurementDefinitionsByCriteria in interface MeasurementDefinitionManagerRemote
public org.rhq.core.domain.measurement.MeasurementDefinition getMeasurementDefinition(org.rhq.core.domain.auth.Subject subject,
int definitionId)
getMeasurementDefinition in interface MeasurementDefinitionManagerRemote
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.composite.ProblemResourceComposite> findProblemResources(org.rhq.core.domain.auth.Subject subject,
long oldestDate,
org.rhq.core.domain.util.PageControl pc)
findProblemResources in interface MeasurementProblemManagerRemote
public void disableSchedulesForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] measurementDefinitionIds)
disableSchedulesForResource in interface MeasurementScheduleManagerRemote
public void disableSchedulesForCompatibleGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] measurementDefinitionIds)
disableSchedulesForCompatibleGroup in interface MeasurementScheduleManagerRemote
public void disableMeasurementTemplates(org.rhq.core.domain.auth.Subject subject,
int[] measurementDefinitionIds)
disableMeasurementTemplates in interface MeasurementScheduleManagerRemote
public void enableSchedulesForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] measurementDefinitionIds)
enableSchedulesForResource in interface MeasurementScheduleManagerRemote
public void enableSchedulesForCompatibleGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] measurementDefinitionIds)
enableSchedulesForCompatibleGroup in interface MeasurementScheduleManagerRemote
public void enableMeasurementTemplates(org.rhq.core.domain.auth.Subject subject,
int[] measurementDefinitionIds)
enableMeasurementTemplates in interface MeasurementScheduleManagerRemote
public void updateSchedule(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.measurement.MeasurementSchedule schedule)
updateSchedule in interface MeasurementScheduleManagerRemote
public void updateSchedulesForResource(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] measurementDefinitionIds,
long collectionInterval)
updateSchedulesForResource in interface MeasurementScheduleManagerRemote
public void updateSchedulesForCompatibleGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] measurementDefinitionIds,
long collectionInterval)
updateSchedulesForCompatibleGroup in interface MeasurementScheduleManagerRemote
public void updateMeasurementTemplates(org.rhq.core.domain.auth.Subject subject,
int[] measurementDefinitionIds,
long collectionInterval)
updateMeasurementTemplates in interface MeasurementScheduleManagerRemote
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.measurement.MeasurementSchedule> findSchedulesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.MeasurementScheduleCriteria criteria)
findSchedulesByCriteria in interface MeasurementScheduleManagerRemote
public void cancelOperationHistory(org.rhq.core.domain.auth.Subject subject,
int operationHistoryId,
boolean ignoreAgentErrors)
OperationManagerRemote
Note that this method will handle canceling a resource or group history - depending on what the given
historyId
refers to. If it refers to a group history, it will cancel all the resource invocations for that group
invocation.
If the cancel request succeeds, the history element will be checked against the AlertConditionCacheManager.
cancelOperationHistory in interface OperationManagerRemotesubject - The logged in user's subject.ignoreAgentErrors - if true this will still flag the history items in the database as canceled, even if the
method failed to notify the agent(s) that the operation should be canceled. If false,
this method will not update the history status unless it could successfully tell the agent(s) to
cancel the operation.
public void deleteOperationHistory(org.rhq.core.domain.auth.Subject subject,
int operationHistoryId,
boolean purgeInProgress)
OperationManagerRemote
Note that this method will handle deleting a resource or group history - depending on what the given
historyId
refers to.
deleteOperationHistory in interface OperationManagerRemotesubject - The logged in user's subject.purgeInProgress - if true, even if the operation is in progress, the history entity will be deleted. You
normally do not want to purge operation histories until they are completed, so you normally pass in
false, but a user might want to force it to be purged, in which case the UI will want
to pass in true
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.GroupOperationHistory> findGroupOperationHistoriesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.GroupOperationHistoryCriteria criteria)
findGroupOperationHistoriesByCriteria in interface OperationManagerRemote
public List<org.rhq.core.domain.operation.OperationDefinition> findOperationDefinitionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.OperationDefinitionCriteria criteria)
findOperationDefinitionsByCriteria in interface OperationManagerRemote
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.ResourceOperationHistory> findResourceOperationHistoriesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceOperationHistoryCriteria criteria)
findResourceOperationHistoriesByCriteria in interface OperationManagerRemote
public List<org.rhq.core.domain.operation.bean.GroupOperationSchedule> findScheduledGroupOperations(org.rhq.core.domain.auth.Subject subject,
int groupId)
throws Exception
findScheduledGroupOperations in interface OperationManagerRemoteException
public List<org.rhq.core.domain.operation.bean.ResourceOperationSchedule> findScheduledResourceOperations(org.rhq.core.domain.auth.Subject subject,
int resourceId)
throws Exception
OperationManagerRemote
findScheduledResourceOperations in interface OperationManagerRemoteException - TODO
public org.rhq.core.domain.operation.bean.GroupOperationSchedule scheduleGroupOperation(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] executionOrderResourceIds,
boolean haltOnFailure,
String operationName,
org.rhq.core.domain.configuration.Configuration parameters,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
String description)
throws ScheduleException
scheduleGroupOperation in interface OperationManagerRemoteScheduleException
public org.rhq.core.domain.operation.bean.ResourceOperationSchedule scheduleResourceOperation(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String operationName,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
org.rhq.core.domain.configuration.Configuration parameters,
String description)
throws ScheduleException
OperationManagerRemote
scheduleResourceOperation in interface OperationManagerRemotesubject - The logged in user's subject.resourceId - the resource that is the target of the operationoperationName - the actual operation to invokedelay - the number of milliseconds to delay this operation, 0 for immediate start.repeatInterval - the number of milliseconds after completion to repeat this operation. 0 for no repeat.repeatCount - the number of times to repeat this operation. -1 infinite, 0 for no repeat.timeout - the number of seconds before this operation will fail due to timeout. 0 for no timeout.parameters - the names parameters for the operation.description - user-entered description of the job to be scheduled
ScheduleException - TODO
public void unscheduleGroupOperation(org.rhq.core.domain.auth.Subject subject,
String jobId,
int resourceGroupId)
throws UnscheduleException
OperationManagerRemote
unscheduleGroupOperation in interface OperationManagerRemotesubject - the user who is asking to unschedule the operationjobId - identifies the operation to unscheduleresourceGroupId - the ID of the group whose operation is getting unscheduled
UnscheduleException - TODO
public void unscheduleResourceOperation(org.rhq.core.domain.auth.Subject subject,
String jobId,
int resourceId)
throws UnscheduleException
OperationManagerRemote
unscheduleResourceOperation in interface OperationManagerRemotesubject - The logged in user's subject.jobId - identifies the operation to unscheduleresourceId - the ID of the resource whose operation is getting unscheduled
UnscheduleException - TODO
public void addPackageVersionsToRepo(org.rhq.core.domain.auth.Subject subject,
int repoId,
int[] packageVersionIds)
RepoManagerRemote
addPackageVersionsToRepo in interface RepoManagerRemotesubject - The logged in user's subject.repoId - the ID of the repopackageVersionIds - the list of package version IDs to add to the repo
public org.rhq.core.domain.content.Repo createRepo(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.content.Repo repo)
throws RepoException
RepoManagerRemoteRepo. Note that the created repo will not have any content sources assigned and no
resources will be subscribed. It is a virgin repo.
createRepo in interface RepoManagerRemotesubject - The logged in user's subject.repo - a new repo object.
RepoException - if a repo already exists with the same name
public void deleteRepo(org.rhq.core.domain.auth.Subject subject,
int repoId)
RepoManagerRemote
deleteRepo in interface RepoManagerRemotesubject - The logged in user's subject.repoId - identifies the repo to delete
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.Repo> findRepos(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.util.PageControl pc)
RepoManagerRemote
findRepos in interface RepoManagerRemotesubject - user making the requestpc - used for pagination
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.Repo> findReposByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.RepoCriteria criteria)
RepoManagerRemote
findReposByCriteria in interface RepoManagerRemotesubject - user making the querycriteria - describes how the query should function; may not be null
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.PackageVersion> findPackageVersionsInRepo(org.rhq.core.domain.auth.Subject subject,
int repoId,
String filter,
org.rhq.core.domain.util.PageControl pc)
RepoManagerRemote
findPackageVersionsInRepo in interface RepoManagerRemotesubject - The logged in user's subject.repoId - identifies the repofilter - A repo filter.pc - pagination controls
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.PackageVersion> findPackageVersionsInRepoByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.PackageVersionCriteria criteria)
findPackageVersionsInRepoByCriteria in interface RepoManagerRemotecriteria - Caller must add a valid repoId via PackageVersionCriteria.addFilterRepoId(Integer)}
public org.rhq.core.domain.content.PackageVersion getLatestPackageVersion(org.rhq.core.domain.auth.Subject subject,
int packageId,
int repoId)
RepoManagerRemotePackageVersion.DEFAULT_COMPARATOR
getLatestPackageVersion in interface RepoManagerRemotesubject - the authenticated userpackageId - the id of the package to find the latest version for.repoId - the repo where to take the package versions of the package from
public boolean deletePackageVersionsFromRepo(org.rhq.core.domain.auth.Subject subject,
int repoId,
int[] packageVersionIds)
RepoManagerRemoteThe package versions themselves are not deleted until some content source or repository is deleted at which point orphans detection is performed.
deletePackageVersionsFromRepo in interface RepoManagerRemote
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> findSubscribedResources(org.rhq.core.domain.auth.Subject subject,
int repoId,
org.rhq.core.domain.util.PageControl pc)
RepoManagerRemote
findSubscribedResources in interface RepoManagerRemotesubject - The logged in user's subject.
public List<org.rhq.core.domain.content.transfer.SubscribedRepo> findSubscriptions(org.rhq.core.domain.auth.Subject subject,
int resourceId)
RepoManagerRemote
findSubscriptions in interface RepoManagerRemotesubject - The logged in user's subject.resourceId - The id of the resource.
public org.rhq.core.domain.content.Repo getRepo(org.rhq.core.domain.auth.Subject subject,
int repoId)
RepoManagerRemote
getRepo in interface RepoManagerRemotesubject - user whose permissions will be checked for access to the reporepoId - identifies the repo to be retrieved
public void subscribeResourceToRepos(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] repoIds)
RepoManagerRemote
subscribeResourceToRepos in interface RepoManagerRemotesubject - The logged in user's subject.resourceId - The id of the resource to be subscribed.repoIds - A list of repos to which the resource is subscribed.
public void unsubscribeResourceFromRepos(org.rhq.core.domain.auth.Subject subject,
int resourceId,
int[] repoIds)
RepoManagerRemote
unsubscribeResourceFromRepos in interface RepoManagerRemotesubject - The logged in user's subject.resourceId - The id of the resource to be subscribed.repoIds - A list of repos to which the resource is subscribed.
public org.rhq.core.domain.content.Repo updateRepo(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.content.Repo repo)
throws RepoException
RepoManagerRemoteRepo object's basic fields, like name, description, etc. Note that the given
repo's relationships will be ignored and not merged with the existing repo (e.g. is subscribed
resources will not be changed, regardless of what the given repo's subscribed resources set it).
updateRepo in interface RepoManagerRemotesubject - The logged in user's subject.repo - to be updated
RepoException
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 ContentManagerRemote
public int synchronizeRepos(org.rhq.core.domain.auth.Subject subject,
int[] repoIds)
throws Exception
synchronizeRepos in interface RepoManagerRemoteException
public org.rhq.core.domain.resource.CreateResourceHistory createResource(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int resourceTypeId,
String resourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
org.rhq.core.domain.configuration.Configuration resourceConfiguration)
public org.rhq.core.domain.resource.CreateResourceHistory createResource(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int resourceTypeId,
String resourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
org.rhq.core.domain.configuration.Configuration resourceConfiguration,
Integer timeout)
ResourceFactoryManagerRemoteCreateDeletePolicy.BOTH or
CreateDeletePolicy.CREATE_ONLY. If this call is made for a resource type that cannot be created based on
this policy, the plugin container will throw an exception. This call should only be made for resource types that
are defined with a creation data type of ResourceCreationDataType.CONFIGURATION. If this call is made for
a resource type that cannot be created via a configuration, the plugin container will throw an exception.
createResource in interface ResourceFactoryManagerRemotesubject - user requesting the creationparentResourceId - parent resource under which the new resource should be createdresourceTypeId - type of resource to createresourceName - name of the resource being createdpluginConfiguration - optional plugin configuration that may be needed in order to create the new resourceresourceConfiguration - resource configuration for the new resourcetimeout - number of milliseconds before the agent suffers a timeout when creating the resource. If null uses default.
public org.rhq.core.domain.resource.CreateResourceHistory createPackageBackedResource(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
org.rhq.core.domain.configuration.Configuration deploymentTimeConfiguration,
byte[] packageBits)
public org.rhq.core.domain.resource.CreateResourceHistory createPackageBackedResource(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
String packageName,
String packageVersion,
Integer architectureId,
org.rhq.core.domain.configuration.Configuration deploymentTimeConfiguration,
byte[] packageBits,
Integer timeout)
ResourceFactoryManagerRemoteCreateDeletePolicy.BOTH or
CreateDeletePolicy.CREATE_ONLY. If this call is made for a resource type that cannot be created based on
this policy, the plugin container will throw an exception. This call should only be made for resource types that
are defined with a creation data type of ResourceCreationDataType.CONTENT. If this call is made for a
resource type that cannot be created via an package, the plugin container will throw an exception.
createPackageBackedResource in interface ResourceFactoryManagerRemotesubject - user requesting the creationparentResourceId - parent resource under which the new resource should be creatednewResourceTypeId - identifies the type of resource being creatednewResourceName - Ignored, pass null. This is determined from the package.pluginConfiguration - optional plugin configuration that may be needed in order to create the new
resourcepackageName - name of the package that will be created as a result of this resource createpackageVersion - The string version of the package. If null will be set to system timestamp (long)architectureId - Id of the target architecture of the package, null indicates NoArch (any).deploymentTimeConfiguration - dictates how the package will be deployedpackageBits - content of the package to createtimeout - number of milliseconds before the agent suffers a timeout when creating the resource. If null uses default.
public org.rhq.core.domain.resource.CreateResourceHistory createPackageBackedResourceViaPackageVersion(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
org.rhq.core.domain.configuration.Configuration deploymentTimeConfiguration,
int packageVersionId)
public org.rhq.core.domain.resource.CreateResourceHistory createPackageBackedResourceViaPackageVersion(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
int newResourceTypeId,
String newResourceName,
org.rhq.core.domain.configuration.Configuration pluginConfiguration,
org.rhq.core.domain.configuration.Configuration deploymentTimeConfiguration,
int packageVersionId,
Integer timeout)
ResourceFactoryManagerRemoteCreateDeletePolicy.BOTH or
CreateDeletePolicy.CREATE_ONLY. If this call is made for a resource type that cannot be created based on
this policy, the plugin container will throw an exception. This call should only be made for resource types that
are defined with a creation data type of ResourceCreationDataType.CONTENT. If this call is made for a
resource type that cannot be created via an package, the plugin container will throw an exception.
createPackageBackedResourceViaPackageVersion in interface ResourceFactoryManagerRemotesubject - user requesting the creationparentResourceId - parent resource under which the new resource should be creatednewResourceTypeId - identifies the type of resource being creatednewResourceName - Ignored, pass null. This is determined from the package.pluginConfiguration - optional plugin configuration that may be needed in order to create the new
resourcedeploymentTimeConfiguration - dictates how the package will be deployedpackageVersionId - An existing package version to back this resourcetimeout - number of milliseconds before the agent suffers a timeout when creating the resource. If null uses default.
public org.rhq.core.domain.resource.DeleteResourceHistory deleteResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
ResourceFactoryManagerRemote
deleteResource in interface ResourceFactoryManagerRemotesubject - user requesting the deletion. must have resource delete perm on the resource.resourceId - resource being deleted
public List<org.rhq.core.domain.resource.DeleteResourceHistory> deleteResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
ResourceFactoryManagerRemote
deleteResources in interface ResourceFactoryManagerRemotesubject - user requesting the deletion. must have resource delete perm on the resources.resourceIds - the resources being deleted
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.CreateResourceHistory> findCreateChildResourceHistory(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
org.rhq.core.domain.util.PageControl pageControl)
ResourceFactoryManagerRemote
findCreateChildResourceHistory in interface ResourceFactoryManagerRemotesubject - the user making the requestparentResourceId - resource to check for child resource creationsbeginDate - filter used to show only results occurring after this epoch millis parameter, nullableendDate - filter used to show only results occurring before this epoch millis parameter, nullablepageControl - control for pagination
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.DeleteResourceHistory> findDeleteChildResourceHistory(org.rhq.core.domain.auth.Subject subject,
int parentResourceId,
Long beginDate,
Long endDate,
org.rhq.core.domain.util.PageControl pageControl)
ResourceFactoryManagerRemote
findDeleteChildResourceHistory in interface ResourceFactoryManagerRemotesubject - the user making the requestparentResourceId - resource to check for deleted child resourcesbeginDate - filter used to show only results occurring after this epoch millis parameter, nullablepageControl - control for pagination
public List<org.rhq.core.domain.resource.Resource> findResourceLineage(org.rhq.core.domain.auth.Subject subject,
int resourceId)
ResourceManagerRemote
findResourceLineage in interface ResourceManagerRemotesubject - The logged in user's subject.resourceId - the id of a Resource in inventory
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> findResourcesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceCriteria criteria)
findResourcesByCriteria in interface ResourceManagerRemote
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> findChildResources(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.util.PageControl pageControl)
findChildResources in interface ResourceManagerRemote
public org.rhq.core.domain.resource.Resource getParentResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
getParentResource in interface ResourceManagerRemote
public org.rhq.core.domain.measurement.ResourceAvailability getLiveResourceAvailability(org.rhq.core.domain.auth.Subject subject,
int resourceId)
ResourceManagerRemote
getLiveResourceAvailability in interface ResourceManagerRemotesubject - The logged in user's subject.resourceId - the id of a Resource in inventory.
null,
the resource availability is UNKNOWN.
public org.rhq.core.domain.resource.Resource getResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
ResourceManagerRemote
getResource in interface ResourceManagerRemotesubject - The logged in user's subject.resourceId - the id of a Resource in inventory.
public Map<Integer,String> getResourcesAncestry(org.rhq.core.domain.auth.Subject subject,
Integer[] resourceIds,
org.rhq.core.domain.resource.ResourceAncestryFormat format)
ResourceManagerRemote
getResourcesAncestry in interface ResourceManagerRemote
public List<Integer> uninventoryResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
ResourceManagerRemote
uninventoryResources in interface ResourceManagerRemotesubject - The logged in user's subject.resourceIds - The resources to uninventory.
public org.rhq.core.domain.resource.Resource updateResource(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.Resource resource)
ResourceManagerRemote
updateResource in interface ResourceManagerRemoteresource - the resource to update
public void addResourcesToGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] resourceIds)
addResourcesToGroup in interface ResourceGroupManagerRemote
public org.rhq.core.domain.resource.group.ResourceGroup createResourceGroup(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.group.ResourceGroup resourceGroup)
createResourceGroup in interface ResourceGroupManagerRemote
public void deleteResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId)
throws ResourceGroupNotFoundException,
ResourceGroupDeleteException
deleteResourceGroup in interface ResourceGroupManagerRemoteResourceGroupNotFoundException
ResourceGroupDeleteException
public void deleteResourceGroups(org.rhq.core.domain.auth.Subject subject,
int[] groupIds)
throws ResourceGroupNotFoundException,
ResourceGroupDeleteException
deleteResourceGroups in interface ResourceGroupManagerRemoteResourceGroupNotFoundException
ResourceGroupDeleteException
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.ResourceGroup> findResourceGroupsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceGroupCriteria criteria)
findResourceGroupsByCriteria in interface ResourceGroupManagerRemote
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.ResourceGroup> findResourceGroupsForRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
org.rhq.core.domain.util.PageControl pc)
findResourceGroupsForRole in interface ResourceGroupManagerRemote
public org.rhq.core.domain.resource.group.ResourceGroup getResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId)
getResourceGroup in interface ResourceGroupManagerRemote
public org.rhq.core.domain.resource.group.composite.ResourceGroupComposite getResourceGroupComposite(org.rhq.core.domain.auth.Subject subject,
int groupId)
getResourceGroupComposite in interface ResourceGroupManagerRemote
public void removeResourcesFromGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] resourceIds)
removeResourcesFromGroup in interface ResourceGroupManagerRemote
public void setRecursive(org.rhq.core.domain.auth.Subject subject,
int groupId,
boolean isRecursive)
setRecursive in interface ResourceGroupManagerRemote
public org.rhq.core.domain.resource.group.ResourceGroup updateResourceGroup(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.group.ResourceGroup newResourceGroup)
updateResourceGroup in interface ResourceGroupManagerRemote
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.ResourceType> findResourceTypesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceTypeCriteria criteria)
findResourceTypesByCriteria in interface ResourceTypeManagerRemote
public org.rhq.core.domain.resource.ResourceType getResourceTypeById(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
throws ResourceTypeNotFoundException
getResourceTypeById in interface ResourceTypeManagerRemoteResourceTypeNotFoundException
public org.rhq.core.domain.resource.ResourceType getResourceTypeByNameAndPlugin(org.rhq.core.domain.auth.Subject subject,
String name,
String plugin)
getResourceTypeByNameAndPlugin in interface ResourceTypeManagerRemote
public void addResourceGroupsToRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] pendingGroupIds)
RoleManagerRemote
addResourceGroupsToRole in interface RoleManagerRemotesubject - The logged in user's subject.
public void addRolesToResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] roleIds)
addRolesToResourceGroup in interface RoleManagerRemote
public void addRolesToSubject(org.rhq.core.domain.auth.Subject subject,
int subjectId,
int[] roleIds)
RoleManagerRemote
addRolesToSubject in interface RoleManagerRemotesubject - The logged in user's subject.subjectId - the subject who is to be authorized with the given rolesroleIds - the roles to assign
public void addSubjectsToRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] subjectIds)
RoleManagerRemote
addSubjectsToRole in interface RoleManagerRemotesubject - the user attempting to assign the roles to the subjectroleId - the role who will authorized with the given subjectssubjectIds - the subjects to assign the role
public void setAssignedSubjectRoles(org.rhq.core.domain.auth.Subject subject,
int subjectId,
int[] roleIds)
RoleManagerRemote
setAssignedSubjectRoles in interface RoleManagerRemote
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> findRolesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.RoleCriteria criteria)
findRolesByCriteria in interface RoleManagerRemote
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> findSubjectAssignedRoles(org.rhq.core.domain.auth.Subject subject,
int subjectId,
org.rhq.core.domain.util.PageControl pc)
RoleManagerRemote
findSubjectAssignedRoles in interface RoleManagerRemotesubject - The logged in user's subjectsubjectId - The subject ID to find the associated roles forpc - PageControl
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.authz.Role> findSubjectUnassignedRoles(org.rhq.core.domain.auth.Subject subject,
int subjectId,
org.rhq.core.domain.util.PageControl pc)
findSubjectUnassignedRoles in interface RoleManagerRemote
public org.rhq.core.domain.authz.Role getRole(org.rhq.core.domain.auth.Subject subject,
int roleId)
RoleManagerRemote
getRole in interface RoleManagerRemotenull if it wasn't found
public org.rhq.core.domain.authz.Role createRole(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.authz.Role newRole)
RoleManagerRemote
createRole in interface RoleManagerRemotesubject - The user attempting to create the rolenewRole - The new role being created
public void deleteRoles(org.rhq.core.domain.auth.Subject subject,
int[] roleIds)
RoleManagerRemote
deleteRoles in interface RoleManagerRemotesubject - The user attempting to delete the roleroleIds - The IDs of the roles to delete
public org.rhq.core.domain.authz.Role updateRole(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.authz.Role role)
RoleManagerRemote
updateRole in interface RoleManagerRemotesubject - The user updating the rolerole - The role being updated
public void removeResourceGroupsFromRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] groupIds)
RoleManagerRemote
removeResourceGroupsFromRole in interface RoleManagerRemotesubject - user attempting to remove the groups from the role
public void removeRolesFromResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] roleIds)
removeRolesFromResourceGroup in interface RoleManagerRemote
public void removeRolesFromSubject(org.rhq.core.domain.auth.Subject subject,
int subjectId,
int[] roleIds)
RoleManagerRemote
removeRolesFromSubject in interface RoleManagerRemotesubject - The logged in user's subject.subjectId - the user that is to have the roles unassigned from itroleIds - list of role IDs that are to be removed from user
public void removeSubjectsFromRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] subjectIds)
RoleManagerRemote
removeSubjectsFromRole in interface RoleManagerRemotesubject - The logged in user's subject.roleId - The role ID to dissociate the roles fromsubjectIds - The IDs of the subjects to remove from the specified Role
public void setAssignedResourceGroups(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] groupIds)
setAssignedResourceGroups in interface RoleManagerRemote
public void changePassword(org.rhq.core.domain.auth.Subject subject,
String username,
String password)
SubjectManagerRemote
changePassword in interface SubjectManagerRemotesubject - The logged in user's subject.username - The user whose password will be changedpassword - The new password for the user
public void createPrincipal(org.rhq.core.domain.auth.Subject subject,
String username,
String password)
throws SubjectException
SubjectManagerRemote
createPrincipal in interface SubjectManagerRemotesubject - The logged in user's subject.username - The username part of the principalpassword - The password part ofthe principal
SubjectException
public org.rhq.core.domain.auth.Subject createSubject(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.auth.Subject subjectToCreate)
throws SubjectException
SubjectManagerRemotesubject. The created subject will not be
assigned to any roles; use the role manager to assign roles to a subject.
createSubject in interface SubjectManagerRemotesubject - The logged in user's subject.subjectToCreate - The subject to be created.
Subject
SubjectException
public void deleteSubjects(org.rhq.core.domain.auth.Subject subject,
int[] subjectIds)
SubjectManagerRemoteSubject and Principal objects associated with
those users.
deleteSubjects in interface SubjectManagerRemotesubject - The logged in user's subject.subjectIds - identifies the subject IDs for all the users that are to be deleted
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.auth.Subject> findSubjectsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.SubjectCriteria criteria)
findSubjectsByCriteria in interface SubjectManagerRemotepublic org.rhq.core.domain.auth.Subject getSubjectByName(String username)
SubjectManagerRemote
getSubjectByName in interface SubjectManagerRemoteusername - the name of the subject to look for
null if not found
public org.rhq.core.domain.auth.Subject getSubjectByNameAndSessionId(String username,
int sessionId)
throws Exception
SubjectManagerRemote
getSubjectByNameAndSessionId in interface SubjectManagerRemoteusername - The name of the user.sessionId - The sessionId of the desired Subject.
Exception - if the sessionId is not valid
public org.rhq.core.domain.auth.Subject login(String username,
String password)
throws LoginException
SubjectManagerRemote
login in interface SubjectManagerRemoteusername - The name of the user.password - The password.
LoginException - if the login failed for some reasonpublic void logout(org.rhq.core.domain.auth.Subject subject)
SubjectManagerRemote
logout in interface SubjectManagerRemotesubject - The Subject to log out. The sessionId must be valid.
public org.rhq.core.domain.auth.Subject updateSubject(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.auth.Subject subjectToModify)
SubjectManagerRemote
updateSubject in interface SubjectManagerRemotesubject - The logged in user's subject.subjectToModify - the subject whose data is to be updated (which may or may not be the same as user)
subjectToModify
public URL getSnapshotReport(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String name,
String description)
throws Exception
SupportManagerRemote
getSnapshotReport in interface SupportManagerRemotesubject - the user requesting the snapshotresourceId - the resource whose snapshot report is to be takenname - the name of the snapshot reportdescription - a description for the caller to use to describe the purpose for taking the snapshot report
Exceptionpublic org.rhq.core.domain.common.ProductInfo getProductInfo(org.rhq.core.domain.auth.Subject subject)
SystemManagerRemote
getProductInfo in interface SystemManagerRemotesubject - user making the request
public org.rhq.core.domain.common.ServerDetails getServerDetails(org.rhq.core.domain.auth.Subject subject)
SystemManagerRemote
getServerDetails in interface SystemManagerRemotesubject - user making the request
public Properties getSystemConfiguration(org.rhq.core.domain.auth.Subject subject)
getSystemConfiguration in interface SystemManagerRemote
public void setSystemConfiguration(org.rhq.core.domain.auth.Subject subject,
Properties properties,
boolean skipValidation)
throws Exception
setSystemConfiguration in interface SystemManagerRemoteExceptionpublic org.rhq.core.domain.common.composite.SystemSettings getSystemSettings(org.rhq.core.domain.auth.Subject subject)
SystemManagerRemote
getSystemSettings in interface SystemManagerRemotesubject - user making the request
public void setSystemSettings(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.common.composite.SystemSettings settings)
throws Exception
SystemManagerRemote
setSystemSettings in interface SystemManagerRemotesubject - the user who wants to change the settingssettings - the new system configuration settings
Exceptionpublic org.rhq.core.domain.sync.ExportReport exportAllSubsystems(org.rhq.core.domain.auth.Subject subject)
SynchronizationManagerRemoteThe returned report contains the data bytes themselves as well as a map of messages and notes produced by the different subsystem exporters so that the caller of this method is able to determine possible problems of the export file without needing to deserialize and read it (the same messages are also included in the export data).
The export data is a zipped XML.
The export requires the user to have Permission.MANAGE_INVENTORY permission.
exportAllSubsystems in interface SynchronizationManagerRemotesubject - the logged in user
public void validate(org.rhq.core.domain.auth.Subject subject,
byte[] exportFile)
throws ValidationException
validate in interface SynchronizationManagerRemoteValidationExceptionpublic List<org.rhq.core.domain.sync.ImportConfigurationDefinition> getImportConfigurationDefinitionOfAllSynchronizers()
SynchronizationManagerRemote
getImportConfigurationDefinitionOfAllSynchronizers in interface SynchronizationManagerRemotepublic org.rhq.core.domain.sync.ImportConfigurationDefinition getImportConfigurationDefinition(String importerClass)
SynchronizationManagerRemote
getImportConfigurationDefinition in interface SynchronizationManagerRemote
public org.rhq.core.domain.sync.ImportReport importAllSubsystems(org.rhq.core.domain.auth.Subject subject,
byte[] exportFile,
List<org.rhq.core.domain.sync.ImportConfiguration> importerConfigurations)
throws ValidationException,
ImportException
SynchronizationManagerRemote
importAllSubsystems in interface SynchronizationManagerRemotesubject - the authenticated userexportFile - the contents of the export fileimporterConfigurations - the configurations of individual importers to be used when importing or null
if the default configurations should be used for all the importers.
ValidationException
ImportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||