Class DocumentDeploymentBuilderImpl
java.lang.Object
com.flowable.content.engine.impl.repository.DocumentDeploymentBuilderImpl
- All Implemented Interfaces:
DocumentDeploymentBuilder
public class DocumentDeploymentBuilderImpl extends java.lang.Object implements DocumentDeploymentBuilder
-
Field Summary
Fields Modifier and Type Field Description protected DocumentDeploymentEntity
deployment
protected boolean
isDuplicateFilterEnabled
protected DocumentRepositoryServiceImpl
repositoryService
protected DocumentResourceEntityManager
resourceEntityManager
-
Constructor Summary
Constructors Constructor Description DocumentDeploymentBuilderImpl()
-
Method Summary
Modifier and Type Method Description DocumentDeploymentBuilder
addBytes(java.lang.String resourceName, byte[] bytes)
DocumentDeploymentBuilder
addClasspathResource(java.lang.String resource)
DocumentDeploymentBuilder
addInputStream(java.lang.String resourceName, java.io.InputStream inputStream)
DocumentDeploymentBuilder
addString(java.lang.String resourceName, java.lang.String text)
DocumentDeploymentBuilder
addZipInputStream(java.util.zip.ZipInputStream zipInputStream)
DocumentDeploymentBuilder
category(java.lang.String category)
Gives the deployment the given category.DocumentDeployment
deploy()
Deploys all provided sources to the CMMN engine.DocumentDeploymentBuilder
enableDuplicateFiltering()
If set, this deployment will be compared to any previous deployment.DocumentDeployment
getDeployment()
boolean
isDuplicateFilterEnabled()
DocumentDeploymentBuilder
key(java.lang.String key)
Gives the deployment the given key.DocumentDeploymentBuilder
name(java.lang.String name)
Gives the deployment the given name.DocumentDeploymentBuilder
parentDeploymentId(java.lang.String parentDeploymentId)
Gives the deployment the given parent deployment id.protected java.lang.String
stripFoldersFromResourceName(java.lang.String resourceName)
DocumentDeploymentBuilder
tenantId(java.lang.String tenantId)
Gives the deployment the given tenant id.
-
Field Details
-
repositoryService
-
resourceEntityManager
-
deployment
-
isDuplicateFilterEnabled
protected boolean isDuplicateFilterEnabled
-
-
Constructor Details
-
DocumentDeploymentBuilderImpl
public DocumentDeploymentBuilderImpl()
-
-
Method Details
-
addInputStream
public DocumentDeploymentBuilder addInputStream(java.lang.String resourceName, java.io.InputStream inputStream)- Specified by:
addInputStream
in interfaceDocumentDeploymentBuilder
-
addClasspathResource
- Specified by:
addClasspathResource
in interfaceDocumentDeploymentBuilder
-
addString
- Specified by:
addString
in interfaceDocumentDeploymentBuilder
-
addBytes
- Specified by:
addBytes
in interfaceDocumentDeploymentBuilder
-
addZipInputStream
- Specified by:
addZipInputStream
in interfaceDocumentDeploymentBuilder
-
stripFoldersFromResourceName
protected java.lang.String stripFoldersFromResourceName(java.lang.String resourceName) -
name
Description copied from interface:DocumentDeploymentBuilder
Gives the deployment the given name.- Specified by:
name
in interfaceDocumentDeploymentBuilder
-
category
Description copied from interface:DocumentDeploymentBuilder
Gives the deployment the given category.- Specified by:
category
in interfaceDocumentDeploymentBuilder
-
key
Description copied from interface:DocumentDeploymentBuilder
Gives the deployment the given key.- Specified by:
key
in interfaceDocumentDeploymentBuilder
-
parentDeploymentId
Description copied from interface:DocumentDeploymentBuilder
Gives the deployment the given parent deployment id.- Specified by:
parentDeploymentId
in interfaceDocumentDeploymentBuilder
-
tenantId
Description copied from interface:DocumentDeploymentBuilder
Gives the deployment the given tenant id.- Specified by:
tenantId
in interfaceDocumentDeploymentBuilder
-
enableDuplicateFiltering
Description copied from interface:DocumentDeploymentBuilder
If set, this deployment will be compared to any previous deployment. This means that every (non-generated) resource will be compared with the provided resources of this deployment.- Specified by:
enableDuplicateFiltering
in interfaceDocumentDeploymentBuilder
-
deploy
Description copied from interface:DocumentDeploymentBuilder
Deploys all provided sources to the CMMN engine.- Specified by:
deploy
in interfaceDocumentDeploymentBuilder
-
getDeployment
-
isDuplicateFilterEnabled
public boolean isDuplicateFilterEnabled()
-