public class BuildExpiryPerPlanPlugin extends BaseConfigurablePlugin implements MiscellaneousPlanConfigurationPlugin
| Modifier and Type | Field and Description |
|---|---|
static String |
BUILD_EXPIRY_CONFIG_CONSTANT |
static String |
FIELD_ENABLED |
moduleDescriptor, templateRenderer| Constructor and Description |
|---|
BuildExpiryPerPlanPlugin() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Set<String> |
getConfigurationKeys() |
String |
getSelectedExpiryTypesLabel(@NotNull CombinedExpiryConfig expiryConfig) |
boolean |
isApplicableTo(@NotNull ImmutablePlan plan)
Checks if the plugin is applicable to a plan.
|
protected void |
populateContextForEdit(@NotNull Map<String,Object> context,
@NotNull BuildConfiguration buildConfiguration,
@Nullable Plan plan) |
protected void |
populateContextForView(@NotNull Map<String,Object> context,
@NotNull Plan plan) |
void |
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider) |
@NotNull ErrorCollection |
validate(@NotNull BuildConfiguration buildConfiguration)
Validates the properties in the
BuildConfiguration object. |
customizeBuildRequirements, removeBuildRequirementsaddDefaultValues, getEditHtml, getTemplateRenderer, getViewHtml, init, prepareConfigObject, setTemplateRendererclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddDefaultValues, isConfigurationMissing, prepareConfigObjectinitgetEditHtml, getViewHtmlpublic static final String BUILD_EXPIRY_CONFIG_CONSTANT
public static final String FIELD_ENABLED
public boolean isApplicableTo(@NotNull
@NotNull ImmutablePlan plan)
PlanConfigurationUiPluginisApplicableTo in interface PlanConfigurationUiPluginplan - Plan to be verified@NotNull public @NotNull ErrorCollection validate(@NotNull @NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePluginBuildConfiguration 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 BuildConfigurationAwarePluginvalidate in class BaseBuildConfigurationAwarePluginbuildConfiguration - -ErrorCollection keyed by the field name.protected void populateContextForEdit(@NotNull
@NotNull Map<String,Object> context,
@NotNull
@NotNull BuildConfiguration buildConfiguration,
@Nullable
@Nullable Plan plan)
populateContextForEdit in class BaseBuildConfigurationAwarePluginprotected void populateContextForView(@NotNull
@NotNull Map<String,Object> context,
@NotNull
@NotNull Plan plan)
populateContextForView in class BaseBuildConfigurationAwarePluginpublic String getSelectedExpiryTypesLabel(@NotNull @NotNull CombinedExpiryConfig expiryConfig)
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.