Package org.deltafi.common.content
Class ContentStorageService
java.lang.Object
org.deltafi.common.content.ContentStorageService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(ContentReference contentReference) voidload(ContentReference contentReference) save(String did, InputStream inputStream, String mediaType) saveMany(String did, LinkedHashMap<String, byte[]> contentToBytes)
-
Field Details
-
CONTENT_BUCKET
- See Also:
-
-
Constructor Details
-
ContentStorageService
public ContentStorageService()
-
-
Method Details
-
load
- Throws:
ObjectStorageException
-
save
public ContentReference save(String did, byte[] content, String mediaType) throws ObjectStorageException - Throws:
ObjectStorageException
-
saveMany
public List<Content> saveMany(String did, LinkedHashMap<String, byte[]> contentToBytes) throws ObjectStorageException- Throws:
ObjectStorageException
-
save
public ContentReference save(String did, InputStream inputStream, String mediaType) throws ObjectStorageException - Throws:
ObjectStorageException
-
delete
-
deleteAll
-