public class ChannelDefinitionDeploymentHelper extends Object
EventDefinitionDeployer is done by orchestrating the different pieces of work this class does; by having them here, we allow
other deployers to make use of them.| Constructor and Description |
|---|
ChannelDefinitionDeploymentHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyDeploymentValuesToEventDefinitions(EventDeploymentEntity deployment,
List<ChannelDefinitionEntity> channelDefinitions)
Updates all the channel definition entities to match the deployment's values for tenant, engine version, and deployment id.
|
ChannelDefinitionEntity |
getMostRecentVersionOfChannelDefinition(ChannelDefinitionEntity channelDefinition)
Gets the persisted channel definition that matches this one for tenant and key.
|
ChannelDefinitionEntity |
getPersistedInstanceOfChannelDefinition(ChannelDefinitionEntity channelDefinition)
Gets the persisted version of the already-deployed channel definition.
|
void |
setResourceNamesOnEventDefinitions(ParsedDeployment parsedDeployment)
Updates all the channel definition entities to have the correct resource names.
|
void |
verifyChannelDefinitionsDoNotShareKeys(Collection<ChannelDefinitionEntity> channelDefinitions)
Verifies that no two channel definitions share the same key, to prevent database unique index violation.
|
public void verifyChannelDefinitionsDoNotShareKeys(Collection<ChannelDefinitionEntity> channelDefinitions)
org.flowable.common.engine.api.FlowableException - if any two channel definitions have the same keypublic void copyDeploymentValuesToEventDefinitions(EventDeploymentEntity deployment, List<ChannelDefinitionEntity> channelDefinitions)
public void setResourceNamesOnEventDefinitions(ParsedDeployment parsedDeployment)
public ChannelDefinitionEntity getMostRecentVersionOfChannelDefinition(ChannelDefinitionEntity channelDefinition)
public ChannelDefinitionEntity getPersistedInstanceOfChannelDefinition(ChannelDefinitionEntity channelDefinition)
Copyright © 2021 Flowable. All rights reserved.