Package com.atlassian.bamboo.build
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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T extends com.atlassian.bamboo.specs.api.builders.trigger.TriggerCondition<T,P>>
TfromYaml(Node node)
Set<String>
getConfigurationKeys()
@NotNull Map<String,String>
toConfigurationMap(P properties)
<T extends com.atlassian.bamboo.specs.api.builders.trigger.TriggerCondition<T,P>>
TtoSpecsEntity(@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 Detail
-
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.
-
-