Class BuildStoreVersionManifest

java.lang.Object
org.cdlib.mrt.s3.tools.BuildStoreVersionManifest

public class BuildStoreVersionManifest extends Object
this routine is used to build a manifest.xml file from content saved in cloud. Note that the constructed manifest.xml will only contain additions and content replacement. If any component was deleted in later versions it cannot be identified by this routine.
  • Field Details

  • Constructor Details

    • BuildStoreVersionManifest

      protected BuildStoreVersionManifest(NodeService service, org.cdlib.mrt.utility.LoggerInf logger) throws org.cdlib.mrt.utility.TException
      Constructor
      Parameters:
      cloud - Cloud access object interface
      container - container/bucket of cloud storage containing object
      directory - local directory file to contain extracted content from cloud
      logger - Merritt logger
      Throws:
      org.cdlib.mrt.utility.TException
  • Method Details

    • main

      public static void main(String[] args) throws IOException, org.cdlib.mrt.utility.TException
      Throws:
      IOException
      org.cdlib.mrt.utility.TException
    • main_qt8vx8f6w6

      public static void main_qt8vx8f6w6(String[] args) throws IOException, org.cdlib.mrt.utility.TException
      Throws:
      IOException
      org.cdlib.mrt.utility.TException
    • main_4001

      public static void main_4001(String[] args) throws IOException, org.cdlib.mrt.utility.TException
      Throws:
      IOException
      org.cdlib.mrt.utility.TException
    • getBuildStoreVersionManifest

      public static BuildStoreVersionManifest getBuildStoreVersionManifest(NodeService service, org.cdlib.mrt.utility.LoggerInf logger) throws org.cdlib.mrt.utility.TException
      Get object for constructing manifest
      Parameters:
      cloud - Cloud access object interface
      container - container/bucket of cloud storage containing object
      directory - local directory file to contain extracted content from cloud
      logger - Merritt logger
      Throws:
      org.cdlib.mrt.utility.TException
    • build

      public File build(String objectIDS, File outDir, String fileURLS) throws org.cdlib.mrt.utility.TException
      Build manifest.xml
      Parameters:
      objectIDS -
      Returns:
      File containing manifest.xml
      Throws:
      org.cdlib.mrt.utility.TException
    • getVersionMap

      protected org.cdlib.mrt.cloud.VersionMap getVersionMap(org.cdlib.mrt.core.Identifier objectID) throws org.cdlib.mrt.utility.TException
      Throws:
      org.cdlib.mrt.utility.TException