public interface ImportExportAwarePlugin<T extends com.atlassian.bamboo.specs.api.builders.plan.configuration.PluginConfiguration<P>,P extends com.atlassian.bamboo.specs.api.model.plan.configuration.PluginConfigurationProperties> extends BuildConfigurationAwarePlugin
Modifier and Type | Method and Description |
---|---|
void |
addToBuildConfiguration(P specsProperties,
org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration)
Validate and add data from specs properties to passed build configuration.
|
default T |
fromYaml(Node node)
Import configuration of this plugin from YAML node to Bamboo Specs entity.
|
Set<String> |
getConfigurationKeys()
Return all property keys related to this plugin module which may exist in a plan's
BuildConfiguration . |
T |
toSpecsEntity(org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration)
Export configuration of this plugin to Bamboo Specs entity.
|
default Node |
toYaml(P specsProperties)
Convert configuration of this plugin from Bamboo Specs to YAML structure.
|
addDefaultValues, isConfigurationMissing, prepareConfigObject, validate
init
getEditHtml, getViewHtml
@NotNull Set<String> getConfigurationKeys()
BuildConfiguration
.
The returned set may be immutable. If a plugin module doesn't have configuration, then an empty set should be returned.
@NotNull T toSpecsEntity(@NotNull org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration)
void addToBuildConfiguration(@NotNull P specsProperties, @NotNull org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration)
specsProperties
- buildConfiguration
- @Nullable default T fromYaml(Node node) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
node
- yaml nodecom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if configuration is wrong.Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.