|
||||||||||
| 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 | |
|---|---|
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. |
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. |
| 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 registry| Method Detail |
|---|
public void setRepository(Repository repository)
repository - the repository
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||