Class BuildTriggerConditionConfigHelper

java.lang.Object
com.atlassian.bamboo.build.creation.BuildTriggerConditionConfigHelper
All Implemented Interfaces:
PlanConfigHelper

public class BuildTriggerConditionConfigHelper extends Object implements PlanConfigHelper
  • Constructor Details

    • BuildTriggerConditionConfigHelper

      public BuildTriggerConditionConfigHelper(TriggerTypeManager triggerTypeManager)
  • Method Details

    • addDefaultsToConfig

      public void addDefaultsToConfig(@NotNull @NotNull BuildConfiguration buildConfiguration)
      Description copied from interface: PlanConfigHelper
      Adds default values for all possible selections, esp preparing for display on the UI
      Specified by:
      addDefaultsToConfig in interface PlanConfigHelper
      Parameters:
      buildConfiguration - - to add defaults to
    • validateConfig

      public void validateConfig(@NotNull @NotNull com.atlassian.struts.ValidationAware validationAware, @NotNull @NotNull BuildConfiguration buildConfiguration)
      Description copied from interface: PlanConfigHelper
      Validates the configuration for a plan. Adds any errors to the validationAware object
      Specified by:
      validateConfig in interface PlanConfigHelper
      Parameters:
      validationAware - - normally the action calling this
      buildConfiguration - - the configuration to validate
    • validateConfig

      public void validateConfig(@NotNull com.opensymphony.xwork.ValidationAware validationAware, @NotNull @NotNull BuildConfiguration buildConfiguration)
      Description copied from interface: PlanConfigHelper
      Validates the configuration for a plan. Adds any errors to the validationAware object
      Specified by:
      validateConfig in interface PlanConfigHelper
      Parameters:
      validationAware - - normally the action calling this
      buildConfiguration - - the configuration to validate
    • cleanConfig

      public void cleanConfig(@NotNull @NotNull BuildConfiguration buildConfiguration)
      Description copied from interface: PlanConfigHelper
      Cleans out any data from the build config, not required by the selected option.
      Specified by:
      cleanConfig in interface PlanConfigHelper
      Parameters:
      buildConfiguration - - to clean
    • performPostActionsOnConfig

      public void performPostActionsOnConfig(@NotNull @NotNull BuildConfiguration buildConfiguration, @NotNull @NotNull ImmutablePlan plan)
      Description copied from interface: PlanConfigHelper
      Performs any miscellaneous actions required before saving the plan. Is aware of the currently selected option.
      Specified by:
      performPostActionsOnConfig in interface PlanConfigHelper
      Parameters:
      buildConfiguration - - of the current configuration
      plan - - the current plan
    • prepareConfig

      public void prepareConfig(@NotNull @NotNull BuildConfiguration buildConfiguration)
      Description copied from interface: PlanConfigHelper
      Prepare the build configuration for validation. Performs required manual manipulations on the build config.
      Specified by:
      prepareConfig in interface PlanConfigHelper
      Parameters:
      buildConfiguration - to manipulate