Package com.atlassian.bamboo.v2.build
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>
- All Superinterfaces:
BambooPluginModule,BuildConfigurationAwarePlugin,InitablePluginModule,RenderableBuildConfiguration
- All Known Implementing Classes:
ConcurrentBuildsPlanConfigurationPlugin,HungBuildPlanConfigurationPlugin
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
Interface for plugin modules that support importing and exporting of their configuration.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddToBuildConfiguration(P specsProperties, @NotNull org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration) Validate and add data from specs properties to passed build configuration.default TImport configuration of this plugin from YAML node to Bamboo Specs entity.Return all property keys related to this plugin module which may exist in a plan'sBuildConfiguration.toSpecsEntity(@NotNull org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration) Export configuration of this plugin to Bamboo Specs entity.default @Nullable NodeConvert configuration of this plugin from Bamboo Specs to YAML structure.Methods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin
addDefaultValues, isConfigurationMissing, prepareConfigObject, validateMethods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
initMethods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
getEditHtml, getViewHtml
-
Method Details
-
getConfigurationKeys
Return all property keys related to this plugin module which may exist in a plan'sBuildConfiguration.The returned set may be immutable. If a plugin module doesn't have configuration, then an empty set should be returned.
-
toSpecsEntity
@NotNull T toSpecsEntity(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration) Export configuration of this plugin to Bamboo Specs entity. -
addToBuildConfiguration
void addToBuildConfiguration(@NotNull P specsProperties, @NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration) Validate and add data from specs properties to passed build configuration.- Parameters:
specsProperties-buildConfiguration-
-
fromYaml
@Nullable default T fromYaml(Node node) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException Import configuration of this plugin from YAML node to Bamboo Specs entity.- Parameters:
node- yaml node- Returns:
- Bamboo Specs entity for plugin settings.
- Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException- if configuration is wrong.
-
toYaml
Convert configuration of this plugin from Bamboo Specs to YAML structure.- Returns:
- YAML
Nodecontaining representation of Bamboo Specs entity.
-