public interface Resource
| Modifier and Type | Method and Description |
|---|---|
Resource |
create(ResourceType type)
This method will create associate resource objects for the given resource type.
|
List<Resource> |
get(ResourceType type)
This method will list all the child resources for the given resource type
|
Resource |
get(ResourceType type,
Object name)
This method will return the given child resource from the database
|
boolean |
isExists(ResourceType type,
Object name)
This method will check whether an entry from the given resource type and resource name
exists in the database
|
void |
remove(ResourceType type,
Object name)
This method will remove the given child resource from the database
|
void |
save()
This method will save the resource to the database.
|
Resource create(ResourceType type)
type - child resource typevoid remove(ResourceType type, Object name)
type - child resource typename - child resource nameResource get(ResourceType type, Object name)
type - child resource typename - child resource nameList<Resource> get(ResourceType type)
type - child resource typevoid save()
boolean isExists(ResourceType type, Object name)
type - child resource typename - child resource nameCopyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.