public interface ContentStorage
| Modifier and Type | Method and Description |
|---|---|
default ContentObject |
createContentObject(InputStream contentStream,
ContentObjectStorageMetadata metaData)
Reads the given
InputStream and stores it. |
ContentObject |
createContentObject(InputStream contentStream,
Map<String,Object> metaData)
Deprecated.
|
void |
deleteContentObject(String id)
Deletes the object the given id.
|
ContentObject |
getContentObject(String id) |
String |
getContentStoreName() |
Map<String,Object> |
getMetaData() |
default ContentObject |
updateContentObject(String id,
InputStream contentStream,
ContentObjectStorageMetadata metaData)
Update the content with the given id to the content present in the given stream.
|
ContentObject |
updateContentObject(String id,
InputStream contentStream,
Map<String,Object> metaData)
Deprecated.
|
@Deprecated ContentObject createContentObject(InputStream contentStream, Map<String,Object> metaData)
createContentObject(InputStream, ContentObjectStorageMetadata) insteadcontentStream - metaData - A key-value collection that can be used to change the way the content is stored.InputStream and stores it. Returns a ContentObject with a unique id generated - which can be used for reading the content again.default ContentObject createContentObject(InputStream contentStream, ContentObjectStorageMetadata metaData)
InputStream and stores it.contentStream - the content stream that should be storedmetaData - additional data that can be used to change the way the content is storedContentObject with a unique id generated - which can be used for reading the content again@Deprecated ContentObject updateContentObject(String id, InputStream contentStream, Map<String,Object> metaData)
updateContentObject(String, InputStream, ContentObjectStorageMetadata) insteadid - contentStream - metaData - A key-value collection that can be used to change the way the content is stored.ContentObject with a unique id generated - which can br used for reading the content again.ContentStorageException - When an exception occurred while updating the content and the content is not updated.default ContentObject updateContentObject(String id, InputStream contentStream, ContentObjectStorageMetadata metaData)
id - the id of the content being updatedcontentStream - the content stream that should be updatedmetaData - additional data that can be used to change the way the content is storedContentObject with a unique id generated - which can br used for reading the content again.ContentStorageException - When an exception occurred while updating the content and the content is not updated.ContentObject getContentObject(String id)
ContentObject with the given id.ContentNotFoundException - When the content with the given id does not existMap<String,Object> getMetaData()
ContentObjectvoid deleteContentObject(String id)
id - ContentNotFoundException - When the content with the given id does not existContentStorageException - When an error occurred while deleting the content.String getContentStoreName()
Copyright © 2020 Flowable. All rights reserved.