Interface BuildTriggerConditionExporter<P extends com.atlassian.bamboo.specs.api.model.trigger.TriggerConditionProperties>

All Known Implementing Classes:
DefaultTriggerConditionExporter, PlansGreenConditionExporter

public interface BuildTriggerConditionExporter<P extends com.atlassian.bamboo.specs.api.model.trigger.TriggerConditionProperties>
  • Method Summary

    Modifier and Type
    Method
    Description
    default <T extends com.atlassian.bamboo.specs.api.builders.trigger.TriggerCondition<T, P>>
    T
    fromYaml(Node node)
     
     
    @NotNull Map<String,String>
    toConfigurationMap(P properties)
     
    <T extends com.atlassian.bamboo.specs.api.builders.trigger.TriggerCondition<T, P>>
    T
    toSpecsEntity(@NotNull Map<String,String> triggerConditionConfigurations)
    Create Bamboo Specs object representing this trigger condition.
    default @Nullable Node
    toYaml(P triggerConditionProperties)
     
    @NotNull List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem>
    validate(TriggerValidationContext validationContext, P condition)
     
  • Method Details

    • getConfigurationKeys

      Set<String> getConfigurationKeys()
      Returns:
      config keys which exporter expect at configuration map.
    • toSpecsEntity

      @Nullable <T extends com.atlassian.bamboo.specs.api.builders.trigger.TriggerCondition<T, P>> T toSpecsEntity(@NotNull @NotNull Map<String,String> triggerConditionConfigurations)
      Create Bamboo Specs object representing this trigger condition.
      Returns:
      Specs builder.
    • toConfigurationMap

      @NotNull @NotNull Map<String,String> toConfigurationMap(@NotNull P properties)
      Returns:
      trigger condition configuration map extracted from TriggerConditionProperties.
    • validate

      @NotNull @NotNull List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validate(TriggerValidationContext validationContext, P condition)
    • fromYaml

      @Nullable default <T extends com.atlassian.bamboo.specs.api.builders.trigger.TriggerCondition<T, P>> T fromYaml(Node node)
      Returns:
      Specs builder.
    • toYaml

      @Nullable default @Nullable Node toYaml(P triggerConditionProperties)