Class SimpleFileSystemContentStorage
java.lang.Object
com.flowable.content.engine.impl.AbstractContentStorage
com.flowable.content.engine.impl.fs.SimpleFileSystemContentStorage
- All Implemented Interfaces:
ContentStorage
public class SimpleFileSystemContentStorage
extends AbstractContentStorage
implements ContentStorage
(Very) simple implementation of the
ContentStorage that relies on the passed metadata to store content.
Under a root folder, a division between 'task' and 'process-instance' content is made. New content gets a new UUID assigned and is placed in one of these folders.
The id of the returned ContentObject indicates in which folder it is stored.- Author:
- Joram Barrez
-
Nested Class Summary
Nested classes/interfaces inherited from class com.flowable.content.engine.impl.AbstractContentStorage
AbstractContentStorage.MapBasedContentObjectStorageMetadata -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Fileprotected Fileprotected Fileprotected Fileprotected FileFields inherited from class com.flowable.content.engine.impl.AbstractContentStorage
CASE_PREFIX, PROCESS_INSTANCE_PREFIX, TASK_PREFIX, TYPE_CASE_INSTANCE, TYPE_PROCESS_INSTANCE, TYPE_TASK, TYPE_UNCATEGORIZED, UNCATEGORIZED_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContentObject(InputStream contentStream, ContentObjectStorageMetadata metaData) protected Filevoidprotected FilegetContentFile(String id) protected FilegetContentFile(ContentObjectStorageMetadata metaData, String contentId) protected FileinternalCreateOrGetFolder(File parentFolder, String id) updateContentObject(String id, InputStream contentStream, ContentObjectStorageMetadata metaData) protected FilevalidateOrCreateFolder(String folderName) protected voidMethods inherited from class com.flowable.content.engine.impl.AbstractContentStorage
convertMetaDataToMap, createContentObject, determineType, generateContentId, updateContentObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.content.api.ContentStorage
createContentObject, updateContentObject
-
Field Details
-
contentFolderRoot
-
taskFolder
-
processInstanceFolder
-
caseFolder
-
uncategorizedFolder
-
-
Constructor Details
-
SimpleFileSystemContentStorage
-
-
Method Details
-
validateOrCreateSubfolders
protected void validateOrCreateSubfolders() -
validateOrCreateFolder
-
createContentObject
public ContentObject createContentObject(InputStream contentStream, ContentObjectStorageMetadata metaData) - Specified by:
createContentObjectin interfaceContentStorage
-
updateContentObject
public ContentObject updateContentObject(String id, InputStream contentStream, ContentObjectStorageMetadata metaData) - Specified by:
updateContentObjectin interfaceContentStorage
-
getContentObject
- Specified by:
getContentObjectin interfaceContentStorage
-
getContentFile
-
getMetaData
- Specified by:
getMetaDatain interfaceContentStorage
-
deleteContentObject
- Specified by:
deleteContentObjectin interfaceContentStorage
-
getContentStoreName
- Specified by:
getContentStoreNamein interfaceContentStorage
-
getContentFile
-
createOrGetFolderBasedOnMetaData
-
internalCreateOrGetFolder
-