|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceManagerRemote
| Method Summary | |
|---|---|
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)
|
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.resource.Resource> |
findResourcesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceCriteria criteria)
|
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.resource.Resource |
getParentResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
|
org.rhq.core.domain.resource.Resource |
getResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Returns the Resource with the specified id. |
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. |
List<Integer> |
uninventoryResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
Removes these resources from inventory. |
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). |
| Method Detail |
|---|
org.rhq.core.domain.measurement.ResourceAvailability getLiveResourceAvailability(org.rhq.core.domain.auth.Subject subject,
int resourceId)
subject - The logged in user's subject.resourceId - the id of a Resource in inventory.
null,
the resource availability is UNKNOWN.
FetchException - if the resource represented by the resourceId parameter does not exist, or if the
passed subject does not have permission to view this resource.
org.rhq.core.domain.resource.Resource getResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
subject - The logged in user's subject.resourceId - the id of a Resource in inventory.
FetchException - if the resource represented by the resourceId parameter does not exist, or if the
passed subject does not have permission to view this resource.
List<org.rhq.core.domain.resource.Resource> findResourceLineage(org.rhq.core.domain.auth.Subject subject,
int resourceId)
subject - The logged in user's subject.resourceId - the id of a Resource in inventory
FetchException - on any issue. Wraps ResourceNotFoundException when necessary.
org.rhq.core.domain.resource.Resource updateResource(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.Resource resource)
user - the logged in userresource - the resource to update
List<Integer> uninventoryResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
subject - The logged in user's subject.resourceIds - The resources to uninventory.
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.Resource> findChildResources(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.util.PageControl pageControl)
org.rhq.core.domain.resource.Resource getParentResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Map<Integer,String> getResourcesAncestry(org.rhq.core.domain.auth.Subject subject,
Integer[] resourceIds,
org.rhq.core.domain.resource.ResourceAncestryFormat format)
subject - resourceIds - format -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||