Package org.duracloud.manifest.impl
Class ManifestGeneratorImpl
- java.lang.Object
-
- org.duracloud.manifest.impl.ManifestGeneratorImpl
-
- All Implemented Interfaces:
ManifestGenerator
public class ManifestGeneratorImpl extends Object implements ManifestGenerator
- Author:
- Daniel Bernstein Date: Sept. 16, 2014
-
-
Constructor Summary
Constructors Constructor Description ManifestGeneratorImpl(org.duracloud.mill.manifest.ManifestStore manifestStore, StorageProviderFactory storageProviderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ManifestFormattergetFormatter(ManifestFormat format)InputStreamgetManifest(String account, String storeId, String spaceId, ManifestFormat format)This method generates the manifest for the given args.protected voidvalidateSpaceId(String storeId, String spaceId)protected StringvalidateStoreId(String storeId)
-
-
-
Constructor Detail
-
ManifestGeneratorImpl
public ManifestGeneratorImpl(org.duracloud.mill.manifest.ManifestStore manifestStore, StorageProviderFactory storageProviderFactory)
-
-
Method Detail
-
getManifest
public InputStream getManifest(String account, String storeId, String spaceId, ManifestFormat format) throws ManifestArgumentException, ManifestNotFoundException
Description copied from interface:ManifestGeneratorThis method generates the manifest for the given args.- Specified by:
getManifestin interfaceManifestGenerator- Parameters:
account- of manifest itemsstoreId- of manifest itemsspaceId- of manifest itemsformat- of manifest- Returns:
InputStreamof manifest content- Throws:
ManifestArgumentException- if format or date are invalidManifestNotFoundException- if no manifest is created
-
validateSpaceId
protected void validateSpaceId(String storeId, String spaceId) throws ManifestNotFoundException
- Throws:
ManifestNotFoundException
-
validateStoreId
protected String validateStoreId(String storeId) throws ManifestArgumentException
- Throws:
ManifestArgumentException
-
getFormatter
protected ManifestFormatter getFormatter(ManifestFormat format) throws ManifestArgumentException
- Throws:
ManifestArgumentException
-
-