public class AutomaticDependencyManagementPlugin extends BaseConfigurablePlugin implements DependenciesPlanConfigurationPlugin, CustomBuildDefinitionGenerator, Serializable, ImportExportAwarePlugin
Modifier and Type | Field and Description |
---|---|
static String |
CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT |
static String |
CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED |
static String |
CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_OBJECT |
static String |
CTX_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED |
static String |
CTX_DEPENDENCY_PROVIDER_JOB |
moduleDescriptor, templateRenderer
Constructor and Description |
---|
AutomaticDependencyManagementPlugin() |
Modifier and Type | Method and Description |
---|---|
static AutomaticDependencyManagementConfig |
getConfig(BuildDefinition buildDefinition) |
static AutomaticDependencyManagementConfig |
getConfig(ImmutablePlan plan) |
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.
|
void |
populateBuildDefinition(ImmutablePlan plan,
Map<String,Object> configObjects,
BuildDefinition buildDefinition)
For Jobs it adds AutomaticDependencyManagementConfig object from a parent plan
|
protected void |
populateContextForEdit(Map<String,Object> context,
BuildConfiguration buildConfiguration,
Plan plan) |
protected void |
populateContextForView(Map<String,Object> context,
Plan plan) |
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, getEditHtml, getViewHtml, init, isConfigurationMissing, isConfigurationMissing, prepareConfigObject, setTemplateRenderer, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toSerializableMap
isApplicableTo, isConfigurationMissing, isConfigurationMissing
public static final String CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_OBJECT
public static final String CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT
public static final String CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED
public static final String CTX_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED
public static final String CTX_DEPENDENCY_PROVIDER_JOB
public boolean isApplicableTo(@NotNull ImmutablePlan plan)
PlanConfigurationUiPlugin
isApplicableTo
in interface PlanConfigurationUiPlugin
plan
- Plan to be verifiedprotected void populateContextForView(@NotNull Map<String,Object> context, @NotNull Plan plan)
populateContextForView
in class BaseBuildConfigurationAwarePlugin
protected void populateContextForEdit(@NotNull Map<String,Object> context, @NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)
populateContextForEdit
in class BaseBuildConfigurationAwarePlugin
public void populateBuildDefinition(@NotNull ImmutablePlan plan, @NotNull Map<String,Object> configObjects, @NotNull BuildDefinition buildDefinition)
populateBuildDefinition
in interface CustomBuildDefinitionGenerator
plan
- Plan
whose BuildDefinition
is being populatedconfigObjects
- - Map - string key, object value. A map to put custom objects into.buildDefinition
- - the fully constructed BuildDefinition
@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
@Nullable public static AutomaticDependencyManagementConfig getConfig(@NotNull ImmutablePlan plan)
@Nullable public static AutomaticDependencyManagementConfig getConfig(@NotNull BuildDefinition buildDefinition)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.