Package org.duracloud.manifest.impl
Class ManifestGeneratorImpl
java.lang.Object
org.duracloud.manifest.impl.ManifestGeneratorImpl
- All Implemented Interfaces:
ManifestGenerator
- Author:
- Daniel Bernstein Date: Sept. 16, 2014
-
Constructor Summary
ConstructorsConstructorDescriptionManifestGeneratorImpl(org.duracloud.mill.manifest.ManifestStore manifestStore, StorageProviderFactory storageProviderFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected ManifestFormattergetFormatter(ManifestFormat format) getManifest(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 Details
-
ManifestGeneratorImpl
public ManifestGeneratorImpl(org.duracloud.mill.manifest.ManifestStore manifestStore, StorageProviderFactory storageProviderFactory)
-
-
Method Details
-
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
- Throws:
ManifestNotFoundException
-
validateStoreId
- Throws:
ManifestArgumentException
-
getFormatter
- Throws:
ManifestArgumentException
-