public interface ConsistencyChecker
PersistenceManager#checkConsistency(String[], boolean, boolean) but
providing a result that can be acted upon.
Beware: this interface is designed for unit tests only.
| Modifier and Type | Method and Description |
|---|---|
ConsistencyReport |
check(String[] uuids,
boolean recursive,
boolean fix,
String lostNFoundId)
Perform a consistency check of the data.
|
ConsistencyReport check(String[] uuids, boolean recursive, boolean fix, String lostNFoundId) throws RepositoryException
uuids - list of UUIDs of nodes to be checked. if null, all nodes will
be checkedrecursive - if true, the tree(s) below the given node(s) will be traversed
and checked as wellfix - if true, any problems found that can be repaired will be
repaired. if false, no data will be modified, instead all
inconsistencies will only get loggedlostNFoundId - node to which to attach orphaned nodes (or null,
in which case orphaned nodes will not get moved); this node
should be of a node type that allows adding arbitrary child
nodesRepositoryExceptionCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.