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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable com.atlassian.bamboo.specs.builders.trigger.PlansGreenTriggerCondition
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.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 Details
-
ENABLED
- See Also:
-
PLANS
- See Also:
-
-
Constructor Details
-
PlansGreenConditionExporter
-
-
Method Details
-
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.
-