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

java.lang.Object
  extended by org.apache.oodt.cas.filemgr.versioning.MetadataBasedFileVersioner
All Implemented Interfaces:
Versioner
Direct Known Subclasses:
AcquisitionDateVersioner, DirectoryProductVersioner

public class MetadataBasedFileVersioner
extends Object
implements Versioner

Version:
$Revision: 11462 $

A Versioner class that uses Metadata fields and a given filePathSpec to version references. The filePathSpec should be of the form:

/[FieldName1]/other/text/.../[FieldName2]... where FieldName1 and FieldName2 are Metadata fields provided by the given Metadata object.

.
Author:
mattmann

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

Constructor Detail

MetadataBasedFileVersioner

public MetadataBasedFileVersioner()

MetadataBasedFileVersioner

public MetadataBasedFileVersioner(String filePathSpec)
Method Detail

createDataStoreReferences

public void createDataStoreReferences(Product product,
                                      org.apache.oodt.cas.metadata.Metadata metadata)
                               throws VersioningException
Specified by:
createDataStoreReferences in interface Versioner
Throws:
VersioningException

getFilePathSpec

public String getFilePathSpec()
Returns:
the filePathSpec

setFilePathSpec

public void setFilePathSpec(String filePathSpec)
Parameters:
filePathSpec - the filePathSpec to set

isFlatProducts

public boolean isFlatProducts()
Returns:
the flatProducts

setFlatProducts

public void setFlatProducts(boolean flatProducts)
Parameters:
flatProducts - the flatProducts to set


Copyright © 1999-2011 Apache OODT. All Rights Reserved.