|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceManagerRemote
Method Summary | |
---|---|
PageList<Resource> |
findChildResources(Subject subject,
int resourceId,
PageControl pageControl)
|
List<Resource> |
findResourceLineage(Subject subject,
int resourceId)
Returns the lineage of the Resource with the specified id. |
PageList<Resource> |
findResourcesByCriteria(Subject subject,
ResourceCriteria criteria)
|
ResourceAvailability |
getLiveResourceAvailability(Subject subject,
int resourceId)
Returns the availability of the resource with the specified id. |
Resource |
getParentResource(Subject subject,
int resourceId)
|
Resource |
getResource(Subject subject,
int resourceId)
Returns the Resource with the specified id. |
Map<Integer,String> |
getResourcesAncestry(Subject subject,
Integer[] resourceIds,
ResourceAncestryFormat format)
Resource.ancestry is an encoded value that holds the resource's parental ancestry. |
List<Integer> |
uninventoryResources(Subject subject,
int[] resourceIds)
Removes these resources from inventory. |
Resource |
updateResource(Subject subject,
Resource resource)
Update resource's editable properties (name, description, location). |
Method Detail |
---|
ResourceAvailability getLiveResourceAvailability(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.Resource getResource(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<Resource> findResourceLineage(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.Resource updateResource(Subject subject, Resource resource)
user
- the logged in userresource
- the resource to update
List<Integer> uninventoryResources(Subject subject, int[] resourceIds)
subject
- The logged in user's subject.resourceIds
- The resources to uninventory.PageList<Resource> findResourcesByCriteria(Subject subject, ResourceCriteria criteria)
PageList<Resource> findChildResources(Subject subject, int resourceId, PageControl pageControl)
Resource getParentResource(Subject subject, int resourceId)
Map<Integer,String> getResourcesAncestry(Subject subject, Integer[] resourceIds, ResourceAncestryFormat format)
subject
- resourceIds
- format
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |