Interface EnvironmentAwareEnvironmentTriggerConfigurator
- All Superinterfaces:
TriggerConfigurator
- All Known Implementing Classes:
AfterSuccessfulDeploymentTriggerConfigurator
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
Modifier and TypeMethodDescriptionboolean
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 mappingMethods inherited from interface com.atlassian.bamboo.trigger.TriggerConfigurator
generateTriggerConfigMap, getRepositorySelectionMode, isRepositorySelectable, populateContextForCreate, populateContextForEdit, populateContextForView, validate
-
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 replacedoldAndClonedEnvironmentIds
- mapping between old and new ids
-