org.duracloud.manifest.impl
Class ManifestGeneratorImpl

java.lang.Object
  extended by org.duracloud.manifest.impl.ManifestGeneratorImpl
All Implemented Interfaces:
LocalManifestGenerator, ManifestGenerator

public class ManifestGeneratorImpl
extends Object
implements LocalManifestGenerator

This class manages the generation of content manifests.

Author:
Andrew Woods Date: 3/27/12

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.duracloud.manifest.ManifestGenerator
ManifestGenerator.FORMAT
 
Constructor Summary
ManifestGeneratorImpl(Auditor auditor, String auditLogSpace, org.apache.commons.io.FileCleaningTracker fileCleaningTracker)
           
 
Method Summary
 InputStream getManifest(String storeId, String spaceId, ManifestGenerator.FORMAT format, Date asOfDate)
          This method generates the manifest for the given args.
 void initialize(ContentStoreManager storeManager)
          This method initializes the Manifest Generator by providing a handle to the content store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManifestGeneratorImpl

public ManifestGeneratorImpl(Auditor auditor,
                             String auditLogSpace,
                             org.apache.commons.io.FileCleaningTracker fileCleaningTracker)
Method Detail

initialize

public void initialize(ContentStoreManager storeManager)
Description copied from interface: LocalManifestGenerator
This method initializes the Manifest Generator by providing a handle to the content store.

Specified by:
initialize in interface LocalManifestGenerator
Parameters:
storeManager - storage manager

getManifest

public InputStream getManifest(String storeId,
                               String spaceId,
                               ManifestGenerator.FORMAT format,
                               Date asOfDate)
                        throws ManifestArgumentException,
                               ManifestEmptyException
Description copied from interface: ManifestGenerator
This method generates the manifest for the given args.

Specified by:
getManifest in interface ManifestGenerator
Parameters:
storeId - of manifest items
spaceId - of manifest items
format - of manifest (see ManifestGenerator.FORMAT)
asOfDate - of manifest items (format: 'EEE, d MMM yyyy HH:mm:ss z')
Returns:
InputStream of manifest content
Throws:
ManifestArgumentException - if format or date are invalid
ManifestEmptyException - if no manifest is created


Copyright © 2009-2012 DuraSpace. All Rights Reserved.