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>
- Author:
- Filip Hrisafov
-
Field Summary
Fields inherited from class org.flowable.common.spring.CommonAutoDeploymentStrategy
deploymentProperties, logger
-
Constructor Summary
ConstructorDescriptionDefaultAutoDeploymentStrategy
(CommonAutoDeploymentProperties deploymentProperties, Set<String> autoDeployTenants) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
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 Details
-
DEPLOYMENT_MODE
The deployment mode this strategy handles.- See Also:
-
autoDeployTenants
-
-
Constructor Details
-
DefaultAutoDeploymentStrategy
public DefaultAutoDeploymentStrategy() -
DefaultAutoDeploymentStrategy
public DefaultAutoDeploymentStrategy(CommonAutoDeploymentProperties deploymentProperties, Set<String> autoDeployTenants)
-
-
Method Details
-
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
-
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
-
isUserAccountDefinitionResource
-