public class ManifestGeneratorImpl extends Object implements ManifestGenerator
Constructor and Description |
---|
ManifestGeneratorImpl(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(ManifestStore manifestStore, StorageProviderFactory storageProviderFactory)
public InputStream getManifest(String account, String storeId, String spaceId, ManifestFormat format) throws ManifestArgumentException, ManifestNotFoundException
ManifestGenerator
getManifest
in interface ManifestGenerator
account
- 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
ManifestNotFoundException
protected String validateStoreId(String storeId) throws ManifestArgumentException
ManifestArgumentException
protected ManifestFormatter getFormatter(ManifestFormat format) throws ManifestArgumentException
ManifestArgumentException
Copyright © 2009–2014 DuraSpace. All rights reserved.