public class ConcurrentBuildsPlanConfigurationPlugin extends BaseBuildConfigurationAwarePlugin implements MiscellaneousPlanConfigurationPlugin, ImportExportAwarePlugin
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 |
---|---|
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) |
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
toSerializableMap
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 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
public void setAdministrationConfigurationAccessor(AdministrationConfigurationAccessor administrationConfigurationAccessor)
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.