|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.jdbc.RecursionRepository
public class RecursionRepository
This is used to handle recursive repository operations that might need calling registry methods for non-recursive resources.
Constructor Summary | |
---|---|
RecursionRepository(Registry registry)
Constructor accepting registry. |
|
RecursionRepository(Repository repository,
Registry registry)
Constructor accepting both registry and repository. |
Method Summary | |
---|---|
java.lang.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(java.lang.String path,
java.io.Writer writer)
Method to dump a tree of resources recursively. |
java.lang.String |
moveRecursively(ResourceIDImpl sourceID,
java.lang.String targetPath,
ResourceIDImpl targetParentResourceID)
Method to do a recursive move operation. |
void |
restoreRecursively(java.lang.String path,
java.io.Reader reader)
Method to restore a tree of resource recursively. |
void |
setRepository(Repository repository)
Constructor accepting repository. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecursionRepository(Repository repository, Registry registry)
repository
- the repositoryregistry
- the registrypublic RecursionRepository(Registry registry)
registry
- the registryMethod Detail |
---|
public void setRepository(Repository repository)
repository
- the repositorypublic java.lang.String copy(ResourcePath sourceResourcePath, ResourcePath targetResourcePath) throws RegistryException
sourceResourcePath
- the source path.targetResourcePath
- the target path.
RegistryException
- if the operation failed.public java.lang.String moveRecursively(ResourceIDImpl sourceID, java.lang.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(java.lang.String path, java.io.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(java.lang.String path, java.io.Reader reader) throws RegistryException
path
- the path to dumpreader
- the xml writer the dump should be read from.
RegistryException
- if the operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |