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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.trigger.TriggerConfigurator
TriggerConfigurator.RepositorySelectionMode
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
isAffectedByEnvironmentDeletion(long environmentId, @NotNull TriggerDefinition triggerDefinition)
Check if trigger will be affected when Environment is deleted.default void
modifyConfigurationByIdsReplacement(@NotNull TriggerDefinition triggerDefinition, @NotNull Map<String,String> oldAndClonedEnvironmentIds)
Replace environments' ids according to provided mapping-
Methods inherited from interface com.atlassian.bamboo.trigger.TriggerConfigurator
generateTriggerConfigMap, getRepositorySelectionMode, isRepositorySelectable, populateContextForCreate, populateContextForEdit, populateContextForView, validate
-
-
-
-
Method Detail
-
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 replacedoldAndClonedEnvironmentIds
- mapping between old and new ids
-
-