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) throws RegistryException, RegistryException
type - child resource typeRegistryExceptionvoid remove(ResourceType type, Object name) throws RegistryException
type - child resource typename - child resource nameRegistryExceptionResource get(ResourceType type, Object name) throws RegistryException
type - child resource typename - child resource nameRegistryExceptionList<Resource> get(ResourceType type) throws RegistryException
type - child resource typeRegistryExceptionvoid save()
throws RegistryException
RegistryExceptionboolean isExists(ResourceType type, Object name) throws RegistryException
type - child resource typename - child resource nameRegistryExceptionCopyright © 2011–2014 The Apache Software Foundation. All rights reserved.