Package org.deltafi.common.content
Class ContentStorageService
- java.lang.Object
-
- org.deltafi.common.content.ContentStorageService
-
public class ContentStorageService extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ContentStorageService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(ContentReference contentReference)booleandeleteAll(java.util.List<java.lang.String> dids)java.util.Set<java.lang.String>findDidsLastModifiedBefore(java.time.ZonedDateTime lastModifiedBefore)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)
-
-
-
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 boolean deleteAll(java.util.List<java.lang.String> dids)
-
findDidsLastModifiedBefore
public java.util.Set<java.lang.String> findDidsLastModifiedBefore(java.time.ZonedDateTime lastModifiedBefore)
-
-