|
||||||||||
| 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 | |
|---|---|
void |
addPackageVersionsToRepo(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(Subject subject,
int roleId,
int[] pendingGroupIds)
Adds the given resource groups to the given role. |
void |
addResourcesToGroup(Subject subject,
int groupId,
int[] resourceIds)
|
void |
addRolesToResourceGroup(Subject subject,
int groupId,
int[] roleIds)
|
void |
addRolesToSubject(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(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(Subject subject,
int operationHistoryId,
boolean ignoreAgentErrors)
Cancels a currently in-progress operation. |
void |
changePassword(Subject subject,
java.lang.String username,
java.lang.String password)
Change the password for a user. |
void |
createPackageBackedResource(Subject subject,
int parentResourceId,
int newResourceTypeId,
java.lang.String newResourceName,
Configuration pluginConfiguration,
java.lang.String packageName,
java.lang.String packageVersion,
java.lang.Integer architectureId,
Configuration deploymentTimeConfiguration,
byte[] packageBits)
Creates a new physical resource. |
PackageVersion |
createPackageVersion(Subject subject,
java.lang.String packageName,
int packageTypeId,
java.lang.String version,
java.lang.Integer architectureId,
byte[] packageBytes)
Creates a new package version in the system. |
void |
createPrincipal(Subject subject,
java.lang.String username,
java.lang.String password)
Creates a new principal (username and password) in the internal database. |
Repo |
createRepo(Subject subject,
Repo repo)
Creates a new Repo. |
RepoGroup |
createRepoGroup(Subject subject,
RepoGroup repoGroup)
Creates a new RepoGroup in the server. |
void |
createResource(Subject subject,
int parentResourceId,
int resourceTypeId,
java.lang.String resourceName,
Configuration pluginConfiguration,
Configuration resourceConfiguration)
Creates a new physical resource. |
ResourceGroup |
createResourceGroup(Subject subject,
ResourceGroup resourceGroup)
|
Role |
createRole(Subject subject,
Role newRole)
Persists the new role to the database. |
Subject |
createSubject(Subject subject,
Subject subjectToCreate)
Create a a new subject. |
void |
deleteOperationHistory(Subject subject,
int operationHistoryId,
boolean purgeInProgress)
Purges the history from the database. |
void |
deletePackages(Subject subject,
int resourceId,
int[] installedPackageIds,
java.lang.String requestNotes)
Deletes the specified package from the resource. |
void |
deleteRepo(Subject subject,
int repoId)
Deletes the indicated repo. |
void |
deleteRepoGroup(Subject subject,
int repoGroupId)
Deletes the indicated repo group. |
void |
deleteResource(Subject subject,
int resourceId)
Deletes a physical resource from the agent machine. |
void |
deleteResourceGroup(Subject subject,
int groupId)
|
void |
deleteRoles(Subject subject,
java.lang.Integer[] roleIds)
Removes a set of roles from the database. |
void |
deleteSubjects(Subject subject,
int[] subjectIds)
Deletes the given set of users, including both the Subject and Principal objects associated with
those users. |
void |
deployPackages(Subject subject,
int[] resourceIds,
int[] packageVersionIds)
Deploys packages on the specified resources. |
void |
disableMeasurementTemplates(Subject subject,
int[] measurementDefinitionIds)
|
void |
disableSchedulesForCompatibleGroup(Subject subject,
int groupId,
int[] measurementDefinitionIds)
|
void |
disableSchedulesForResource(Subject subject,
int resourceId,
int[] measurementDefinitionIds)
|
void |
enableMeasurementTemplates(Subject subject,
int[] measurementDefinitionIds)
|
void |
enableSchedulesForCompatibleGroup(Subject subject,
int groupId,
int[] measurementDefinitionIds)
|
void |
enableSchedulesForResource(Subject subject,
int resourceId,
int[] measurementDefinitionIds)
|
PageList<AlertDefinition> |
findAlertDefinitionsByCriteria(Subject subject,
AlertDefinitionCriteria criteria)
|
PageList<Alert> |
findAlertsByCriteria(Subject subject,
AlertCriteria criteria)
|
java.util.List<Architecture> |
findArchitectures(Subject subject)
Returns all architectures known to the system. |
PageList<Distribution> |
findAssociatedDistributions(Subject subject,
int repoId,
PageControl pc)
gets a list of all associated distributions |
PageList<Availability> |
findAvailabilityForResource(Subject subject,
int resourceId,
PageControl pc)
|
java.util.List<MeasurementBaseline> |
findBaselinesForResource(Subject subject,
int resourceId)
|
PageList<CallTimeDataComposite> |
findCallTimeDataForResource(Subject subject,
int scheduleId,
long beginTime,
long endTime,
PageControl pc)
|
PageList<Resource> |
findChildResources(Subject subject,
int resourceId,
PageControl pageControl)
|
java.util.List<MeasurementDataTrait> |
findCurrentTraitsForResource(Subject subject,
int resourceId,
DisplayType displayType)
|
java.util.List<java.util.List<MeasurementDataNumericHighLowComposite>> |
findDataForCompatibleGroup(Subject subject,
int groupId,
int definitionId,
long beginTime,
long endTime,
int numPoints,
boolean groupAggregateOnly)
|
java.util.List<java.util.List<MeasurementDataNumericHighLowComposite>> |
findDataForResource(Subject subject,
int resourceId,
int[] definitionIds,
long beginTime,
long endTime,
int numPoints)
|
PageList<Event> |
findEventsByCriteria(Subject subject,
EventCriteria criteria)
|
PageList<GroupOperationHistory> |
findGroupOperationHistoriesByCriteria(Subject subject,
GroupOperationHistoryCriteria criteria)
|
PageList<InstalledPackage> |
findInstalledPackagesByCriteria(Subject subject,
InstalledPackageCriteria criteria)
|
java.util.Set<MeasurementData> |
findLiveData(Subject subject,
int resourceId,
int[] definitionIds)
|
PageList<MeasurementDefinition> |
findMeasurementDefinitionsByCriteria(Subject subject,
MeasurementDefinitionCriteria criteria)
|
java.util.List<OperationDefinition> |
findOperationDefinitionsByCriteria(Subject subject,
OperationDefinitionCriteria criteria)
|
java.util.List<PackageType> |
findPackageTypes(Subject subject,
java.lang.String resourceTypeName,
java.lang.String pluginName)
This gets the package types that can be deployed to the given resource. |
PageList<PackageVersion> |
findPackageVersionsByCriteria(Subject subject,
PackageVersionCriteria criteria)
If a resourceId filter is not set via PackageVersionCriteria.addFilterResourceId() then
this method requires InventoryManager permissions. |
PageList<PackageVersion> |
findPackageVersionsInRepo(Subject subject,
int repoId,
java.lang.String filter,
PageControl pc)
Returns the set of package versions that can currently be accessed via the given repo. |
PageList<PackageVersion> |
findPackageVersionsInRepoByCriteria(Subject subject,
PackageVersionCriteria criteria)
|
PageList<ProblemResourceComposite> |
findProblemResources(Subject subject,
long oldestDate,
PageControl pc)
|
PageList<Repo> |
findRepos(Subject subject,
PageControl pc)
Returns all imported repos in the server. |
PageList<Repo> |
findReposByCriteria(Subject subject,
RepoCriteria criteria)
Returns all repos that match the given criteria. |
PageList<ResourceComposite> |
findResourceComposites(Subject subject,
ResourceCategory category,
java.lang.String typeName,
int parentResourceId,
java.lang.String searchString,
PageControl pageControl)
|
PageList<ResourceGroup> |
findResourceGroupsByCriteria(Subject subject,
ResourceGroupCriteria criteria)
|
PageList<ResourceGroup> |
findResourceGroupsForRole(Subject subject,
int roleId,
PageControl pc)
|
java.util.List<Resource> |
findResourceLineage(Subject subject,
int resourceId)
Returns the lineage of the Resource with the specified id. |
PageList<ResourceOperationHistory> |
findResourceOperationHistoriesByCriteria(Subject subject,
ResourceOperationHistoryCriteria criteria)
|
PageList<Resource> |
findResourcesByCriteria(Subject subject,
ResourceCriteria criteria)
|
PageList<ResourceType> |
findResourceTypesByCriteria(Subject subject,
ResourceTypeCriteria criteria)
|
PageList<Role> |
findRolesByCriteria(Subject subject,
RoleCriteria criteria)
|
java.util.List<GroupOperationSchedule> |
findScheduledGroupOperations(Subject subject,
int groupId)
|
java.util.List<ResourceOperationSchedule> |
findScheduledResourceOperations(Subject subject,
int resourceId)
Returns the list of scheduled operations for the given resource. |
PageList<MeasurementSchedule> |
findSchedulesByCriteria(Subject subject,
MeasurementScheduleCriteria criteria)
|
PageList<Role> |
findSubjectAssignedRoles(Subject subject,
int subjectId,
PageControl pc)
Get all roles assigned for a certain subject |
PageList<Subject> |
findSubjectsByCriteria(Subject subject,
SubjectCriteria criteria)
|
PageList<Role> |
findSubjectUnassignedRoles(Subject subject,
int subjectId,
PageControl pc)
|
PageList<Resource> |
findSubscribedResources(Subject subject,
int repoId,
PageControl pc)
Gets all resources that are subscribed to the given repo. |
java.util.List<MeasurementDataTrait> |
findTraits(Subject subject,
int resourceId,
int definitionId)
|
MeasurementAggregate |
getAggregate(Subject subject,
int scheduleId,
long startTime,
long endTime)
|
AlertDefinition |
getAlertDefinition(Subject subject,
int alertDefinitionId)
|
InstalledPackage |
getBackingPackageForResource(Subject subject,
int resourceId)
For a resource that is content-backed (aka package-backed), this call will return InstalledPackage information for the backing content (package). |
Configuration |
getConfiguration(Subject subject,
int configurationId)
|
Availability |
getCurrentAvailabilityForResource(Subject subject,
int resourceId)
Gets the last known Availability for the given resource - which includes whether it is currently up (i.e. |
GroupPluginConfigurationUpdate |
getGroupPluginConfigurationUpdate(Subject subject,
int configurationUpdateId)
|
GroupResourceConfigurationUpdate |
getGroupResourceConfigurationUpdate(Subject subject,
int configurationUpdateId)
|
PluginConfigurationUpdate |
getLatestPluginConfigurationUpdate(Subject subject,
int resourceId)
|
ResourceConfigurationUpdate |
getLatestResourceConfigurationUpdate(Subject subject,
int resourceId)
|
ResourceAvailability |
getLiveResourceAvailability(Subject subject,
int resourceId)
Returns the availability of the resource with the specified id. |
Configuration |
getLiveResourceConfiguration(Subject subject,
int resourceId,
boolean pingAgentFirst)
Get the currently live resource configuration for the Resource with the given id. |
MeasurementDefinition |
getMeasurementDefinition(Subject subject,
int definitionId)
|
byte[] |
getPackageBytes(Subject user,
int resourceId,
int installedPackageId)
|
ConfigurationDefinition |
getPackageTypeConfigurationDefinition(Subject subject,
int packageTypeId)
Return the deploy configuration definition for the PackageType with the
specified id. |
Resource |
getParentResource(Subject subject,
int resourceId)
|
Configuration |
getPluginConfiguration(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. |
ConfigurationDefinition |
getPluginConfigurationDefinitionForResourceType(Subject subject,
int resourceTypeId)
Return the plugin configuration definition for the ResourceType with the
specified id. |
Repo |
getRepo(Subject subject,
int repoId)
Returns the repo with the given id; throws an error if one does not exist at that id. |
RepoGroup |
getRepoGroup(Subject subject,
int repoGroupId)
Returns the repo group with the given id; throws an error if one does not exist at that id. |
RepoGroupType |
getRepoGroupTypeByName(Subject subject,
java.lang.String name)
Returns the repo group type with the given name. |
Resource |
getResource(Subject subject,
int resourceId)
Returns the Resource with the specified id. |
Configuration |
getResourceConfiguration(Subject subject,
int resourceId)
Get the current Resource configuration. |
ConfigurationDefinition |
getResourceConfigurationDefinitionForResourceType(Subject subject,
int resourceTypeId)
Return the resource configuration definition for the ResourceType with the
specified id. |
ConfigurationDefinition |
getResourceConfigurationDefinitionWithTemplatesForResourceType(Subject subject,
int resourceTypeId)
Return the resource configuration definition for the ResourceType with the
specified id. |
ResourceGroup |
getResourceGroup(Subject subject,
int groupId)
|
ResourceGroupComposite |
getResourceGroupComposite(Subject subject,
int groupId)
|
ResourceType |
getResourceTypeById(Subject subject,
int resourceTypeId)
|
ResourceType |
getResourceTypeByNameAndPlugin(Subject subject,
java.lang.String name,
java.lang.String plugin)
|
Role |
getRole(Subject subject,
int roleId)
Returns the role with the given ID |
ServerVersion |
getServerVersion(Subject subject)
Provides version information of the server processing the request. |
EventSeverity[] |
getSeverityBuckets(Subject subject,
int resourceId,
long begin,
long end,
int numBuckets)
|
EventSeverity[] |
getSeverityBucketsForAutoGroup(Subject subject,
int parentResourceId,
int resourceTypeId,
long begin,
long end,
int numBuckets)
|
EventSeverity[] |
getSeverityBucketsForCompGroup(Subject subject,
int resourceGroupId,
long begin,
long end,
int numBuckets)
|
java.net.URL |
getSnapshotReport(Subject subject,
int resourceId,
java.lang.String name,
java.lang.String description)
Asks that a snapshot report be taken of the given resource. |
Subject |
getSubjectByName(java.lang.String username)
Looks up the existing of a subject by the given username. |
void |
ignoreResources(Subject subject,
java.lang.Integer[] resourceIds)
|
void |
importResources(Subject subject,
java.lang.Integer[] resourceIds)
|
boolean |
isGroupResourceConfigurationUpdateInProgress(Subject subject,
int resourceGroupId)
|
boolean |
isResourceConfigurationUpdateInProgress(Subject subject,
int resourceId)
Get whether the the specified resource is in the process of updating its configuration. |
Subject |
login(java.lang.String username,
java.lang.String password)
Logs a user into the system. |
void |
logout(Subject subject)
Logs out a user. |
void |
removeResourceGroupsFromRole(Subject subject,
int roleId,
int[] groupIds)
Removes the given resource groups from the given role. |
void |
removeResourcesFromGroup(Subject subject,
int groupId,
int[] resourceIds)
|
void |
removeRolesFromResourceGroup(Subject subject,
int groupId,
int[] roleIds)
|
void |
removeRolesFromSubject(Subject subject,
int subjectId,
int[] roleIds)
Disassociates particular roles from a subject. |
void |
removeSubjectsFromRole(Subject subject,
int roleId,
int[] subjectIds)
Dissociate particular subjects from a role. |
GroupOperationSchedule |
scheduleGroupOperation(Subject subject,
int groupId,
int[] executionOrderResourceIds,
boolean haltOnFailure,
java.lang.String operationName,
Configuration parameters,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
java.lang.String description)
|
int |
scheduleGroupResourceConfigurationUpdate(Subject subject,
int compatibleGroupId,
java.util.Map<java.lang.Integer,Configuration> newResourceConfigurationMap)
|
ResourceOperationSchedule |
scheduleResourceOperation(Subject subject,
int resourceId,
java.lang.String operationName,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
Configuration parameters,
java.lang.String description)
Schedules an operation for execution on the given resource. |
void |
setRecursive(Subject subject,
int groupId,
boolean isRecursive)
|
void |
subscribeResourceToRepos(Subject subject,
int resourceId,
int[] repoIds)
Subscribes the identified resource to the set of identified repos. |
int |
synchronizeRepos(Subject subject,
java.lang.Integer[] repoIds)
|
void |
unignoreResources(Subject subject,
java.lang.Integer[] resourceIds)
|
void |
uninventoryResources(Subject subject,
int[] resourceIds)
Removes these resources from inventory. |
void |
unscheduleGroupOperation(Subject subject,
java.lang.String jobId,
int resourceGroupId)
Unschedules the group operation identified with the given job ID. |
void |
unscheduleResourceOperation(Subject subject,
java.lang.String jobId,
int resourceId)
Unschedules the resource operation identified with the given job ID. |
void |
unsubscribeResourceFromRepos(Subject subject,
int resourceId,
int[] repoIds)
Unsubscribes the identified resource from the set of identified repos. |
void |
updateMeasurementTemplates(Subject subject,
int[] measurementDefinitionIds,
long collectionInterval)
|
PluginConfigurationUpdate |
updatePluginConfiguration(Subject subject,
int resourceId,
Configuration newConfiguration)
Updates the plugin configuration used to connect and communicate with the resource. |
Repo |
updateRepo(Subject subject,
Repo repo)
Update an existing Repo object's basic fields, like name, description, etc. |
ResourceConfigurationUpdate |
updateResourceConfiguration(Subject subject,
int resourceId,
Configuration newConfiguration)
This method is called when a user has requested to change the resource configuration for an existing resource. |
ResourceGroup |
updateResourceGroup(Subject subject,
ResourceGroup newResourceGroup)
|
Role |
updateRole(Subject subject,
Role role)
Updates the given role, excluding the subjects and groups. |
void |
updateSchedule(Subject subject,
MeasurementSchedule schedule)
|
void |
updateSchedulesForCompatibleGroup(Subject subject,
int groupId,
int[] measurementDefinitionIds,
long collectionInterval)
|
void |
updateSchedulesForResource(Subject subject,
int resourceId,
int[] measurementDefinitionIds,
long collectionInterval)
|
Subject |
updateSubject(Subject subject,
Subject subjectToModify)
Updates an existing subject with new data. |
| 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 PageList<Alert> findAlertsByCriteria(Subject subject,
AlertCriteria criteria)
findAlertsByCriteria in interface AlertManagerRemote
public AlertDefinition getAlertDefinition(Subject subject,
int alertDefinitionId)
getAlertDefinition in interface AlertDefinitionManagerRemote
public PageList<AlertDefinition> findAlertDefinitionsByCriteria(Subject subject,
AlertDefinitionCriteria criteria)
findAlertDefinitionsByCriteria in interface AlertDefinitionManagerRemote
public PageList<Availability> findAvailabilityForResource(Subject subject,
int resourceId,
PageControl pc)
findAvailabilityForResource in interface AvailabilityManagerRemote
public Availability getCurrentAvailabilityForResource(Subject subject,
int resourceId)
AvailabilityManagerRemote#getCurrentAvailabilityTypeForResource(Subject, int).
getCurrentAvailabilityForResource in interface AvailabilityManagerRemote
public PageList<CallTimeDataComposite> findCallTimeDataForResource(Subject subject,
int scheduleId,
long beginTime,
long endTime,
PageControl pc)
findCallTimeDataForResource in interface CallTimeDataManagerRemote
public void addPackageVersionsToRepo(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 Repo createRepo(Subject subject,
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(Subject subject,
int repoId)
RepoManagerRemote
deleteRepo in interface RepoManagerRemotesubject - The logged in user's subject.repoId - identifies the repo to delete
public PageList<Repo> findRepos(Subject subject,
PageControl pc)
RepoManagerRemote
findRepos in interface RepoManagerRemotesubject - user making the requestpc - used for pagination
public PageList<Repo> findReposByCriteria(Subject subject,
RepoCriteria criteria)
RepoManagerRemote
findReposByCriteria in interface RepoManagerRemotesubject - user making the querycriteria - describes how the query should function; may not be null
public PageList<PackageVersion> findPackageVersionsInRepo(Subject subject,
int repoId,
java.lang.String filter,
PageControl pc)
RepoManagerRemote
findPackageVersionsInRepo in interface RepoManagerRemotesubject - The logged in user's subject.repoId - identifies the repofilter - A repo filter.pc - pagination controls
public PageList<PackageVersion> findPackageVersionsInRepoByCriteria(Subject subject,
PackageVersionCriteria criteria)
findPackageVersionsInRepoByCriteria in interface RepoManagerRemotecriteria - Caller must add a valid repoId via PackageVersionCriteria.addFilterRepoId(Integer)}
public PageList<Resource> findSubscribedResources(Subject subject,
int repoId,
PageControl pc)
RepoManagerRemote
findSubscribedResources in interface RepoManagerRemotesubject - The logged in user's subject.
public Repo getRepo(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 RepoGroup createRepoGroup(Subject subject,
RepoGroup repoGroup)
throws RepoException
RepoManagerRemoteRepoGroup in the server.
createRepoGroup in interface RepoManagerRemotesubject - represents the user creating the grouprepoGroup - group data to create
RepoException - if a repo group already exists with this name
public void deleteRepoGroup(Subject subject,
int repoGroupId)
RepoManagerRemote
deleteRepoGroup in interface RepoManagerRemotesubject - user deleting the grouprepoGroupId - identifies the group being deleted
public RepoGroup getRepoGroup(Subject subject,
int repoGroupId)
RepoManagerRemote
getRepoGroup in interface RepoManagerRemotesubject - user whose permissions will be checked for access to the reporepoGroupId - identifies the repo group to be retrieved
public RepoGroupType getRepoGroupTypeByName(Subject subject,
java.lang.String name)
RepoManagerRemote
getRepoGroupTypeByName in interface RepoManagerRemotesubject - user whose permissions will be checked for access to the group typename - identifies the repo group type
null if no group is found with the name
public void subscribeResourceToRepos(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(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 Repo updateRepo(Subject subject,
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 PageList<PackageVersion> findPackageVersionsByCriteria(Subject subject,
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(Subject subject,
java.lang.Integer[] repoIds)
synchronizeRepos in interface RepoManagerRemote
public Configuration getConfiguration(Subject subject,
int configurationId)
getConfiguration in interface ConfigurationManagerRemote
public GroupPluginConfigurationUpdate getGroupPluginConfigurationUpdate(Subject subject,
int configurationUpdateId)
getGroupPluginConfigurationUpdate in interface ConfigurationManagerRemote
public GroupResourceConfigurationUpdate getGroupResourceConfigurationUpdate(Subject subject,
int configurationUpdateId)
getGroupResourceConfigurationUpdate in interface ConfigurationManagerRemote
public PluginConfigurationUpdate getLatestPluginConfigurationUpdate(Subject subject,
int resourceId)
getLatestPluginConfigurationUpdate in interface ConfigurationManagerRemote
public ResourceConfigurationUpdate getLatestResourceConfigurationUpdate(Subject subject,
int resourceId)
getLatestResourceConfigurationUpdate in interface ConfigurationManagerRemote
public Configuration getLiveResourceConfiguration(Subject subject,
int resourceId,
boolean pingAgentFirst)
throws java.lang.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
java.lang.Exception - if failed to get the configuration from the agent
public Configuration getPluginConfiguration(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 ConfigurationDefinition getPluginConfigurationDefinitionForResourceType(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 Configuration getResourceConfiguration(Subject subject,
int resourceId)
ConfigurationManagerRemote
getResourceConfiguration in interface ConfigurationManagerRemotesubject - The logged in user's subject.resourceId - A resource id.
public ConfigurationDefinition getResourceConfigurationDefinitionForResourceType(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 ConfigurationDefinition getResourceConfigurationDefinitionWithTemplatesForResourceType(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(Subject subject,
int resourceGroupId)
isGroupResourceConfigurationUpdateInProgress in interface ConfigurationManagerRemote
public boolean isResourceConfigurationUpdateInProgress(Subject subject,
int resourceId)
ConfigurationManagerRemote
isResourceConfigurationUpdateInProgress in interface ConfigurationManagerRemotesubject - The logged in user's subject.resourceId - A resource id.
public int scheduleGroupResourceConfigurationUpdate(Subject subject,
int compatibleGroupId,
java.util.Map<java.lang.Integer,Configuration> newResourceConfigurationMap)
scheduleGroupResourceConfigurationUpdate in interface ConfigurationManagerRemote
public PluginConfigurationUpdate updatePluginConfiguration(Subject subject,
int resourceId,
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 ResourceConfigurationUpdate updateResourceConfiguration(Subject subject,
int resourceId,
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 ConfigurationDefinition getPackageTypeConfigurationDefinition(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 PackageVersion createPackageVersion(Subject subject,
java.lang.String packageName,
int packageTypeId,
java.lang.String version,
java.lang.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 void deletePackages(Subject subject,
int resourceId,
int[] installedPackageIds,
java.lang.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 deployPackages(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 installpublic java.util.List<Architecture> findArchitectures(Subject subject)
ContentManagerRemote
findArchitectures in interface ContentManagerRemotesubject - The logged in subject
public PageList<InstalledPackage> findInstalledPackagesByCriteria(Subject subject,
InstalledPackageCriteria criteria)
findInstalledPackagesByCriteria in interface ContentManagerRemotecriteria - InstalledPackageCriteria
public java.util.List<PackageType> findPackageTypes(Subject subject,
java.lang.String resourceTypeName,
java.lang.String pluginName)
throws ResourceTypeNotFoundException
ContentManagerRemote
findPackageTypes in interface ContentManagerRemotesubject - The logged in subjectresourceTypeName - The resource type in question
ResourceTypeNotFoundException
public InstalledPackage getBackingPackageForResource(Subject subject,
int resourceId)
ContentManagerRemote
getBackingPackageForResource in interface ContentManagerRemoteresourceId - a valid resource
public byte[] getPackageBytes(Subject user,
int resourceId,
int installedPackageId)
getPackageBytes in interface ContentManagerRemote
public void ignoreResources(Subject subject,
java.lang.Integer[] resourceIds)
ignoreResources in interface DiscoveryBossRemote
public void importResources(Subject subject,
java.lang.Integer[] resourceIds)
importResources in interface DiscoveryBossRemote
public void unignoreResources(Subject subject,
java.lang.Integer[] resourceIds)
unignoreResources in interface DiscoveryBossRemote
public PageList<Event> findEventsByCriteria(Subject subject,
EventCriteria criteria)
findEventsByCriteria in interface EventManagerRemote
public EventSeverity[] getSeverityBuckets(Subject subject,
int resourceId,
long begin,
long end,
int numBuckets)
getSeverityBuckets in interface EventManagerRemote
public EventSeverity[] getSeverityBucketsForAutoGroup(Subject subject,
int parentResourceId,
int resourceTypeId,
long begin,
long end,
int numBuckets)
getSeverityBucketsForAutoGroup in interface EventManagerRemote
public EventSeverity[] getSeverityBucketsForCompGroup(Subject subject,
int resourceGroupId,
long begin,
long end,
int numBuckets)
getSeverityBucketsForCompGroup in interface EventManagerRemote
public java.util.List<MeasurementBaseline> findBaselinesForResource(Subject subject,
int resourceId)
findBaselinesForResource in interface MeasurementBaselineManagerRemote
public java.util.List<MeasurementDataTrait> findCurrentTraitsForResource(Subject subject,
int resourceId,
DisplayType displayType)
findCurrentTraitsForResource in interface MeasurementDataManagerRemote
public java.util.List<java.util.List<MeasurementDataNumericHighLowComposite>> findDataForCompatibleGroup(Subject subject,
int groupId,
int definitionId,
long beginTime,
long endTime,
int numPoints,
boolean groupAggregateOnly)
findDataForCompatibleGroup in interface MeasurementDataManagerRemote
public java.util.List<java.util.List<MeasurementDataNumericHighLowComposite>> findDataForResource(Subject subject,
int resourceId,
int[] definitionIds,
long beginTime,
long endTime,
int numPoints)
findDataForResource in interface MeasurementDataManagerRemote
public java.util.Set<MeasurementData> findLiveData(Subject subject,
int resourceId,
int[] definitionIds)
findLiveData in interface MeasurementDataManagerRemote
public java.util.List<MeasurementDataTrait> findTraits(Subject subject,
int resourceId,
int definitionId)
findTraits in interface MeasurementDataManagerRemote
public MeasurementAggregate getAggregate(Subject subject,
int scheduleId,
long startTime,
long endTime)
getAggregate in interface MeasurementDataManagerRemote
public PageList<MeasurementDefinition> findMeasurementDefinitionsByCriteria(Subject subject,
MeasurementDefinitionCriteria criteria)
findMeasurementDefinitionsByCriteria in interface MeasurementDefinitionManagerRemote
public MeasurementDefinition getMeasurementDefinition(Subject subject,
int definitionId)
getMeasurementDefinition in interface MeasurementDefinitionManagerRemote
public PageList<ProblemResourceComposite> findProblemResources(Subject subject,
long oldestDate,
PageControl pc)
findProblemResources in interface MeasurementProblemManagerRemote
public void disableSchedulesForResource(Subject subject,
int resourceId,
int[] measurementDefinitionIds)
disableSchedulesForResource in interface MeasurementScheduleManagerRemote
public void disableSchedulesForCompatibleGroup(Subject subject,
int groupId,
int[] measurementDefinitionIds)
disableSchedulesForCompatibleGroup in interface MeasurementScheduleManagerRemote
public void disableMeasurementTemplates(Subject subject,
int[] measurementDefinitionIds)
disableMeasurementTemplates in interface MeasurementScheduleManagerRemote
public void enableSchedulesForResource(Subject subject,
int resourceId,
int[] measurementDefinitionIds)
enableSchedulesForResource in interface MeasurementScheduleManagerRemote
public void enableSchedulesForCompatibleGroup(Subject subject,
int groupId,
int[] measurementDefinitionIds)
enableSchedulesForCompatibleGroup in interface MeasurementScheduleManagerRemote
public void enableMeasurementTemplates(Subject subject,
int[] measurementDefinitionIds)
enableMeasurementTemplates in interface MeasurementScheduleManagerRemote
public void updateSchedule(Subject subject,
MeasurementSchedule schedule)
updateSchedule in interface MeasurementScheduleManagerRemote
public void updateSchedulesForResource(Subject subject,
int resourceId,
int[] measurementDefinitionIds,
long collectionInterval)
updateSchedulesForResource in interface MeasurementScheduleManagerRemote
public void updateSchedulesForCompatibleGroup(Subject subject,
int groupId,
int[] measurementDefinitionIds,
long collectionInterval)
updateSchedulesForCompatibleGroup in interface MeasurementScheduleManagerRemote
public void updateMeasurementTemplates(Subject subject,
int[] measurementDefinitionIds,
long collectionInterval)
updateMeasurementTemplates in interface MeasurementScheduleManagerRemote
public PageList<MeasurementSchedule> findSchedulesByCriteria(Subject subject,
MeasurementScheduleCriteria criteria)
findSchedulesByCriteria in interface MeasurementScheduleManagerRemote
public void cancelOperationHistory(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(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 PageList<GroupOperationHistory> findGroupOperationHistoriesByCriteria(Subject subject,
GroupOperationHistoryCriteria criteria)
findGroupOperationHistoriesByCriteria in interface OperationManagerRemote
public java.util.List<OperationDefinition> findOperationDefinitionsByCriteria(Subject subject,
OperationDefinitionCriteria criteria)
findOperationDefinitionsByCriteria in interface OperationManagerRemote
public PageList<ResourceOperationHistory> findResourceOperationHistoriesByCriteria(Subject subject,
ResourceOperationHistoryCriteria criteria)
findResourceOperationHistoriesByCriteria in interface OperationManagerRemote
public java.util.List<GroupOperationSchedule> findScheduledGroupOperations(Subject subject,
int groupId)
throws java.lang.Exception
findScheduledGroupOperations in interface OperationManagerRemotejava.lang.Exception
public java.util.List<ResourceOperationSchedule> findScheduledResourceOperations(Subject subject,
int resourceId)
throws java.lang.Exception
OperationManagerRemote
findScheduledResourceOperations in interface OperationManagerRemotejava.lang.Exception - TODO
public GroupOperationSchedule scheduleGroupOperation(Subject subject,
int groupId,
int[] executionOrderResourceIds,
boolean haltOnFailure,
java.lang.String operationName,
Configuration parameters,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
java.lang.String description)
throws ScheduleException
scheduleGroupOperation in interface OperationManagerRemoteScheduleException
public ResourceOperationSchedule scheduleResourceOperation(Subject subject,
int resourceId,
java.lang.String operationName,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
Configuration parameters,
java.lang.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(Subject subject,
java.lang.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(Subject subject,
java.lang.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 createResource(Subject subject,
int parentResourceId,
int resourceTypeId,
java.lang.String resourceName,
Configuration pluginConfiguration,
Configuration resourceConfiguration)
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 resource
public void createPackageBackedResource(Subject subject,
int parentResourceId,
int newResourceTypeId,
java.lang.String newResourceName,
Configuration pluginConfiguration,
java.lang.String packageName,
java.lang.String packageVersion,
java.lang.Integer architectureId,
Configuration deploymentTimeConfiguration,
byte[] packageBits)
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 create
public void deleteResource(Subject subject,
int resourceId)
ResourceFactoryManagerRemote
deleteResource in interface ResourceFactoryManagerRemotesubject - user requesting the creationresourceId - resource being deleted
public PageList<ResourceComposite> findResourceComposites(Subject subject,
ResourceCategory category,
java.lang.String typeName,
int parentResourceId,
java.lang.String searchString,
PageControl pageControl)
findResourceComposites in interface ResourceManagerRemote
public java.util.List<Resource> findResourceLineage(Subject subject,
int resourceId)
ResourceManagerRemote
findResourceLineage in interface ResourceManagerRemotesubject - The logged in user's subject.resourceId - the id of a Resource in inventory
public PageList<Resource> findResourcesByCriteria(Subject subject,
ResourceCriteria criteria)
findResourcesByCriteria in interface ResourceManagerRemote
public PageList<Resource> findChildResources(Subject subject,
int resourceId,
PageControl pageControl)
findChildResources in interface ResourceManagerRemote
public Resource getParentResource(Subject subject,
int resourceId)
getParentResource in interface ResourceManagerRemote
public ResourceAvailability getLiveResourceAvailability(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 Resource getResource(Subject subject,
int resourceId)
ResourceManagerRemote
getResource in interface ResourceManagerRemotesubject - The logged in user's subject.resourceId - the id of a Resource in inventory.
public void uninventoryResources(Subject subject,
int[] resourceIds)
ResourceManagerRemote
uninventoryResources in interface ResourceManagerRemotesubject - The logged in user's subject.resourceIds - The resources to uninventory.
public void addResourcesToGroup(Subject subject,
int groupId,
int[] resourceIds)
addResourcesToGroup in interface ResourceGroupManagerRemote
public ResourceGroup createResourceGroup(Subject subject,
ResourceGroup resourceGroup)
createResourceGroup in interface ResourceGroupManagerRemote
public void deleteResourceGroup(Subject subject,
int groupId)
throws ResourceGroupNotFoundException,
ResourceGroupDeleteException
deleteResourceGroup in interface ResourceGroupManagerRemoteResourceGroupNotFoundException
ResourceGroupDeleteException
public PageList<ResourceGroup> findResourceGroupsByCriteria(Subject subject,
ResourceGroupCriteria criteria)
findResourceGroupsByCriteria in interface ResourceGroupManagerRemote
public PageList<ResourceGroup> findResourceGroupsForRole(Subject subject,
int roleId,
PageControl pc)
findResourceGroupsForRole in interface ResourceGroupManagerRemote
public ResourceGroup getResourceGroup(Subject subject,
int groupId)
getResourceGroup in interface ResourceGroupManagerRemote
public ResourceGroupComposite getResourceGroupComposite(Subject subject,
int groupId)
getResourceGroupComposite in interface ResourceGroupManagerRemote
public void removeResourcesFromGroup(Subject subject,
int groupId,
int[] resourceIds)
removeResourcesFromGroup in interface ResourceGroupManagerRemote
public void setRecursive(Subject subject,
int groupId,
boolean isRecursive)
setRecursive in interface ResourceGroupManagerRemote
public ResourceGroup updateResourceGroup(Subject subject,
ResourceGroup newResourceGroup)
updateResourceGroup in interface ResourceGroupManagerRemote
public PageList<ResourceType> findResourceTypesByCriteria(Subject subject,
ResourceTypeCriteria criteria)
findResourceTypesByCriteria in interface ResourceTypeManagerRemote
public ResourceType getResourceTypeById(Subject subject,
int resourceTypeId)
throws ResourceTypeNotFoundException
getResourceTypeById in interface ResourceTypeManagerRemoteResourceTypeNotFoundException
public ResourceType getResourceTypeByNameAndPlugin(Subject subject,
java.lang.String name,
java.lang.String plugin)
getResourceTypeByNameAndPlugin in interface ResourceTypeManagerRemote
public void addResourceGroupsToRole(Subject subject,
int roleId,
int[] pendingGroupIds)
RoleManagerRemote
addResourceGroupsToRole in interface RoleManagerRemotesubject - The logged in user's subject.
public void addRolesToResourceGroup(Subject subject,
int groupId,
int[] roleIds)
addRolesToResourceGroup in interface RoleManagerRemote
public void addRolesToSubject(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(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 PageList<Role> findRolesByCriteria(Subject subject,
RoleCriteria criteria)
findRolesByCriteria in interface RoleManagerRemote
public PageList<Role> findSubjectAssignedRoles(Subject subject,
int subjectId,
PageControl pc)
RoleManagerRemote
findSubjectAssignedRoles in interface RoleManagerRemotesubject - The logged in user's subjectsubjectId - The subject ID to find the associated roles forpc - PageControl
public PageList<Role> findSubjectUnassignedRoles(Subject subject,
int subjectId,
PageControl pc)
findSubjectUnassignedRoles in interface RoleManagerRemote
public Role getRole(Subject subject,
int roleId)
RoleManagerRemote
getRole in interface RoleManagerRemotenull if it wasn't found
public Role createRole(Subject subject,
Role newRole)
RoleManagerRemote
createRole in interface RoleManagerRemotesubject - The user attempting to create the rolenewRole - The new role being created
public void deleteRoles(Subject subject,
java.lang.Integer[] roleIds)
RoleManagerRemote
deleteRoles in interface RoleManagerRemotesubject - The user attempting to delete the roleroleIds - The IDs of the roles to delete
public Role updateRole(Subject subject,
Role role)
RoleManagerRemote
updateRole in interface RoleManagerRemotesubject - The user updating the rolerole - The role being updated
public void removeResourceGroupsFromRole(Subject subject,
int roleId,
int[] groupIds)
RoleManagerRemote
removeResourceGroupsFromRole in interface RoleManagerRemotesubject - user attempting to remove the groups from the role
public void removeRolesFromResourceGroup(Subject subject,
int groupId,
int[] roleIds)
removeRolesFromResourceGroup in interface RoleManagerRemote
public void removeRolesFromSubject(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(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 changePassword(Subject subject,
java.lang.String username,
java.lang.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(Subject subject,
java.lang.String username,
java.lang.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 Subject createSubject(Subject subject,
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(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 PageList<Subject> findSubjectsByCriteria(Subject subject,
SubjectCriteria criteria)
findSubjectsByCriteria in interface SubjectManagerRemotepublic Subject getSubjectByName(java.lang.String username)
SubjectManagerRemote
getSubjectByName in interface SubjectManagerRemoteusername - the name of the subject to look for
null if not found
public Subject login(java.lang.String username,
java.lang.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(Subject subject)
SubjectManagerRemote
logout in interface SubjectManagerRemote
public Subject updateSubject(Subject subject,
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 java.net.URL getSnapshotReport(Subject subject,
int resourceId,
java.lang.String name,
java.lang.String description)
throws java.lang.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
java.lang.Exception
public ServerVersion getServerVersion(Subject subject)
throws java.lang.Exception
SystemManagerRemote
getServerVersion in interface SystemManagerRemotejava.lang.Exception
public PageList<Distribution> findAssociatedDistributions(Subject subject,
int repoId,
PageControl pc)
RepoManagerRemote
findAssociatedDistributions in interface RepoManagerRemote
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||