Class CamundaFormDefinitionDeployer
- java.lang.Object
-
- org.camunda.bpm.engine.impl.AbstractDefinitionDeployer<CamundaFormDefinitionEntity>
-
- org.camunda.bpm.engine.impl.form.deployer.CamundaFormDefinitionDeployer
-
- All Implemented Interfaces:
Deployer
public class CamundaFormDefinitionDeployer extends AbstractDefinitionDeployer<CamundaFormDefinitionEntity>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
FORM_RESOURCE_SUFFIXES
protected static EngineUtilLogger
LOG
-
Fields inherited from class org.camunda.bpm.engine.impl.AbstractDefinitionDeployer
DIAGRAM_SUFFIXES, idGenerator
-
-
Constructor Summary
Constructors Constructor Description CamundaFormDefinitionDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addDefinitionToDeploymentCache(DeploymentCache deploymentCache, CamundaFormDefinitionEntity definition)
Add a definition to the deployment cacheprotected CamundaFormDefinitionEntity
findDefinitionByDeploymentAndKey(java.lang.String deploymentId, java.lang.String definitionKey)
Find a definition entity by deployment id and definition key.protected CamundaFormDefinitionEntity
findLatestDefinitionByKeyAndTenantId(java.lang.String definitionKey, java.lang.String tenantId)
Find the last deployed definition entity by definition key and tenant id.protected java.lang.String[]
getResourcesSuffixes()
protected void
persistDefinition(CamundaFormDefinitionEntity definition)
Persist definition entity into the database.protected java.util.List<CamundaFormDefinitionEntity>
transformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Properties properties)
Transform the resource entity into definition entities.-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractDefinitionDeployer
definitionAddedToDeploymentCache, deploy, ensureNoDuplicateDefinitionKeys, generateDefinitionId, getCommandContext, getDefinitionDiagramResourceName, getDeploymentCache, getDiagramResourceForDefinition, getDiagramSuffixes, getGeneralDiagramResourceName, getIdGenerator, getNextVersion, getProcessEngineConfiguration, handlePersistedDefinition, isResourceHandled, loadDefinitions, parseDefinitionResources, persistDefinitions, persistedDefinitionLoaded, postProcessDefinitions, registerDefinition, setIdGenerator, stripDefinitionFileSuffix, transformResource, updateDefinitionByLatestDefinition, updateDefinitionByPersistedDefinition
-
-
-
-
Field Detail
-
LOG
protected static final EngineUtilLogger LOG
-
FORM_RESOURCE_SUFFIXES
public static final java.lang.String[] FORM_RESOURCE_SUFFIXES
-
-
Method Detail
-
getResourcesSuffixes
protected java.lang.String[] getResourcesSuffixes()
- Specified by:
getResourcesSuffixes
in classAbstractDefinitionDeployer<CamundaFormDefinitionEntity>
- Returns:
- the list of resource suffixes for this cacheDeployer
-
transformDefinitions
protected java.util.List<CamundaFormDefinitionEntity> transformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Properties properties)
Description copied from class:AbstractDefinitionDeployer
Transform the resource entity into definition entities.- Specified by:
transformDefinitions
in classAbstractDefinitionDeployer<CamundaFormDefinitionEntity>
- Parameters:
deployment
- the deployment the resources belongs toresource
- the resource to transform- Returns:
- a list of transformed definition entities
-
findDefinitionByDeploymentAndKey
protected CamundaFormDefinitionEntity findDefinitionByDeploymentAndKey(java.lang.String deploymentId, java.lang.String definitionKey)
Description copied from class:AbstractDefinitionDeployer
Find a definition entity by deployment id and definition key.- Specified by:
findDefinitionByDeploymentAndKey
in classAbstractDefinitionDeployer<CamundaFormDefinitionEntity>
- Parameters:
deploymentId
- the deployment iddefinitionKey
- the definition key- Returns:
- the corresponding definition entity or null if non is found
-
findLatestDefinitionByKeyAndTenantId
protected CamundaFormDefinitionEntity findLatestDefinitionByKeyAndTenantId(java.lang.String definitionKey, java.lang.String tenantId)
Description copied from class:AbstractDefinitionDeployer
Find the last deployed definition entity by definition key and tenant id.- Specified by:
findLatestDefinitionByKeyAndTenantId
in classAbstractDefinitionDeployer<CamundaFormDefinitionEntity>
- Returns:
- the corresponding definition entity or null if non is found
-
persistDefinition
protected void persistDefinition(CamundaFormDefinitionEntity definition)
Description copied from class:AbstractDefinitionDeployer
Persist definition entity into the database.- Specified by:
persistDefinition
in classAbstractDefinitionDeployer<CamundaFormDefinitionEntity>
- Parameters:
definition
- the definition entity
-
addDefinitionToDeploymentCache
protected void addDefinitionToDeploymentCache(DeploymentCache deploymentCache, CamundaFormDefinitionEntity definition)
Description copied from class:AbstractDefinitionDeployer
Add a definition to the deployment cache- Specified by:
addDefinitionToDeploymentCache
in classAbstractDefinitionDeployer<CamundaFormDefinitionEntity>
- Parameters:
deploymentCache
- the deployment cachedefinition
- the definition to add
-
-