public interface ContentStorage
| Modifier and Type | Method and Description |
|---|---|
ContentObject |
createContentObject(InputStream contentStream,
Map<String,Object> metaData) |
void |
deleteContentObject(String id)
Deletes the object the given id.
|
ContentObject |
getContentObject(String id) |
String |
getContentStoreName() |
Map<String,Object> |
getMetaData() |
ContentObject |
updateContentObject(String id,
InputStream contentStream,
Map<String,Object> metaData)
Update the content with the given id to the content present in the given stream.
|
ContentObject createContentObject(InputStream contentStream, Map<String,Object> metaData)
contentStream - 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.ContentObject updateContentObject(String id, InputStream contentStream, Map<String,Object> metaData)
id - 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.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 © 2019 Flowable. All rights reserved.