public abstract class AbstractMavenBuildTaskConfigurator extends AbstractTaskConfigurator implements TaskRequirementSupport, TaskTestResultsSupport
Modifier and Type | Field and Description |
---|---|
static String |
CFG_TEST_RESULTS_FILE_PATTERN_OPTION_CUSTOM |
static String |
CFG_TEST_RESULTS_FILE_PATTERN_OPTION_STANDARD |
static String |
DEFAULT_GOALS |
bambooAuthenticationContext, taskConfiguratorHelper
Constructor and Description |
---|
AbstractMavenBuildTaskConfigurator() |
Modifier and Type | Method and Description |
---|---|
Set<Requirement> |
calculateRequirements(TaskDefinition taskDefinition)
Populates the
RequirementSet needed based off of the TaskDefinition |
Map<String,String> |
generateTaskConfigMap(ActionParametersMap params,
TaskDefinition previousTaskDefinition)
Convert the params from the ui into a config map to be stored in the database for the taskDefinition.
|
void |
populateContextForCreate(Map<String,Object> context)
Provide any required context to be used when rendering the freemarker template for creating a task definition.
|
void |
populateContextForEdit(Map<String,Object> context,
TaskDefinition taskDefinition)
Provide any required context to be used when rendering the freemarker template for view editing a task definition
|
void |
setUiConfigSupport(UIConfigSupport uiConfigSupport)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
boolean |
taskProducesTestResults(TaskDefinition taskDefinition)
Returns true iff task defined by TaskDefinition produces test results.
|
void |
validate(ActionParametersMap params,
ErrorCollection errorCollection)
Validate the params submitted from the UI for this task definition
|
calculateRequirements, calculateRequirements, getI18nBean, populateContextForView, setAuthenticationContext, setTaskConfiguratorHelper
public static final String DEFAULT_GOALS
public static final String CFG_TEST_RESULTS_FILE_PATTERN_OPTION_CUSTOM
public static final String CFG_TEST_RESULTS_FILE_PATTERN_OPTION_STANDARD
@NotNull public Map<String,String> generateTaskConfigMap(@NotNull ActionParametersMap params, @Nullable TaskDefinition previousTaskDefinition)
TaskConfigurator
generateTaskConfigMap
in interface TaskConfigurator
generateTaskConfigMap
in class AbstractTaskConfigurator
params
- - request paramaterspreviousTaskDefinition
- - the previous immutable TaskDefinition
before saving or null if Task is being createdpublic void populateContextForCreate(@NotNull Map<String,Object> context)
TaskConfigurator
populateContextForCreate
in interface TaskConfigurator
populateContextForCreate
in class AbstractTaskConfigurator
context
- map to put your context in.public void populateContextForEdit(@NotNull Map<String,Object> context, @NotNull TaskDefinition taskDefinition)
TaskConfigurator
populateContextForEdit
in interface TaskConfigurator
populateContextForEdit
in class AbstractTaskConfigurator
context
- map to put your context in.taskDefinition
- existing task definition@NotNull public Set<Requirement> calculateRequirements(@NotNull TaskDefinition taskDefinition)
TaskRequirementSupport
RequirementSet
needed based off of the TaskDefinition
calculateRequirements
in interface TaskRequirementSupport
public void validate(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection)
TaskConfigurator
validate
in interface TaskConfigurator
validate
in class AbstractTaskConfigurator
params
- - request paramaterserrorCollection
- - collection to put any errors in.public boolean taskProducesTestResults(@NotNull TaskDefinition taskDefinition)
TaskTestResultsSupport
taskProducesTestResults
in interface TaskTestResultsSupport
@Deprecated public void setUiConfigSupport(UIConfigSupport uiConfigSupport)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.