public class RecursionRepository extends Object
| Constructor and Description |
|---|
RecursionRepository(Registry registry)
Constructor accepting registry.
|
RecursionRepository(Repository repository,
Registry registry)
Constructor accepting both registry and repository.
|
| Modifier and Type | Method and Description |
|---|---|
String |
copy(ResourcePath sourceResourcePath,
ResourcePath targetResourcePath)
Method to do a copy from source to target.
|
void |
deleteSubTree(ResourceIDImpl resourceID,
ResourceDO resourceDO,
boolean keepAuthorization)
Method to delete a sub tree of the collection hierarchy.
|
void |
dumpRecursively(String path,
Writer writer)
Method to dump a tree of resources recursively.
|
void |
dumpRecursivelyLite(String path,
Writer writer)
Method to dump a tree of resources recursively.
|
String |
moveRecursively(ResourceIDImpl sourceID,
String targetPath,
ResourceIDImpl targetParentResourceID)
Method to do a recursive move operation.
|
void |
restoreRecursively(String path,
Reader reader)
Method to restore a tree of resource recursively.
|
void |
setRepository(Repository repository)
Constructor accepting repository.
|
public RecursionRepository(Repository repository, Registry registry)
repository - the repositoryregistry - the registrypublic RecursionRepository(Registry registry)
registry - the registrypublic void setRepository(Repository repository)
repository - the repositorypublic String copy(ResourcePath sourceResourcePath, ResourcePath targetResourcePath) throws RegistryException
sourceResourcePath - the source path.targetResourcePath - the target path.RegistryException - if the operation failed.public String moveRecursively(ResourceIDImpl sourceID, String targetPath, ResourceIDImpl targetParentResourceID) throws RegistryException
sourceID - the source resource's identifier.targetPath - the target resource path.targetParentResourceID - the target resource's parent's identifier.RegistryException - if the operation failed.public void deleteSubTree(ResourceIDImpl resourceID, ResourceDO resourceDO, boolean keepAuthorization) throws RegistryException
resourceID - the resource identifier.resourceDO - the resource data object.keepAuthorization - whether to keep authorizations.RegistryException - if the operation failed.public void dumpRecursively(String path, Writer writer) throws RegistryException
path - the path to dumpwriter - the xml writer the dump should be written to.RegistryException - if the operation failed.public void restoreRecursively(String path, Reader reader) throws RegistryException
path - the path to dumpreader - the xml writer the dump should be read from.RegistryException - if the operation failed.public void dumpRecursivelyLite(String path, Writer writer) throws RegistryException
path - the path to dumpwriter - the xml writer the dump should be written to.RegistryException - if the operation failed.Copyright © 2016 WSO2 Inc. All Rights Reserved.