public class JcrRecursiveRemove
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SAVE_EVERY_HOW_MANY |
Constructor and Description |
---|
JcrRecursiveRemove() |
Modifier and Type | Method and Description |
---|---|
int |
removeRecursive(Node n,
int saveEveryHowManyNodes)
Remove Node n and its children recursively, saving every N nodes as specified
(to avoid growing the transient space too much)
|
public static final int DEFAULT_SAVE_EVERY_HOW_MANY
public int removeRecursive(Node n, int saveEveryHowManyNodes) throws RepositoryException
n
- node to deletesaveEveryHowManyNodes
- if < 1, DEFAULT_SAVE_EVERY_HOW_MANY is usedRepositoryException
- if some error occursCopyright © 2010 - 2020 Adobe. All Rights Reserved