|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.repository.DeploymentBuilderImpl
public class DeploymentBuilderImpl
| Field Summary | |
|---|---|
protected boolean |
deployChangedOnly
|
protected DeploymentEntity |
deployment
|
protected Map<String,Set<String>> |
deploymentResourcesById
|
protected Map<String,Set<String>> |
deploymentResourcesByName
|
protected Set<String> |
deployments
|
protected boolean |
isDuplicateFilterEnabled
|
protected String |
nameFromDeployment
|
protected Date |
processDefinitionsActivationDate
|
protected RepositoryServiceImpl |
repositoryService
|
| Constructor Summary | |
|---|---|
DeploymentBuilderImpl(RepositoryServiceImpl repositoryService)
|
|
| Method Summary | |
|---|---|
DeploymentBuilder |
activateProcessDefinitionsOn(Date date)
Sets the date on which the process definitions contained in this deployment will be activated. |
DeploymentBuilder |
addClasspathResource(String resource)
|
DeploymentBuilder |
addDeploymentResourceById(String deploymentId,
String resourceId)
A given resource specified by id and deployment id will be added to the new deployment to re-deploy the given resource. |
DeploymentBuilder |
addDeploymentResourceByName(String deploymentId,
String resourceName)
A given resource specified by name and deployment id will be added to the new deployment to re-deploy the given resource. |
DeploymentBuilder |
addDeploymentResources(String deploymentId)
All existing resources contained by the given deployment will be added to the new deployment to re-deploy them. |
DeploymentBuilder |
addDeploymentResourcesById(String deploymentId,
List<String> resourceIds)
All given resources specified by id and deployment id will be added to the new deployment to re-deploy the given resource. |
DeploymentBuilder |
addDeploymentResourcesByName(String deploymentId,
List<String> resourceNames)
All given resources specified by name and deployment id will be added to the new deployment to re-deploy the given resource. |
DeploymentBuilder |
addInputStream(String resourceName,
InputStream inputStream)
|
DeploymentBuilder |
addModelInstance(String resourceName,
org.camunda.bpm.model.bpmn.BpmnModelInstance modelInstance)
|
DeploymentBuilder |
addString(String resourceName,
String text)
|
DeploymentBuilder |
addZipInputStream(ZipInputStream zipInputStream)
|
Deployment |
deploy()
Deploys all provided sources to the process engine. |
DeploymentBuilder |
enableDuplicateFiltering()
If set, this deployment will be compared to any previous deployment. |
DeploymentBuilder |
enableDuplicateFiltering(boolean deployChangedOnly)
Check the resources for duplicates in the set of previous deployments with same deployment source. |
DeploymentEntity |
getDeployment()
|
Map<String,Set<String>> |
getDeploymentResourcesById()
|
Map<String,Set<String>> |
getDeploymentResourcesByName()
|
Set<String> |
getDeployments()
|
String |
getNameFromDeployment()
|
Date |
getProcessDefinitionsActivationDate()
|
Collection<String> |
getResourceNames()
|
boolean |
isDeployChangedOnly()
|
boolean |
isDuplicateFilterEnabled()
|
DeploymentBuilder |
name(String name)
Gives the deployment the given name. |
DeploymentBuilder |
nameFromDeployment(String deploymentId)
Sets the deployment id to retrieve the deployment name from it. |
DeploymentBuilder |
source(String source)
Sets the source of a deployment. |
DeploymentBuilder |
tenantId(String tenantId)
Sets the tenant id of a deployment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient RepositoryServiceImpl repositoryService
protected DeploymentEntity deployment
protected boolean isDuplicateFilterEnabled
protected boolean deployChangedOnly
protected Date processDefinitionsActivationDate
protected String nameFromDeployment
protected Set<String> deployments
protected Map<String,Set<String>> deploymentResourcesById
protected Map<String,Set<String>> deploymentResourcesByName
| Constructor Detail |
|---|
public DeploymentBuilderImpl(RepositoryServiceImpl repositoryService)
| Method Detail |
|---|
public DeploymentBuilder addInputStream(String resourceName,
InputStream inputStream)
addInputStream in interface DeploymentBuilderpublic DeploymentBuilder addClasspathResource(String resource)
addClasspathResource in interface DeploymentBuilder
public DeploymentBuilder addString(String resourceName,
String text)
addString in interface DeploymentBuilder
public DeploymentBuilder addModelInstance(String resourceName,
org.camunda.bpm.model.bpmn.BpmnModelInstance modelInstance)
addModelInstance in interface DeploymentBuilderpublic DeploymentBuilder addZipInputStream(ZipInputStream zipInputStream)
addZipInputStream in interface DeploymentBuilderpublic DeploymentBuilder addDeploymentResources(String deploymentId)
DeploymentBuilder
addDeploymentResources in interface DeploymentBuilder
public DeploymentBuilder addDeploymentResourceById(String deploymentId,
String resourceId)
DeploymentBuilder
addDeploymentResourceById in interface DeploymentBuilder
public DeploymentBuilder addDeploymentResourcesById(String deploymentId,
List<String> resourceIds)
DeploymentBuilder
addDeploymentResourcesById in interface DeploymentBuilder
public DeploymentBuilder addDeploymentResourceByName(String deploymentId,
String resourceName)
DeploymentBuilder
addDeploymentResourceByName in interface DeploymentBuilder
public DeploymentBuilder addDeploymentResourcesByName(String deploymentId,
List<String> resourceNames)
DeploymentBuilder
addDeploymentResourcesByName in interface DeploymentBuilderpublic DeploymentBuilder name(String name)
DeploymentBuilder
name in interface DeploymentBuilderpublic DeploymentBuilder nameFromDeployment(String deploymentId)
DeploymentBuilder
nameFromDeployment in interface DeploymentBuilderpublic DeploymentBuilder enableDuplicateFiltering()
DeploymentBuilderIf 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. If any resource of this deployment is different to the existing resources, all resources are re-deployed.
Deprecated: use DeploymentBuilder.enableDuplicateFiltering(boolean)
enableDuplicateFiltering in interface DeploymentBuilderpublic DeploymentBuilder enableDuplicateFiltering(boolean deployChangedOnly)
DeploymentBuilderdeployChangedOnly.
enableDuplicateFiltering in interface DeploymentBuilderdeployChangedOnly - determines whether only those resources should be
deployed that have changed from the previous versions of the deployment.
If false, all of the resources are re-deployed if any resource differs.public DeploymentBuilder activateProcessDefinitionsOn(Date date)
DeploymentBuilder
activateProcessDefinitionsOn in interface DeploymentBuilderpublic DeploymentBuilder source(String source)
DeploymentBuilderSets the source of a deployment.
Furthermore if duplicate check of deployment resources is enabled (by calling
DeploymentBuilder.enableDuplicateFiltering(boolean)) then only previous deployments
with the same given source are considered to perform the duplicate check.
source in interface DeploymentBuilderpublic DeploymentBuilder tenantId(String tenantId)
DeploymentBuilder
tenantId in interface DeploymentBuilderpublic Deployment deploy()
DeploymentBuilder
deploy in interface DeploymentBuilderpublic Collection<String> getResourceNames()
getResourceNames in interface DeploymentBuilderpublic DeploymentEntity getDeployment()
public boolean isDuplicateFilterEnabled()
public boolean isDeployChangedOnly()
public Date getProcessDefinitionsActivationDate()
public String getNameFromDeployment()
public Set<String> getDeployments()
public Map<String,Set<String>> getDeploymentResourcesById()
public Map<String,Set<String>> getDeploymentResourcesByName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||