Class TemplateVariationDefinitionDeployer
java.lang.Object
com.flowable.template.engine.impl.deployer.BaseDefinitionDeployer
com.flowable.template.engine.impl.deployer.TemplateVariationDefinitionDeployer
- All Implemented Interfaces:
EngineDeployer
public class TemplateVariationDefinitionDeployer
extends BaseDefinitionDeployer
implements EngineDeployer
- Author:
- Tijs Rademakers
-
Field Summary
Fields inherited from class com.flowable.template.engine.impl.deployer.BaseDefinitionDeployer
VERSION_DATE_FORMAT, VERSION_DATETIME_FORMAT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
createContentItemIfNeeded
(TemplateEngineConfiguration templateEngineConfiguration, TemplateVariationDefinitionEntity templateVariationDefinition, TemplateVariationModel templateVariationModel, Map<String, EngineResource> resources) void
deploy
(EngineDeployment deployment, Map<String, Object> deploymentSettings) protected Map<String,
CoreContentItem> protected TemplateVariationDefinitionEntity
getMostRecentVersionOfTemplateVariationDefinition
(TemplateVariationModel templateVariationModel, String tenantId) protected String
getOrCreateRootFolderId
(TemplateEngineConfiguration templateEngineConfiguration, CoreContentService contentService, Map<String, CoreContentItem> cachedFolders, String tenantId) protected CoreContentItem
getOrCreateTemplatesFolder
(String tenantId, TemplateEngineConfiguration templateEngineConfiguration, CoreContentService contentService) protected TemplateVariationDefinitionEntity
getPersistedInstanceOfTemplateVariationDefinition
(String templateDefinitionKey, String variationKey, String deploymentId, String tenantId) protected void
processTemplateVariationResource
(TemplateEngineConfiguration templateEngineConfiguration, com.fasterxml.jackson.databind.JsonNode variationNode, String resourceName, TemplateDeploymentEntity deploymentEntity, Map<String, EngineResource> resources) protected void
updateCachingAndArtifacts
(TemplateVariationDefinitionEntity templateVariationDefinition, TemplateVariationModel templateVariationResourceModel, TemplateDeploymentEntity deployment) Methods inherited from class com.flowable.template.engine.impl.deployer.BaseDefinitionDeployer
timestampVersionIsNewer
-
Constructor Details
-
TemplateVariationDefinitionDeployer
public TemplateVariationDefinitionDeployer()
-
-
Method Details
-
deploy
- Specified by:
deploy
in interfaceEngineDeployer
-
processTemplateVariationResource
protected void processTemplateVariationResource(TemplateEngineConfiguration templateEngineConfiguration, com.fasterxml.jackson.databind.JsonNode variationNode, String resourceName, TemplateDeploymentEntity deploymentEntity, Map<String, EngineResource> resources) -
createContentItemIfNeeded
protected void createContentItemIfNeeded(TemplateEngineConfiguration templateEngineConfiguration, TemplateVariationDefinitionEntity templateVariationDefinition, TemplateVariationModel templateVariationModel, Map<String, EngineResource> resources) -
getOrCreateTemplatesFolder
protected CoreContentItem getOrCreateTemplatesFolder(String tenantId, TemplateEngineConfiguration templateEngineConfiguration, CoreContentService contentService) -
getOrCreateRootFolderId
protected String getOrCreateRootFolderId(TemplateEngineConfiguration templateEngineConfiguration, CoreContentService contentService, Map<String, CoreContentItem> cachedFolders, String tenantId) -
getCachedFolders
-
getMostRecentVersionOfTemplateVariationDefinition
protected TemplateVariationDefinitionEntity getMostRecentVersionOfTemplateVariationDefinition(TemplateVariationModel templateVariationModel, String tenantId) -
getPersistedInstanceOfTemplateVariationDefinition
protected TemplateVariationDefinitionEntity getPersistedInstanceOfTemplateVariationDefinition(String templateDefinitionKey, String variationKey, String deploymentId, String tenantId) -
updateCachingAndArtifacts
protected void updateCachingAndArtifacts(TemplateVariationDefinitionEntity templateVariationDefinition, TemplateVariationModel templateVariationResourceModel, TemplateDeploymentEntity deployment)
-