org.apache.oodt.cas.filemgr.versioning
Class AcquisitionDateVersioner
java.lang.Object
org.apache.oodt.cas.filemgr.versioning.MetadataBasedFileVersioner
org.apache.oodt.cas.filemgr.versioning.AcquisitionDateVersioner
- All Implemented Interfaces:
- Versioner
public class AcquisitionDateVersioner
- extends MetadataBasedFileVersioner
Store products under /[AcquisitionDate]/[Filename].
Assumes the existence of:
<code>AcquisitionDate</code> - if present, takes as is, and assumes
it is in the yyMMdd format.<br/>
<code>StartDateTime</code> - if present, assumes it is in yyyy-MM-ddTHH:mm:ss.000Z,
or ISO8601 format, reformats it to yyMMdd, and then uses it for the value
of <code>AcquisitionDate</code><br/>
If neither of the above met fields are present, the Versioner will generate a
new DateTime, and use the value of it (formatted as yyMMdd) for the
AcquisitionDate.
- Version:
- $Revision: 13181 $
- Author:
- mattmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACQUISITION_DATE
protected static final String ACQUISITION_DATE
- See Also:
- Constant Field Values
ACQ_DATE_FORMAT
protected static String ACQ_DATE_FORMAT
START_DATE_TIME
protected static final String START_DATE_TIME
- See Also:
- Constant Field Values
AcquisitionDateVersioner
public AcquisitionDateVersioner()
createDataStoreReferences
public void createDataStoreReferences(Product product,
org.apache.oodt.cas.metadata.Metadata metadata)
throws VersioningException
- Specified by:
createDataStoreReferences
in interface Versioner
- Overrides:
createDataStoreReferences
in class MetadataBasedFileVersioner
- Throws:
VersioningException
Copyright © 1999-2011 Apache OODT. All Rights Reserved.