Package org.cdlib.mrt.s3.tools
Class BuildStoreVersionManifest
java.lang.Object
org.cdlib.mrt.s3.tools.BuildStoreVersionManifest
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 Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
BuildStoreVersionManifest
(NodeService service, org.cdlib.mrt.utility.LoggerInf logger) Constructor -
Method Summary
Modifier and TypeMethodDescriptionBuild manifest.xmlstatic BuildStoreVersionManifest
getBuildStoreVersionManifest
(NodeService service, org.cdlib.mrt.utility.LoggerInf logger) Get object for constructing manifestprotected org.cdlib.mrt.cloud.VersionMap
getVersionMap
(org.cdlib.mrt.core.Identifier objectID) static void
static void
static void
main_qt8vx8f6w6
(String[] args)
-
Field Details
-
NAME
- See Also:
-
MESSAGE
- See Also:
-
DEBUG
protected static final boolean DEBUG- See Also:
-
NL
-
service
-
logger
protected final org.cdlib.mrt.utility.LoggerInf logger
-
-
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 interfacecontainer
- container/bucket of cloud storage containing objectdirectory
- local directory file to contain extracted content from cloudlogger
- Merritt logger- Throws:
org.cdlib.mrt.utility.TException
-
-
Method Details
-
main
- 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
- 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 interfacecontainer
- container/bucket of cloud storage containing objectdirectory
- local directory file to contain extracted content from cloudlogger
- 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
-