Class EnvironmentPersistenceHelper


  • @Internal
    public class EnvironmentPersistenceHelper
    extends Object
    • 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 configuration
        newTriggersConfiguration - new triggers configuration
        environmentDao -
        planScheduler -