Class PurgeOldVersionUtils

java.lang.Object
org.apache.jackrabbit.oak.indexversion.PurgeOldVersionUtils

public class PurgeOldVersionUtils extends Object
  • Field Details

  • Constructor Details

    • PurgeOldVersionUtils

      public PurgeOldVersionUtils()
  • Method Details

    • 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
    • isIndexChildNode

      public static boolean isIndexChildNode(String commandlineIndexPath, String repositoryIndexPath)
      Parameters:
      commandlineIndexPath -
      repositoryIndexPath -
      Returns:
      true if repositoryIndexPath is child of commandlineIndexPath