Interface CustomEnvironmentConfigPluginExporter
public interface CustomEnvironmentConfigPluginExporter
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends com.atlassian.bamboo.specs.api.builders.deployment.configuration.EnvironmentPluginConfiguration<P>,
P extends com.atlassian.bamboo.specs.api.model.deployment.configuration.EnvironmentPluginConfigurationProperties>
TDeprecated.since 8.1.default <T extends com.atlassian.bamboo.specs.api.builders.deployment.configuration.EnvironmentPluginConfiguration<P>,
P extends com.atlassian.bamboo.specs.api.model.deployment.configuration.EnvironmentPluginConfigurationProperties>
TRead configuration from YAMLNode
.toConfiguration
(@NotNull com.atlassian.bamboo.specs.api.model.deployment.configuration.EnvironmentPluginConfigurationProperties configurationProperties) @NotNull com.atlassian.bamboo.specs.api.builders.deployment.configuration.EnvironmentPluginConfiguration
toSpecsEntity
(@NotNull Map<String, String> configuration) default <T extends com.atlassian.bamboo.specs.api.builders.deployment.configuration.EnvironmentPluginConfiguration<P>,
P extends com.atlassian.bamboo.specs.api.model.deployment.configuration.EnvironmentPluginConfigurationProperties>
@Nullable NodetoYaml
(P specsProperties) Convert configuration of this plugin from Bamboo Specs to YAML structure.@NotNull List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem>
validate
(@NotNull TaskValidationContext validationContext, @NotNull com.atlassian.bamboo.specs.api.model.deployment.configuration.EnvironmentPluginConfigurationProperties configurationProperties) Validates plugin configuration in context of enclosing deployment properties.
-
Method Details
-
toSpecsEntity
-
toConfiguration
-
validate
@NotNull @NotNull List<com.atlassian.bamboo.specs.api.validators.common.ValidationProblem> validate(@NotNull @NotNull TaskValidationContext validationContext, @NotNull @NotNull com.atlassian.bamboo.specs.api.model.deployment.configuration.EnvironmentPluginConfigurationProperties configurationProperties) Validates plugin configuration in context of enclosing deployment properties. Should check for any inconsistencies between plugin config and the rest of deployment content, as it is provided in the validation context. Returns list of validation errors or empty if everything is ok.Should check RSS permissions if necessary.
-
fromYaml
@Nullable @Deprecated default <T extends com.atlassian.bamboo.specs.api.builders.deployment.configuration.EnvironmentPluginConfiguration<P>,P extends com.atlassian.bamboo.specs.api.model.deployment.configuration.EnvironmentPluginConfigurationProperties> T fromYaml(@NotNull @NotNull Node node) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException Deprecated.since 8.1. UsefromYaml(String, Node)
.Read configuration from YAMLNode
.node
is map containing all plugins configuration map.- Parameters:
node
- yaml node- Returns:
- plugin configuration
- Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if configuration is wrong.
-
fromYaml
@Nullable default <T extends com.atlassian.bamboo.specs.api.builders.deployment.configuration.EnvironmentPluginConfiguration<P>,P extends com.atlassian.bamboo.specs.api.model.deployment.configuration.EnvironmentPluginConfigurationProperties> T fromYaml(@NotNull @NotNull String key, @NotNull @NotNull Node node) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException Read configuration from YAMLNode
.- Parameters:
key
- plugin key or plugin keyword.node
- yaml node- Returns:
- plugin configuration
- Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if configuration is wrong.
-
toYaml
@Nullable default <T extends com.atlassian.bamboo.specs.api.builders.deployment.configuration.EnvironmentPluginConfiguration<P>,P extends com.atlassian.bamboo.specs.api.model.deployment.configuration.EnvironmentPluginConfigurationProperties> @Nullable Node toYaml(@NotNull P specsProperties) Convert configuration of this plugin from Bamboo Specs to YAML structure.- Returns:
- map node containing YAML representation of Bamboo Specs entity.
-