org.apache.oodt.cas.filemgr.versioning
Class AcquisitionDateVersioner

java.lang.Object
  extended by org.apache.oodt.cas.filemgr.versioning.MetadataBasedFileVersioner
      extended by 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

Field Summary
protected static String ACQ_DATE_FORMAT
           
protected static String ACQUISITION_DATE
           
protected static String START_DATE_TIME
           
 
Fields inherited from interface org.apache.oodt.cas.filemgr.versioning.Versioner
X_POINT_ID
 
Constructor Summary
AcquisitionDateVersioner()
           
 
Method Summary
 void createDataStoreReferences(Product product, org.apache.oodt.cas.metadata.Metadata metadata)
           
 
Methods inherited from class org.apache.oodt.cas.filemgr.versioning.MetadataBasedFileVersioner
getFilePathSpec, isFlatProducts, setFilePathSpec, setFlatProducts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AcquisitionDateVersioner

public AcquisitionDateVersioner()
Method Detail

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.