public class FileSystemContentStorage extends Object implements org.flowable.content.api.ContentStorage
ContentStorage interface doesn't do anything with the passed metadata, nor returns it when requested!| Constructor and Description |
|---|
FileSystemContentStorage(File contentFolderRoot,
int blockSize,
int depth) |
| Modifier and Type | Method and Description |
|---|---|
org.flowable.content.api.ContentObject |
createContentObject(InputStream contentStream,
Map<String,Object> metaData) |
void |
deleteContentObject(String id) |
protected BigInteger |
fetchNewId() |
org.flowable.content.api.ContentObject |
getContentObject(String id) |
String |
getContentStoreName() |
protected File |
getFileForId(String id,
boolean shouldExist) |
protected File |
getFirstAvailableFolder(int maxRetries) |
protected File |
getMaxChild(File file) |
Map<String,Object> |
getMetaData() |
org.flowable.content.api.ContentObject |
updateContentObject(String id,
InputStream contentStream,
Map<String,Object> metaData) |
public FileSystemContentStorage(File contentFolderRoot, int blockSize, int depth)
contentFolderRoot - root folder where all content will be stored inblockSize - max size of a single folder's childrendepth - depth of the tree created to store content inPathConverterpublic org.flowable.content.api.ContentObject createContentObject(InputStream contentStream, Map<String,Object> metaData)
createContentObject in interface org.flowable.content.api.ContentStoragepublic org.flowable.content.api.ContentObject getContentObject(String id)
getContentObject in interface org.flowable.content.api.ContentStoragepublic Map<String,Object> getMetaData()
getMetaData in interface org.flowable.content.api.ContentStoragepublic org.flowable.content.api.ContentObject updateContentObject(String id, InputStream contentStream, Map<String,Object> metaData)
updateContentObject in interface org.flowable.content.api.ContentStoragepublic void deleteContentObject(String id)
deleteContentObject in interface org.flowable.content.api.ContentStoragepublic String getContentStoreName()
getContentStoreName in interface org.flowable.content.api.ContentStorageprotected File getFileForId(String id, boolean shouldExist)
protected BigInteger fetchNewId()
protected File getFirstAvailableFolder(int maxRetries)
Copyright © 2019. All rights reserved.