Class EnvironmentPersistenceHelper
- java.lang.Object
-
- com.atlassian.bamboo.deployments.environments.persistence.EnvironmentPersistenceHelper
-
@Internal public class EnvironmentPersistenceHelper extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
saveEnvironmentWithNoSchedules(@NotNull MutableEnvironment environment, @NotNull EnvironmentDao environmentDao, @NotNull PlanScheduler planScheduler)
Helper method that persist environment configuration, while pausing its triggers.static void
saveEnvironmentWithNoSchedules(@NotNull MutableEnvironment environment, @Nullable BuildConfiguration newTriggersConfiguration, @NotNull EnvironmentDao environmentDao, @NotNull PlanScheduler planScheduler)
Helper method that persist environment configuration, while pausing its triggers.
-
-
-
Method Detail
-
saveEnvironmentWithNoSchedules
public static void saveEnvironmentWithNoSchedules(@NotNull @NotNull MutableEnvironment environment, @NotNull @NotNull EnvironmentDao environmentDao, @NotNull @NotNull PlanScheduler planScheduler)
Helper method that persist environment configuration, while pausing its triggers. Used when triggers configuration does not change- Parameters:
environment
-environmentDao
-planScheduler
-
-
saveEnvironmentWithNoSchedules
public static void saveEnvironmentWithNoSchedules(@NotNull @NotNull MutableEnvironment environment, @Nullable @Nullable BuildConfiguration newTriggersConfiguration, @NotNull @NotNull EnvironmentDao environmentDao, @NotNull @NotNull PlanScheduler planScheduler)
Helper method that persist environment configuration, while pausing its triggers. Used when triggers configuration is being changed- Parameters:
environment
- environment object including old triggers configurationnewTriggersConfiguration
- new triggers configurationenvironmentDao
-planScheduler
-
-
-