org.camunda.bpm.engine.impl.repository
Class DeploymentBuilderImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.repository.DeploymentBuilderImpl
All Implemented Interfaces:
Serializable, DeploymentBuilder
Direct Known Subclasses:
ProcessApplicationDeploymentBuilderImpl

public class DeploymentBuilderImpl
extends Object
implements DeploymentBuilder, Serializable

Author:
Tom Baeyens, Joram Barrez
See Also:
Serialized Form

Field Summary
protected  boolean deployChangedOnly
           
protected  DeploymentEntity deployment
           
protected  boolean isDuplicateFilterEnabled
           
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 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.
 DeploymentEntity getDeployment()
           
 Date getProcessDefinitionsActivationDate()
           
 Collection<String> getResourceNames()
           
 boolean isDeployChangedOnly()
           
 boolean isDuplicateFilterEnabled()
           
 DeploymentBuilder name(String name)
          Gives the deployment the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repositoryService

protected transient RepositoryServiceImpl repositoryService

deployment

protected DeploymentEntity deployment

isDuplicateFilterEnabled

protected boolean isDuplicateFilterEnabled

deployChangedOnly

protected boolean deployChangedOnly

processDefinitionsActivationDate

protected Date processDefinitionsActivationDate
Constructor Detail

DeploymentBuilderImpl

public DeploymentBuilderImpl(RepositoryServiceImpl repositoryService)
Method Detail

addInputStream

public DeploymentBuilder addInputStream(String resourceName,
                                        InputStream inputStream)
Specified by:
addInputStream in interface DeploymentBuilder

addClasspathResource

public DeploymentBuilder addClasspathResource(String resource)
Specified by:
addClasspathResource in interface DeploymentBuilder

addString

public DeploymentBuilder addString(String resourceName,
                                   String text)
Specified by:
addString in interface DeploymentBuilder

addModelInstance

public DeploymentBuilder addModelInstance(String resourceName,
                                          org.camunda.bpm.model.bpmn.BpmnModelInstance modelInstance)
Specified by:
addModelInstance in interface DeploymentBuilder

addZipInputStream

public DeploymentBuilder addZipInputStream(ZipInputStream zipInputStream)
Specified by:
addZipInputStream in interface DeploymentBuilder

name

public DeploymentBuilder name(String name)
Description copied from interface: DeploymentBuilder
Gives the deployment the given name.

Specified by:
name in interface DeploymentBuilder

enableDuplicateFiltering

public DeploymentBuilder enableDuplicateFiltering()
Description copied from interface: DeploymentBuilder

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. If any resource of this deployment is different to the existing resources, all resources are re-deployed.

Deprecated: use DeploymentBuilder.enableDuplicateFiltering(boolean)

Specified by:
enableDuplicateFiltering in interface DeploymentBuilder

enableDuplicateFiltering

public DeploymentBuilder enableDuplicateFiltering(boolean deployChangedOnly)
Description copied from interface: DeploymentBuilder
Check the resources for duplicates in the set of previous deployments. If no resources have changed in this deployment, its contained resources are not deployed at all. For further configuration, use the parameter deployChangedOnly.

Specified by:
enableDuplicateFiltering in interface DeploymentBuilder
Parameters:
deployChangedOnly - 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.

activateProcessDefinitionsOn

public DeploymentBuilder activateProcessDefinitionsOn(Date date)
Description copied from interface: DeploymentBuilder
Sets the date on which the process definitions contained in this deployment will be activated. This means that all process definitions will be deployed as usual, but they will be suspended from the start until the given activation date.

Specified by:
activateProcessDefinitionsOn in interface DeploymentBuilder

deploy

public Deployment deploy()
Description copied from interface: DeploymentBuilder
Deploys all provided sources to the process engine.

Specified by:
deploy in interface DeploymentBuilder

getResourceNames

public Collection<String> getResourceNames()
Specified by:
getResourceNames in interface DeploymentBuilder
Returns:
the names of the resources which were added to this builder.

getDeployment

public DeploymentEntity getDeployment()

isDuplicateFilterEnabled

public boolean isDuplicateFilterEnabled()

isDeployChangedOnly

public boolean isDeployChangedOnly()

getProcessDefinitionsActivationDate

public Date getProcessDefinitionsActivationDate()


Copyright © 2015 camunda services GmbH. All rights reserved.