Class ActionDeploymentBuilderImpl
- java.lang.Object
-
- com.flowable.action.engine.impl.repository.ActionDeploymentBuilderImpl
-
- All Implemented Interfaces:
ActionDeploymentBuilder
public class ActionDeploymentBuilderImpl extends Object implements ActionDeploymentBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected ActionDeploymentEntity
deployment
protected boolean
isDuplicateFilterEnabled
protected ActionRepositoryServiceImpl
repositoryService
protected ActionResourceEntityManager
resourceEntityManager
-
Constructor Summary
Constructors Constructor Description ActionDeploymentBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionDeploymentBuilder
addBytes(String resourceName, byte[] bytes)
ActionDeploymentBuilder
addClasspathResource(String resource)
ActionDeploymentBuilder
addInputStream(String resourceName, InputStream inputStream)
ActionDeploymentBuilder
addString(String resourceName, String text)
ActionDeploymentBuilder
addZipInputStream(ZipInputStream zipInputStream)
ActionDeploymentBuilder
category(String category)
Gives the deployment the given category.ActionDeployment
deploy()
Deploys all provided sources to the CMMN engine.ActionDeploymentBuilder
enableDuplicateFiltering()
If set, this deployment will be compared to any previous deployment.ActionDeployment
getDeployment()
boolean
isDuplicateFilterEnabled()
ActionDeploymentBuilder
key(String key)
Gives the deployment the given key.ActionDeploymentBuilder
name(String name)
Gives the deployment the given name.ActionDeploymentBuilder
parentDeploymentId(String parentDeploymentId)
Gives the deployment the given parent deployment id.protected String
stripFoldersFromResourceName(String resourceName)
ActionDeploymentBuilder
tenantId(String tenantId)
Gives the deployment the given tenant id.
-
-
-
Field Detail
-
repositoryService
protected ActionRepositoryServiceImpl repositoryService
-
resourceEntityManager
protected ActionResourceEntityManager resourceEntityManager
-
deployment
protected ActionDeploymentEntity deployment
-
isDuplicateFilterEnabled
protected boolean isDuplicateFilterEnabled
-
-
Method Detail
-
addInputStream
public ActionDeploymentBuilder addInputStream(String resourceName, InputStream inputStream)
- Specified by:
addInputStream
in interfaceActionDeploymentBuilder
-
addClasspathResource
public ActionDeploymentBuilder addClasspathResource(String resource)
- Specified by:
addClasspathResource
in interfaceActionDeploymentBuilder
-
addString
public ActionDeploymentBuilder addString(String resourceName, String text)
- Specified by:
addString
in interfaceActionDeploymentBuilder
-
addBytes
public ActionDeploymentBuilder addBytes(String resourceName, byte[] bytes)
- Specified by:
addBytes
in interfaceActionDeploymentBuilder
-
addZipInputStream
public ActionDeploymentBuilder addZipInputStream(ZipInputStream zipInputStream)
- Specified by:
addZipInputStream
in interfaceActionDeploymentBuilder
-
name
public ActionDeploymentBuilder name(String name)
Description copied from interface:ActionDeploymentBuilder
Gives the deployment the given name.- Specified by:
name
in interfaceActionDeploymentBuilder
-
category
public ActionDeploymentBuilder category(String category)
Description copied from interface:ActionDeploymentBuilder
Gives the deployment the given category.- Specified by:
category
in interfaceActionDeploymentBuilder
-
key
public ActionDeploymentBuilder key(String key)
Description copied from interface:ActionDeploymentBuilder
Gives the deployment the given key.- Specified by:
key
in interfaceActionDeploymentBuilder
-
parentDeploymentId
public ActionDeploymentBuilder parentDeploymentId(String parentDeploymentId)
Description copied from interface:ActionDeploymentBuilder
Gives the deployment the given parent deployment id.- Specified by:
parentDeploymentId
in interfaceActionDeploymentBuilder
-
tenantId
public ActionDeploymentBuilder tenantId(String tenantId)
Description copied from interface:ActionDeploymentBuilder
Gives the deployment the given tenant id.- Specified by:
tenantId
in interfaceActionDeploymentBuilder
-
enableDuplicateFiltering
public ActionDeploymentBuilder enableDuplicateFiltering()
Description copied from interface:ActionDeploymentBuilder
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 interfaceActionDeploymentBuilder
-
deploy
public ActionDeployment deploy()
Description copied from interface:ActionDeploymentBuilder
Deploys all provided sources to the CMMN engine.- Specified by:
deploy
in interfaceActionDeploymentBuilder
-
getDeployment
public ActionDeployment getDeployment()
-
isDuplicateFilterEnabled
public boolean isDuplicateFilterEnabled()
-
-