Class DefaultAutoDeploymentStrategy
- java.lang.Object
-
- org.flowable.common.spring.CommonAutoDeploymentStrategy<CoreIdmEngine>
-
- com.flowable.idm.engine.autodeployment.AbstractIdmAutoDeploymentStrategy
-
- com.flowable.idm.engine.autodeployment.DefaultAutoDeploymentStrategy
-
- All Implemented Interfaces:
AutoDeploymentStrategy<CoreIdmEngine>
public class DefaultAutoDeploymentStrategy extends AbstractIdmAutoDeploymentStrategy
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>
autoDeployTenants
static String
DEPLOYMENT_MODE
The deployment mode this strategy handles.-
Fields inherited from class org.flowable.common.spring.CommonAutoDeploymentStrategy
deploymentProperties, logger
-
-
Constructor Summary
Constructors Constructor Description DefaultAutoDeploymentStrategy()
DefaultAutoDeploymentStrategy(CommonAutoDeploymentProperties deploymentProperties, Set<String> autoDeployTenants)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addToUserAccountKeyMap(com.fasterxml.jackson.databind.JsonNode definitionNode, Map<String,UserAccountDefinitionModel> userAccountKeyMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected void
addToUserKeyMap(com.fasterxml.jackson.databind.JsonNode definitionNode, Map<String,UserDefinitionModel> userDefinitionKeyMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected void
collectDefinition(Resource resource, Map<String,UserDefinitionModel> userDefinitionKeyMap, Map<String,UserAccountDefinitionModel> userAccountKeyMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected void
collectDefinitions(Resource[] resources, Map<String,UserDefinitionModel> userDefinitionKeyMap, Map<String,UserAccountDefinitionModel> userAccountKeyMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected void
deployResourcesInternal(String deploymentNameHint, Resource[] resources, CoreIdmEngine idmEngine)
protected void
deployUserAccountDefinitions(String deploymentNameHint, Collection<UserAccountDefinitionModel> userAccountDefinitionModels, CoreIdmEngine idmEngine, String tenantId)
protected void
deployUserDefinitions(String deploymentNameHint, Collection<UserDefinitionModel> userDefinitionModels, CoreIdmEngine idmEngine, String tenantId)
protected String
getDeploymentMode()
protected boolean
isUserAccountDefinitionResource(String resourceName)
protected boolean
isUserDefinitionResource(String resourceName)
protected void
readAndConsume(Resource resource, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Consumer<com.fasterxml.jackson.databind.JsonNode> definitionNodeConsumer)
-
Methods inherited from class com.flowable.idm.engine.autodeployment.AbstractIdmAutoDeploymentStrategy
addResource, addResource, addResource, addResource, getLockManager
-
Methods inherited from class org.flowable.common.spring.CommonAutoDeploymentStrategy
deployResources, determineLockName, determineResourceName, getDeploymentLockWaitTime, getDeploymentProperties, getLockName, handlesMode, isThrowExceptionOnDeploymentFailure, isUseLockForDeployments, setDeploymentProperties
-
-
-
-
Field Detail
-
DEPLOYMENT_MODE
public static final String DEPLOYMENT_MODE
The deployment mode this strategy handles.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultAutoDeploymentStrategy
public DefaultAutoDeploymentStrategy()
-
DefaultAutoDeploymentStrategy
public DefaultAutoDeploymentStrategy(CommonAutoDeploymentProperties deploymentProperties, Set<String> autoDeployTenants)
-
-
Method Detail
-
getDeploymentMode
protected String getDeploymentMode()
- Specified by:
getDeploymentMode
in classCommonAutoDeploymentStrategy<CoreIdmEngine>
-
deployResourcesInternal
protected void deployResourcesInternal(String deploymentNameHint, Resource[] resources, CoreIdmEngine idmEngine)
- Specified by:
deployResourcesInternal
in classCommonAutoDeploymentStrategy<CoreIdmEngine>
-
deployUserDefinitions
protected void deployUserDefinitions(String deploymentNameHint, Collection<UserDefinitionModel> userDefinitionModels, CoreIdmEngine idmEngine, String tenantId)
-
deployUserAccountDefinitions
protected void deployUserAccountDefinitions(String deploymentNameHint, Collection<UserAccountDefinitionModel> userAccountDefinitionModels, CoreIdmEngine idmEngine, String tenantId)
-
collectDefinitions
protected void collectDefinitions(Resource[] resources, Map<String,UserDefinitionModel> userDefinitionKeyMap, Map<String,UserAccountDefinitionModel> userAccountKeyMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
collectDefinition
protected void collectDefinition(Resource resource, Map<String,UserDefinitionModel> userDefinitionKeyMap, Map<String,UserAccountDefinitionModel> userAccountKeyMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
readAndConsume
protected void readAndConsume(Resource resource, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Consumer<com.fasterxml.jackson.databind.JsonNode> definitionNodeConsumer)
-
addToUserKeyMap
protected void addToUserKeyMap(com.fasterxml.jackson.databind.JsonNode definitionNode, Map<String,UserDefinitionModel> userDefinitionKeyMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
addToUserAccountKeyMap
protected void addToUserAccountKeyMap(com.fasterxml.jackson.databind.JsonNode definitionNode, Map<String,UserAccountDefinitionModel> userAccountKeyMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
isUserDefinitionResource
protected boolean isUserDefinitionResource(String resourceName)
-
isUserAccountDefinitionResource
protected boolean isUserAccountDefinitionResource(String resourceName)
-
-