public class ManifestGeneratorImpl extends Object implements ManifestGenerator
| Constructor and Description |
|---|
ManifestGeneratorImpl(org.duracloud.mill.manifest.ManifestStore manifestStore,
StorageProviderFactory storageProviderFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected ManifestFormatter |
getFormatter(ManifestFormat format) |
InputStream |
getManifest(String account,
String storeId,
String spaceId,
ManifestFormat format)
This method generates the manifest for the given args.
|
protected void |
validateSpaceId(String storeId,
String spaceId) |
protected String |
validateStoreId(String storeId) |
public ManifestGeneratorImpl(org.duracloud.mill.manifest.ManifestStore manifestStore,
StorageProviderFactory storageProviderFactory)
public InputStream getManifest(String account, String storeId, String spaceId, ManifestFormat format) throws ManifestArgumentException, ManifestNotFoundException
ManifestGeneratorgetManifest in interface ManifestGeneratoraccount - of manifest itemsstoreId - of manifest itemsspaceId - of manifest itemsformat - of manifestInputStream of manifest contentManifestArgumentException - if format or date are invalidManifestNotFoundException - if no manifest is createdprotected void validateSpaceId(String storeId, String spaceId) throws ManifestNotFoundException
ManifestNotFoundExceptionprotected String validateStoreId(String storeId) throws ManifestArgumentException
ManifestArgumentExceptionprotected ManifestFormatter getFormatter(ManifestFormat format) throws ManifestArgumentException
ManifestArgumentExceptionCopyright © 2009–2016 DuraSpace. All rights reserved.