Package org.deltafi.common.content
Class ContentStorageService
- java.lang.Object
-
- org.deltafi.common.content.ContentStorageService
-
public class ContentStorageService extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTENT_BUCKET
-
Constructor Summary
Constructors Constructor Description ContentStorageService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(ContentReference contentReference)voiddeleteAll(java.util.List<ContentReference> contentReferences)java.io.InputStreamload(ContentReference contentReference)ContentReferencesave(java.lang.String did, byte[] content, java.lang.String mediaType)ContentReferencesave(java.lang.String did, java.io.InputStream inputStream, java.lang.String mediaType)
-
-
-
Field Detail
-
CONTENT_BUCKET
public static final java.lang.String CONTENT_BUCKET
- See Also:
- Constant Field Values
-
-
Method Detail
-
load
public java.io.InputStream load(ContentReference contentReference) throws ObjectStorageException
- Throws:
ObjectStorageException
-
save
public ContentReference save(java.lang.String did, byte[] content, java.lang.String mediaType) throws ObjectStorageException
- Throws:
ObjectStorageException
-
save
public ContentReference save(java.lang.String did, java.io.InputStream inputStream, java.lang.String mediaType) throws ObjectStorageException
- Throws:
ObjectStorageException
-
delete
public void delete(ContentReference contentReference)
-
deleteAll
public void deleteAll(java.util.List<ContentReference> contentReferences)
-
-