Interface EnvironmentAwareEnvironmentTriggerConfigurator

All Superinterfaces:
TriggerConfigurator
All Known Implementing Classes:
AfterSuccessfulDeploymentTriggerConfigurator

public interface EnvironmentAwareEnvironmentTriggerConfigurator extends TriggerConfigurator
Configurator for triggers. Provides additional operations related to environment.
Since:
5.8
  • Method Details

    • isAffectedByEnvironmentDeletion

      boolean isAffectedByEnvironmentDeletion(long environmentId, @NotNull @NotNull TriggerDefinition triggerDefinition)
      Check if trigger will be affected when Environment is deleted.
      Parameters:
      environmentId - id of an Environment being deleted
      Returns:
      true if action needs to be taken when Environment is deleted
    • modifyConfigurationByIdsReplacement

      default void modifyConfigurationByIdsReplacement(@NotNull @NotNull TriggerDefinition triggerDefinition, @NotNull @NotNull Map<String,String> oldAndClonedEnvironmentIds)
      Replace environments' ids according to provided mapping
      Parameters:
      triggerDefinition - of which configuration will be replaced
      oldAndClonedEnvironmentIds - mapping between old and new ids