public interface CoreRegistry
extends org.wso2.carbon.registry.api.CoreRegistry
Modifier and Type | Method and Description |
---|---|
void |
delete(String path)
Deletes the resource at the given path.
|
Resource |
get(String path)
Returns the resource at the given path.
|
Collection |
get(String path,
int start,
int pageSize)
Returns the Collection at the given path, with the content paginated according to the
arguments.
|
Collection |
newCollection()
Creates a new collection.
|
Resource |
newResource()
Creates a new resource.
|
String |
put(String suggestedPath,
Resource resource)
Adds or updates resources in the registry.
|
boolean |
resourceExists(String path)
Check whether a resource exists at the given path
|
Resource newResource() throws RegistryException
newResource
in interface org.wso2.carbon.registry.api.CoreRegistry
RegistryException
- if the operation failed.Collection newCollection() throws RegistryException
newCollection
in interface org.wso2.carbon.registry.api.CoreRegistry
RegistryException
- if the operation failed.Resource get(String path) throws RegistryException
get
in interface org.wso2.carbon.registry.api.CoreRegistry
path
- Path of the resource. e.g. /project1/server/deployment.xmlRegistryException
- is thrown if the resource is not in the registryCollection get(String path, int start, int pageSize) throws RegistryException
get
in interface org.wso2.carbon.registry.api.CoreRegistry
path
- the path of the collection. MUST point to a collection!start
- the initial index of the child to return. If there are fewer children than
the specified value, a RegistryException will be thrown.pageSize
- the maximum number of results to returnRegistryException
- if the resource is not found, or if the path does not reference a
Collection, or if the start index is greater than the number of
children.boolean resourceExists(String path) throws RegistryException
resourceExists
in interface org.wso2.carbon.registry.api.CoreRegistry
path
- Path of the resource to be checkedRegistryException
- if an error occursString put(String suggestedPath, Resource resource) throws RegistryException
suggestedPath
- the path which we'd like to use for the new resource.resource
- Resource instance for the new resourceRegistryException
- is thrown depending on the implementation.void delete(String path) throws RegistryException
delete
in interface org.wso2.carbon.registry.api.CoreRegistry
path
- Path of the resource to be deleted.RegistryException
- is thrown depending on the implementation.Copyright © 2015 WSO2 Inc. All Rights Reserved.