Class OperatonFormDefinitionDeployer
java.lang.Object
org.operaton.bpm.engine.impl.AbstractDefinitionDeployer<OperatonFormDefinitionEntity>
org.operaton.bpm.engine.impl.form.deployer.OperatonFormDefinitionDeployer
- All Implemented Interfaces:
Deployer
public class OperatonFormDefinitionDeployer
extends AbstractDefinitionDeployer<OperatonFormDefinitionEntity>
-
Field Summary
FieldsFields inherited from class org.operaton.bpm.engine.impl.AbstractDefinitionDeployer
DIAGRAM_SUFFIXES, idGenerator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDefinitionToDeploymentCache(DeploymentCache deploymentCache, OperatonFormDefinitionEntity definition) Add a definition to the deployment cacheprotected OperatonFormDefinitionEntityfindDefinitionByDeploymentAndKey(String deploymentId, String definitionKey) Find a definition entity by deployment id and definition key.protected OperatonFormDefinitionEntityfindLatestDefinitionByKeyAndTenantId(String definitionKey, String tenantId) Find the last deployed definition entity by definition key and tenant id.protected String[]protected voidpersistDefinition(OperatonFormDefinitionEntity definition) Persist definition entity into the database.protected List<OperatonFormDefinitionEntity> transformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Properties properties) Transform the resource entity into definition entities.Methods inherited from class org.operaton.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 Details
-
LOG
-
FORM_RESOURCE_SUFFIXES
-
-
Constructor Details
-
OperatonFormDefinitionDeployer
public OperatonFormDefinitionDeployer()
-
-
Method Details
-
getResourcesSuffixes
- Specified by:
getResourcesSuffixesin classAbstractDefinitionDeployer<OperatonFormDefinitionEntity>- Returns:
- the list of resource suffixes for this cacheDeployer
-
transformDefinitions
protected List<OperatonFormDefinitionEntity> transformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Properties properties) Description copied from class:AbstractDefinitionDeployerTransform the resource entity into definition entities.- Specified by:
transformDefinitionsin classAbstractDefinitionDeployer<OperatonFormDefinitionEntity>- Parameters:
deployment- the deployment the resources belongs toresource- the resource to transform- Returns:
- a list of transformed definition entities
-
findDefinitionByDeploymentAndKey
protected OperatonFormDefinitionEntity findDefinitionByDeploymentAndKey(String deploymentId, String definitionKey) Description copied from class:AbstractDefinitionDeployerFind a definition entity by deployment id and definition key.- Specified by:
findDefinitionByDeploymentAndKeyin classAbstractDefinitionDeployer<OperatonFormDefinitionEntity>- Parameters:
deploymentId- the deployment iddefinitionKey- the definition key- Returns:
- the corresponding definition entity or null if non is found
-
findLatestDefinitionByKeyAndTenantId
protected OperatonFormDefinitionEntity findLatestDefinitionByKeyAndTenantId(String definitionKey, String tenantId) Description copied from class:AbstractDefinitionDeployerFind the last deployed definition entity by definition key and tenant id.- Specified by:
findLatestDefinitionByKeyAndTenantIdin classAbstractDefinitionDeployer<OperatonFormDefinitionEntity>- Returns:
- the corresponding definition entity or null if non is found
-
persistDefinition
Description copied from class:AbstractDefinitionDeployerPersist definition entity into the database.- Specified by:
persistDefinitionin classAbstractDefinitionDeployer<OperatonFormDefinitionEntity>- Parameters:
definition- the definition entity
-
addDefinitionToDeploymentCache
protected void addDefinitionToDeploymentCache(DeploymentCache deploymentCache, OperatonFormDefinitionEntity definition) Description copied from class:AbstractDefinitionDeployerAdd a definition to the deployment cache- Specified by:
addDefinitionToDeploymentCachein classAbstractDefinitionDeployer<OperatonFormDefinitionEntity>- Parameters:
deploymentCache- the deployment cachedefinition- the definition to add
-