public class ManifestGeneratorImpl extends Object implements ManifestGenerator
| Constructor and Description |
|---|
ManifestGeneratorImpl(ManifestStore manifestStore,
org.duracloud.storage.util.StorageProviderFactory storageProviderFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected ManifestFormatter |
getFormatter(org.duracloud.common.constant.ManifestFormat format) |
InputStream |
getManifest(String account,
String storeId,
String spaceId,
org.duracloud.common.constant.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(ManifestStore manifestStore, org.duracloud.storage.util.StorageProviderFactory storageProviderFactory)
public InputStream getManifest(String account, String storeId, String spaceId, org.duracloud.common.constant.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(org.duracloud.common.constant.ManifestFormat format) throws ManifestArgumentException
ManifestArgumentExceptionCopyright © 2009–2015 DuraSpace. All rights reserved.