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>
-
-
Constructor Summary
Constructors Constructor Description PlansGreenConditionExporter(PlansGreenConditionValidator validator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable com.atlassian.bamboo.specs.builders.trigger.PlansGreenTriggerCondition
fromYaml(@NotNull Node node)
Set<String>
getConfigurationKeys()
@NotNull Map<String,String>
toConfigurationMap(com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties properties)
<T extends com.atlassian.bamboo.specs.api.builders.trigger.TriggerCondition<T,com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties>>
TtoSpecsEntity(@NotNull Map<String,String> triggerConditionConfigurations)
Create Bamboo Specs object representing this trigger condition.Node
toYaml(com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties triggerConditionProperties)
@NotNull List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem>
validate(TriggerValidationContext validationContext, com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties pg)
-
-
-
Field Detail
-
ENABLED
public static final String ENABLED
- See Also:
- Constant Field Values
-
PLANS
public static final String PLANS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PlansGreenConditionExporter
@Inject public PlansGreenConditionExporter(PlansGreenConditionValidator validator)
-
-
Method Detail
-
getConfigurationKeys
public Set<String> getConfigurationKeys()
- Specified by:
getConfigurationKeys
in interfaceBuildTriggerConditionExporter<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 interfaceBuildTriggerConditionExporter<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 interfaceBuildTriggerConditionExporter<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 interfaceBuildTriggerConditionExporter<com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties>
-
toYaml
public Node toYaml(com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties triggerConditionProperties)
- Specified by:
toYaml
in interfaceBuildTriggerConditionExporter<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 interfaceBuildTriggerConditionExporter<com.atlassian.bamboo.specs.model.trigger.PlansGreenTriggerConditionProperties>
- Returns:
- Specs builder.
-
-