org.apache.oodt.cas.filemgr.versioning
Class MetadataBasedFileVersioner
java.lang.Object
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: 9683 $
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetadataBasedFileVersioner
public MetadataBasedFileVersioner()
MetadataBasedFileVersioner
public MetadataBasedFileVersioner(String filePathSpec)
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.