public class FileSystemContentStorage extends Object implements 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) |
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 inPathConverter@Deprecated public ContentObject createContentObject(InputStream contentStream, Map<String,Object> metaData)
createContentObject in interface ContentStoragemetaData - 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.public ContentObject createContentObject(InputStream contentStream, ContentObjectStorageMetadata metaData)
ContentStorageInputStream and stores it.createContentObject in interface ContentStoragecontentStream - 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 againprotected ContentObject createContentObject(InputStream contentStream)
public ContentObject getContentObject(String id)
getContentObject in interface ContentStorageContentObject with the given id.public Map<String,Object> getMetaData()
getMetaData in interface ContentStorageContentObject@Deprecated public ContentObject updateContentObject(String id, InputStream contentStream, Map<String,Object> metaData)
ContentStorageupdateContentObject in interface ContentStoragemetaData - 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.public ContentObject updateContentObject(String id, InputStream contentStream, ContentObjectStorageMetadata metaData)
ContentStorageupdateContentObject in interface ContentStorageid - 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.protected ContentObject updateContentObject(String id, InputStream contentStream)
public void deleteContentObject(String id)
ContentStoragedeleteContentObject in interface ContentStoragepublic String getContentStoreName()
getContentStoreName in interface ContentStorageprotected File getFileForId(String id, boolean shouldExist)
protected BigInteger fetchNewId()
protected File getFirstAvailableFolder(int maxRetries)
Copyright © 2023 Flowable. All rights reserved.