public class DefaultAutoDeploymentStrategy extends AbstractIdmAutoDeploymentStrategy
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
autoDeployTenants |
static String |
DEPLOYMENT_MODE
The deployment mode this strategy handles.
|
deploymentProperties, logger
Constructor and Description |
---|
DefaultAutoDeploymentStrategy() |
DefaultAutoDeploymentStrategy(CommonAutoDeploymentProperties deploymentProperties,
Set<String> autoDeployTenants) |
Modifier and Type | Method and 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) |
addResource, addResource, addResource, addResource, getLockManager
deployResources, determineLockName, determineResourceName, getDeploymentLockWaitTime, getDeploymentProperties, getLockName, handlesMode, isThrowExceptionOnDeploymentFailure, isUseLockForDeployments, setDeploymentProperties
public static final String DEPLOYMENT_MODE
public DefaultAutoDeploymentStrategy()
public DefaultAutoDeploymentStrategy(CommonAutoDeploymentProperties deploymentProperties, Set<String> autoDeployTenants)
protected String getDeploymentMode()
getDeploymentMode
in class CommonAutoDeploymentStrategy<CoreIdmEngine>
protected void deployResourcesInternal(String deploymentNameHint, Resource[] resources, CoreIdmEngine idmEngine)
deployResourcesInternal
in class CommonAutoDeploymentStrategy<CoreIdmEngine>
protected void deployUserDefinitions(String deploymentNameHint, Collection<UserDefinitionModel> userDefinitionModels, CoreIdmEngine idmEngine, String tenantId)
protected void deployUserAccountDefinitions(String deploymentNameHint, Collection<UserAccountDefinitionModel> userAccountDefinitionModels, CoreIdmEngine idmEngine, String tenantId)
protected void collectDefinitions(Resource[] resources, Map<String,UserDefinitionModel> userDefinitionKeyMap, Map<String,UserAccountDefinitionModel> userAccountKeyMap, 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 readAndConsume(Resource resource, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Consumer<com.fasterxml.jackson.databind.JsonNode> definitionNodeConsumer)
protected void addToUserKeyMap(com.fasterxml.jackson.databind.JsonNode definitionNode, Map<String,UserDefinitionModel> userDefinitionKeyMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected void addToUserAccountKeyMap(com.fasterxml.jackson.databind.JsonNode definitionNode, Map<String,UserAccountDefinitionModel> userAccountKeyMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected boolean isUserDefinitionResource(String resourceName)
protected boolean isUserAccountDefinitionResource(String resourceName)