public class FrozenNodeRefsByScanningCommand extends java.lang.Object implements Command
This variant does a *very expensive repository scan* for all properties formatted as uuid ( LIKE \"________-____-____-____-____________\" ) and checking if any reference points to an nt:frozenNode (under /jcr:system/jcr:versionStorage at depth > 7).
Note that any property with uuid that cannot be resolved will *not be reported*, as that is a legitimate use case of uuid property use. Only uuids that resolve will be analysed.
Example:
java -mx4g -jar oak-run-*.jar frozennoderefsbyscanning mongodb://localhost/<dbname> -user=admin -password=admin
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Constructor and Description |
---|
FrozenNodeRefsByScanningCommand() |
Modifier and Type | Method and Description |
---|---|
void |
execute(java.lang.String... args) |
static Session |
openSession(NodeStore nodeStore,
java.lang.String workspaceName,
java.lang.String user,
java.lang.String password) |
public static final java.lang.String NAME
public void execute(java.lang.String... args) throws java.lang.Exception
public static Session openSession(NodeStore nodeStore, java.lang.String workspaceName, java.lang.String user, java.lang.String password) throws RepositoryException
RepositoryException
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.