Class PlansGreenConditionExporter

java.lang.Object
com.atlassian.bamboo.buildtrigger.PlansGreenConditionExporter
All Implemented Interfaces:
BuildTriggerConditionExporter<com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties>

public class PlansGreenConditionExporter extends Object implements BuildTriggerConditionExporter<com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties>
  • Field Details

  • Constructor Details

  • Method Details

    • getConfigurationKeys

      public Set<String> getConfigurationKeys()
      Specified by:
      getConfigurationKeys in interface BuildTriggerConditionExporter<com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties>
      Returns:
      config keys which exporter expect at configuration map.
    • toSpecsEntity

      @Nullable public <T extends com.atlassian.bamboo.specs.api.builders.trigger.TriggerCondition<T, com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties>> T toSpecsEntity(@NotNull @NotNull Map<String,String> triggerConditionConfigurations)
      Description copied from interface: BuildTriggerConditionExporter
      Create Bamboo Specs object representing this trigger condition.
      Specified by:
      toSpecsEntity in interface BuildTriggerConditionExporter<com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties>
      Returns:
      Specs builder.
    • toConfigurationMap

      @NotNull public @NotNull Map<String,String> toConfigurationMap(com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties properties)
      Specified by:
      toConfigurationMap in interface BuildTriggerConditionExporter<com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties>
      Returns:
      trigger condition configuration map extracted from TriggerConditionProperties.
    • validate

      @NotNull public @NotNull List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validate(TriggerValidationContext validationContext, com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties pg)
      Specified by:
      validate in interface BuildTriggerConditionExporter<com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties>
    • toYaml

      public Node toYaml(com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties triggerConditionProperties)
      Specified by:
      toYaml in interface BuildTriggerConditionExporter<com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties>
    • fromYaml

      @Nullable public @Nullable com.atlassian.bamboo.specs.builders.trigger.PlansGreenTriggerCondition fromYaml(@NotNull @NotNull Node node)
      Specified by:
      fromYaml in interface BuildTriggerConditionExporter<com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties>
      Returns:
      Specs builder.