public interface ResourceGroupManagerLocal
ResourceGroups.| Modifier and Type | Method and Description |
|---|---|
void |
addResourcesToGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] resourceIds) |
org.rhq.core.domain.resource.group.ResourceGroup |
createPrivateResourceGroup(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.group.ResourceGroup group)
NOTE: This is only used to support AutoGroups currently but the idea may be expanded in the future.
|
org.rhq.core.domain.resource.group.ResourceGroup |
createResourceGroup(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.group.ResourceGroup group) |
void |
deleteResourceGroup(org.rhq.core.domain.auth.Subject user,
int groupId) |
void |
deleteResourceGroups(org.rhq.core.domain.auth.Subject user,
int[] groupIds) |
void |
enableRecursivityForGroup(org.rhq.core.domain.auth.Subject subject,
int groupId) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.ResourceGroup> |
findAvailableResourceGroupsForRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] excludeIds,
org.rhq.core.domain.util.PageControl pageControl) |
int[] |
findDefinitionsForAutoGroup(org.rhq.core.domain.auth.Subject subject,
int autoGroupParentResourceId,
int autoGroupChildResourceTypeId,
boolean displayTypeSummaryOnly)
Get the
MeasurementDefinitions for the passed autogroup |
int[] |
findDefinitionsForCompatibleGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
boolean displayTypeSummaryOnly)
Return the
MeasurementDefinitions for the passed comatible group |
List<Integer> |
findDeletedResourceGroupIds(int[] groupIds) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.ResourceGroup> |
findResourceGroupByIds(org.rhq.core.domain.auth.Subject subject,
int[] resourceGroupIds,
org.rhq.core.domain.util.PageControl pageControl) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.composite.ResourceGroupComposite> |
findResourceGroupComposites(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.group.GroupCategory groupCategory,
org.rhq.core.domain.resource.ResourceCategory resourceCategory,
String resourceTypeName,
String pluginName,
String nameFilter,
Integer resourceId,
Integer groupId,
org.rhq.core.domain.util.PageControl pc) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.composite.ResourceGroupComposite> |
findResourceGroupCompositesByCriteria(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> |
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> |
findResourcesForAutoGroup(org.rhq.core.domain.auth.Subject subject,
int autoGroupParentResourceId,
int autoGroupChildResourceTypeId) |
List<org.rhq.core.domain.resource.Resource> |
findResourcesForResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
org.rhq.core.domain.resource.group.GroupCategory category) |
org.rhq.core.domain.resource.group.ResourceGroup |
getByGroupDefinitionAndGroupByClause(int groupDefinitionId,
String groupByClause) |
int |
getExplicitGroupMemberCount(int resourceGroupId) |
int |
getImplicitGroupMemberCount(int resourceGroupId) |
org.rhq.core.domain.resource.group.ResourceGroup |
getResourceGroup(org.rhq.core.domain.auth.Subject subject,
int groupId) |
org.rhq.core.domain.resource.group.ResourceGroup |
getResourceGroupById(org.rhq.core.domain.auth.Subject user,
int id,
org.rhq.core.domain.resource.group.GroupCategory category) |
org.rhq.core.domain.resource.group.composite.ResourceGroupComposite |
getResourceGroupComposite(org.rhq.core.domain.auth.Subject subject,
int groupId) |
int[] |
getResourceGroupCountSummary(org.rhq.core.domain.auth.Subject user)
Get a summary of counts, by category, of the user's assigned, visible groups.
|
void |
removeAllResourcesFromGroup(org.rhq.core.domain.auth.Subject subject,
int groupId) |
void |
removeResourcesFromGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] resourceIds) |
void |
setAssignedResourceGroupsForResource(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] resourceIds,
boolean setType)
This method ensures that the resource will have exactly the specified set of explicit group
membership.
|
void |
setAssignedResources(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] resourceIds,
boolean setType)
This method ensures that the explicit group membership is set to the specified resources.
|
void |
setRecursive(org.rhq.core.domain.auth.Subject subject,
int groupId,
boolean isRecursive) |
void |
setResourceTypeInNewTx(int resourceGroupId) |
void |
uninventoryMembers(org.rhq.core.domain.auth.Subject subject,
int groupId) |
void |
updateImplicitGroupMembership(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.Resource resource) |
org.rhq.core.domain.resource.group.ResourceGroup |
updateResourceGroup(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.group.ResourceGroup group) |
org.rhq.core.domain.resource.group.ResourceGroup |
updateResourceGroup(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.group.ResourceGroup group,
RecursivityChangeType changeType) |
org.rhq.core.domain.resource.group.ResourceGroup |
updateResourceGroup(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.group.ResourceGroup group,
RecursivityChangeType changeType,
boolean updateMembership) |
org.rhq.core.domain.resource.group.ResourceGroup createPrivateResourceGroup(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.group.ResourceGroup group)
user - The user for which the group will be created.group - The group characteristics. Any membership defined here is ignored. The recursivity setting is
ignored.org.rhq.core.domain.resource.group.ResourceGroup getResourceGroupById(org.rhq.core.domain.auth.Subject user,
int id,
org.rhq.core.domain.resource.group.GroupCategory category)
throws ResourceGroupNotFoundException
ResourceGroupNotFoundExceptionint[] getResourceGroupCountSummary(org.rhq.core.domain.auth.Subject user)
user - void enableRecursivityForGroup(org.rhq.core.domain.auth.Subject subject,
int groupId)
throws ResourceGroupNotFoundException,
ResourceGroupUpdateException
void removeAllResourcesFromGroup(org.rhq.core.domain.auth.Subject subject,
int groupId)
throws ResourceGroupDeleteException
ResourceGroupDeleteExceptionorg.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.ResourceGroup> findAvailableResourceGroupsForRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] excludeIds,
org.rhq.core.domain.util.PageControl pageControl)
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.ResourceGroup> findResourceGroupByIds(org.rhq.core.domain.auth.Subject subject,
int[] resourceGroupIds,
org.rhq.core.domain.util.PageControl pageControl)
void updateImplicitGroupMembership(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.Resource resource)
List<org.rhq.core.domain.resource.Resource> findResourcesForAutoGroup(org.rhq.core.domain.auth.Subject subject, int autoGroupParentResourceId, int autoGroupChildResourceTypeId)
List<org.rhq.core.domain.resource.Resource> findResourcesForResourceGroup(org.rhq.core.domain.auth.Subject subject, int groupId, org.rhq.core.domain.resource.group.GroupCategory category)
int[] findDefinitionsForCompatibleGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
boolean displayTypeSummaryOnly)
MeasurementDefinitions for the passed comatible groupsubject - Subject of the calling usergroupId - id of the groupdisplayTypeSummaryOnly - TODOint[] findDefinitionsForAutoGroup(org.rhq.core.domain.auth.Subject subject,
int autoGroupParentResourceId,
int autoGroupChildResourceTypeId,
boolean displayTypeSummaryOnly)
MeasurementDefinitions for the passed autogroupsubject - Subject of the calling userautoGroupParentResourceId - id of the parent resourceautoGroupChildResourceTypeId - Id of the ResourceType of the childrendisplayTypeSummaryOnly - TODOorg.rhq.core.domain.resource.group.ResourceGroup getByGroupDefinitionAndGroupByClause(int groupDefinitionId,
String groupByClause)
void setResourceTypeInNewTx(int resourceGroupId)
throws ResourceGroupDeleteException
ResourceGroupDeleteExceptionint getExplicitGroupMemberCount(int resourceGroupId)
int getImplicitGroupMemberCount(int resourceGroupId)
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.composite.ResourceGroupComposite> findResourceGroupComposites(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.group.GroupCategory groupCategory,
org.rhq.core.domain.resource.ResourceCategory resourceCategory,
String resourceTypeName,
String pluginName,
String nameFilter,
Integer resourceId,
Integer groupId,
org.rhq.core.domain.util.PageControl pc)
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.composite.ResourceGroupComposite> findResourceGroupCompositesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceGroupCriteria criteria)
void setAssignedResources(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] resourceIds,
boolean setType)
throws ResourceGroupUpdateException,
ResourceGroupDeleteException
subject - groupId - resourceIds - setType - Set to false if the specified resourceIds will not alter the group type (compatible or
mixed). Set true to have the group type (re)set automatically, based on the new group membership.ResourceGroupUpdateExceptionResourceGroupDeleteExceptionvoid setAssignedResourceGroupsForResource(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] resourceIds,
boolean setType)
throws ResourceGroupUpdateException,
ResourceGroupDeleteException
subject - resourceId - resourceGroupIds - setType - Set to false if addition or removal of the specified resourceId will not alter the group
type for the specified resource groups (compatible or mixed). Set true to have the group type
(re)set automatically, based on the new group membership.ResourceGroupUpdateExceptionResourceGroupDeleteExceptionvoid uninventoryMembers(org.rhq.core.domain.auth.Subject subject,
int groupId)
org.rhq.core.domain.resource.group.ResourceGroup updateResourceGroup(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.group.ResourceGroup group,
RecursivityChangeType changeType)
throws ResourceGroupAlreadyExistsException,
ResourceGroupUpdateException
org.rhq.core.domain.resource.group.ResourceGroup updateResourceGroup(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.group.ResourceGroup group,
RecursivityChangeType changeType,
boolean updateMembership)
throws ResourceGroupAlreadyExistsException,
ResourceGroupUpdateException
void addResourcesToGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] resourceIds)
org.rhq.core.domain.resource.group.ResourceGroup createResourceGroup(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.group.ResourceGroup group)
void deleteResourceGroup(org.rhq.core.domain.auth.Subject user,
int groupId)
throws ResourceGroupNotFoundException,
ResourceGroupDeleteException
void deleteResourceGroups(org.rhq.core.domain.auth.Subject user,
int[] groupIds)
throws ResourceGroupNotFoundException,
ResourceGroupDeleteException
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)
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)
void removeResourcesFromGroup(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] resourceIds)
void setRecursive(org.rhq.core.domain.auth.Subject subject,
int groupId,
boolean isRecursive)
org.rhq.core.domain.resource.group.ResourceGroup updateResourceGroup(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.group.ResourceGroup group)
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)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.