public class BuildExpiryPerPlanPlugin extends BaseConfigurablePlugin implements MiscellaneousPlanConfigurationPlugin, ImportExportAwarePlugin
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_EXPIRY_CONFIG_CONSTANT |
moduleDescriptor, templateRenderer
Constructor and Description |
---|
BuildExpiryPerPlanPlugin() |
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 . |
String |
getSelectedExpiryTypesLabel(CombinedExpiryConfig expiryConfig) |
boolean |
isApplicableTo(ImmutablePlan plan)
Checks if the plugin is applicable to a plan.
|
protected void |
populateContextForEdit(Map<String,Object> context,
BuildConfiguration buildConfiguration,
Plan plan) |
protected void |
populateContextForView(Map<String,Object> context,
Plan plan) |
void |
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider) |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Validates the properties in the
BuildConfiguration object. |
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, getEditHtml, getViewHtml, init, isConfigurationMissing, isConfigurationMissing, prepareConfigObject, setTemplateRenderer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toSerializableMap
isApplicableTo, isConfigurationMissing, isConfigurationMissing
public static final String BUILD_EXPIRY_CONFIG_CONSTANT
public boolean isApplicableTo(@NotNull ImmutablePlan plan)
PlanConfigurationUiPlugin
isApplicableTo
in interface PlanConfigurationUiPlugin
plan
- Plan to be verified@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.protected void populateContextForEdit(@NotNull Map<String,Object> context, @NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)
populateContextForEdit
in class BaseBuildConfigurationAwarePlugin
protected void populateContextForView(@NotNull Map<String,Object> context, @NotNull Plan plan)
populateContextForView
in class BaseBuildConfigurationAwarePlugin
@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 String getSelectedExpiryTypesLabel(@NotNull CombinedExpiryConfig expiryConfig)
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.