Class PurgeOldVersionUtils
- java.lang.Object
-
- org.apache.jackrabbit.oak.indexversion.PurgeOldVersionUtils
-
public class PurgeOldVersionUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description PurgeOldVersionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
getMillisFromString(String strDate)
static NodeBuilder
getNode(@NotNull NodeBuilder nodeBuilder, @NotNull String path)
static boolean
isBaseIndexEqual(String commandlineIndexPath, String repositoryIndexPath)
static boolean
isIndexChildNode(String commandlineIndexPath, String repositoryIndexPath)
static void
recursiveDeleteHiddenChildNodes(NodeStore store, String path)
-
-
-
Field Detail
-
OAK_INDEX
public static final String OAK_INDEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMillisFromString
public static long getMillisFromString(String strDate)
-
getNode
public static NodeBuilder getNode(@NotNull @NotNull NodeBuilder nodeBuilder, @NotNull @NotNull String path)
- Parameters:
nodeBuilder
-path
- Path of node whose nodeBuilder object should be returned.- Returns:
- nodeBuilder object of node at @param{path}
-
recursiveDeleteHiddenChildNodes
public static void recursiveDeleteHiddenChildNodes(NodeStore store, String path) throws CommitFailedException
- Parameters:
store
-path
-- Throws:
CommitFailedException
- recursively deletes child nodes under path
-
isBaseIndexEqual
public static boolean isBaseIndexEqual(String commandlineIndexPath, String repositoryIndexPath)
- Parameters:
commandlineIndexPath
-repositoryIndexPath
-- Returns:
- true if baseIndexName at commandlineIndexPath and repositoryIndexPath are equal
-
-