Class PurgeOldVersionUtils


  • public class PurgeOldVersionUtils
    extends java.lang.Object
    • Constructor Detail

      • PurgeOldVersionUtils

        public PurgeOldVersionUtils()
    • Method Detail

      • getMillisFromString

        public static long getMillisFromString​(java.lang.String strDate)
      • getNode

        public static NodeBuilder getNode​(@NotNull
                                          @NotNull NodeBuilder nodeBuilder,
                                          @NotNull
                                          @NotNull java.lang.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,
                                                           java.lang.String path)
                                                    throws CommitFailedException
        Parameters:
        store -
        path -
        Throws:
        CommitFailedException - recursively deletes child nodes under path
      • isBaseIndexEqual

        public static boolean isBaseIndexEqual​(java.lang.String commandlineIndexPath,
                                               java.lang.String repositoryIndexPath)
        Parameters:
        commandlineIndexPath -
        repositoryIndexPath -
        Returns:
        true if baseIndexName at commandlineIndexPath and repositoryIndexPath are equal
      • isIndexChildNode

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