|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of the resource class provided by this ResourceProvider object.public interface ResourceProvider<T>
Class used to access view sub-resources.
| Method Summary | |
|---|---|
void |
createResource(String resourceId,
Map<String,Object> properties)
Create a resource with the given id and given property values. |
boolean |
deleteResource(String resourceId)
Delete the resource identified by the given resource id. |
T |
getResource(String resourceId,
Set<String> properties)
Get a single resource from the given id. |
Set<T> |
getResources(ReadRequest request)
Get all of the resources. |
boolean |
updateResource(String resourceId,
Map<String,Object> properties)
Update the resource identified by given resource id with the given property values. |
| Method Detail |
|---|
T getResource(String resourceId,
Set<String> properties)
throws SystemException,
NoSuchResourceException,
UnsupportedPropertyException
resourceId - the id of the requested resourceproperties - the set of requested property ids
SystemException - an internal system exception occurred
NoSuchResourceException - a requested resource doesn't exist
UnsupportedPropertyException - the request contains unsupported property ids
Set<T> getResources(ReadRequest request)
throws SystemException,
NoSuchResourceException,
UnsupportedPropertyException
request - the read request
SystemException - an internal system exception occurred
NoSuchResourceException - a requested resource doesn't exist
UnsupportedPropertyException - the request contains unsupported property ids
void createResource(String resourceId,
Map<String,Object> properties)
throws SystemException,
ResourceAlreadyExistsException,
NoSuchResourceException,
UnsupportedPropertyException
resourceId - the id of the requested resourceproperties - the map of property values to set on the new resource
SystemException - an internal system exception occurred
ResourceAlreadyExistsException - attempted to create a resource which already exists
NoSuchResourceException - a parent resource doesn't exist
UnsupportedPropertyException - the request contains unsupported property ids
boolean updateResource(String resourceId,
Map<String,Object> properties)
throws SystemException,
NoSuchResourceException,
UnsupportedPropertyException
resourceId - the id of the requested resourceproperties - the map of property values to update on the resource
SystemException - an internal system exception occurred
NoSuchResourceException - a requested resource doesn't exist
UnsupportedPropertyException - the request contains unsupported property ids
boolean deleteResource(String resourceId)
throws SystemException,
NoSuchResourceException,
UnsupportedPropertyException
resourceId - the id of the requested resource
SystemException - an internal system exception occurred
NoSuchResourceException - the resource instance to be deleted doesn't exist
UnsupportedPropertyException - the request contains unsupported property ids
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||