public class ConcurrentBuildsPlanConfigurationPlugin extends BaseBuildConfigurationAwarePlugin implements MiscellaneousPlanConfigurationPlugin, ImportExportAwarePlugin<com.atlassian.bamboo.specs.api.builders.plan.configuration.ConcurrentBuilds,com.atlassian.bamboo.specs.api.model.plan.configuration.ConcurrentBuildsProperties>
Modifier and Type | Field and Description |
---|---|
static String |
CONCURRENT_BUILD_OBJECT_KEY |
static String |
NUMBER_CONCURRENT_BUILDS |
static String |
NUMBER_CONCURRENT_BUILDS_OVERRIDE |
moduleDescriptor, templateRenderer
Constructor and Description |
---|
ConcurrentBuildsPlanConfigurationPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
addToBuildConfiguration(com.atlassian.bamboo.specs.api.model.plan.configuration.ConcurrentBuildsProperties specsProperties,
org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration)
Validate and add data from specs properties to passed build configuration.
|
Set<String> |
getConfigurationKeys()
Return all property keys related to this plugin module which may exist in a plan's
BuildConfiguration . |
boolean |
isApplicableTo(ImmutablePlan plan)
Checks if the plugin is applicable to a plan.
|
protected void |
populateContextForView(Map<String,Object> context,
Plan plan) |
void |
setAdministrationConfigurationAccessor(AdministrationConfigurationAccessor administrationConfigurationAccessor) |
void |
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider) |
com.atlassian.bamboo.specs.api.builders.plan.configuration.ConcurrentBuilds |
toSpecsEntity(org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration)
Export configuration of this plugin to Bamboo Specs entity.
|
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Validates the properties in the
BuildConfiguration object. |
addDefaultValues, getEditHtml, getViewHtml, init, populateContextForEdit, prepareConfigObject, setTemplateRenderer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isApplicableTo
isConfigurationMissing
addDefaultValues, isConfigurationMissing, prepareConfigObject
init
getEditHtml, getViewHtml
fromYaml
public static final String CONCURRENT_BUILD_OBJECT_KEY
public static final String NUMBER_CONCURRENT_BUILDS_OVERRIDE
public static final String NUMBER_CONCURRENT_BUILDS
public ConcurrentBuildsPlanConfigurationPlugin()
protected void populateContextForView(@NotNull Map<String,Object> context, @NotNull Plan plan)
populateContextForView
in class BaseBuildConfigurationAwarePlugin
@NotNull public ErrorCollection validate(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
BuildConfiguration
object. The name of the properties match those passed
in through the form fragments in RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
template.validate
in interface BuildConfigurationAwarePlugin
validate
in class BaseBuildConfigurationAwarePlugin
buildConfiguration
- -ErrorCollection
keyed by the field name.public boolean isApplicableTo(@NotNull ImmutablePlan plan)
PlanConfigurationUiPlugin
isApplicableTo
in interface PlanConfigurationUiPlugin
plan
- Plan to be verified@NotNull public com.atlassian.bamboo.specs.api.builders.plan.configuration.ConcurrentBuilds toSpecsEntity(@NotNull org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration)
ImportExportAwarePlugin
toSpecsEntity
in interface ImportExportAwarePlugin<com.atlassian.bamboo.specs.api.builders.plan.configuration.ConcurrentBuilds,com.atlassian.bamboo.specs.api.model.plan.configuration.ConcurrentBuildsProperties>
public void addToBuildConfiguration(@NotNull com.atlassian.bamboo.specs.api.model.plan.configuration.ConcurrentBuildsProperties specsProperties, @NotNull org.apache.commons.configuration.HierarchicalConfiguration buildConfiguration)
ImportExportAwarePlugin
addToBuildConfiguration
in interface ImportExportAwarePlugin<com.atlassian.bamboo.specs.api.builders.plan.configuration.ConcurrentBuilds,com.atlassian.bamboo.specs.api.model.plan.configuration.ConcurrentBuildsProperties>
@NotNull public Set<String> getConfigurationKeys()
ImportExportAwarePlugin
BuildConfiguration
.
The returned set may be immutable. If a plugin module doesn't have configuration, then an empty set should be returned.
getConfigurationKeys
in interface ImportExportAwarePlugin<com.atlassian.bamboo.specs.api.builders.plan.configuration.ConcurrentBuilds,com.atlassian.bamboo.specs.api.model.plan.configuration.ConcurrentBuildsProperties>
public void setAdministrationConfigurationAccessor(AdministrationConfigurationAccessor administrationConfigurationAccessor)
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.