public class PhpUnitBuildTaskConfigurator extends AbstractTaskConfigurator implements BuildTaskRequirementSupport, TaskTestResultsSupport
bambooAuthenticationContext, taskConfiguratorHelper| Constructor and Description |
|---|
PhpUnitBuildTaskConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Set<Requirement> |
calculateRequirements(@NotNull TaskDefinition taskDefinition,
@NotNull Job job)
Populates the
RequirementSet needed based off of the TaskDefinition |
@NotNull Map<String,String> |
generateTaskConfigMap(@NotNull ActionParametersMap params,
@Nullable TaskDefinition previousTaskDefinition)
Convert the params from the ui into a config map to be stored in the database for the taskDefinition.
|
void |
populateContextForCreate(@NotNull Map<String,Object> context)
Provide any required context to be used when rendering the freemarker template for creating a task definition.
|
void |
populateContextForEdit(@NotNull Map<String,Object> context,
@NotNull TaskDefinition taskDefinition)
Provide any required context to be used when rendering the freemarker template for view editing a task definition
|
void |
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider) |
void |
setUiConfigSupport(UIConfigSupport uiConfigSupport) |
boolean |
taskProducesTestResults(@NotNull TaskDefinition taskDefinition)
Returns true iff task defined by TaskDefinition produces test results.
|
void |
validate(@NotNull ActionParametersMap params,
@NotNull ErrorCollection errorCollection)
Validate the params submitted from the UI for this task definition
|
calculateRequirements, getI18nBean, populateContextForView, setAuthenticationContext, setTaskConfiguratorHelper@NotNull public @NotNull Set<Requirement> calculateRequirements(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull Job job)
BuildTaskRequirementSupportRequirementSet needed based off of the TaskDefinitioncalculateRequirements in interface BuildTaskRequirementSupportcalculateRequirements in class AbstractTaskConfigurator@NotNull public @NotNull Map<String,String> generateTaskConfigMap(@NotNull @NotNull ActionParametersMap params, @Nullable @Nullable TaskDefinition previousTaskDefinition)
TaskConfiguratorgenerateTaskConfigMap in interface TaskConfiguratorgenerateTaskConfigMap in class AbstractTaskConfiguratorparams - - request paramaterspreviousTaskDefinition - - the previous immutable TaskDefinition before saving or null if Task is being createdpublic void populateContextForCreate(@NotNull
@NotNull Map<String,Object> context)
TaskConfiguratorpopulateContextForCreate in interface TaskConfiguratorpopulateContextForCreate in class AbstractTaskConfiguratorcontext - map to put your context in.public void populateContextForEdit(@NotNull
@NotNull Map<String,Object> context,
@NotNull
@NotNull TaskDefinition taskDefinition)
TaskConfiguratorpopulateContextForEdit in interface TaskConfiguratorpopulateContextForEdit in class AbstractTaskConfiguratorcontext - map to put your context in.taskDefinition - existing task definitionpublic void validate(@NotNull
@NotNull ActionParametersMap params,
@NotNull
@NotNull ErrorCollection errorCollection)
TaskConfiguratorvalidate in interface TaskConfiguratorvalidate in class AbstractTaskConfiguratorparams - - request paramaterserrorCollection - - collection to put any errors in.public boolean taskProducesTestResults(@NotNull
@NotNull TaskDefinition taskDefinition)
TaskTestResultsSupporttaskProducesTestResults in interface TaskTestResultsSupportpublic void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
public void setUiConfigSupport(UIConfigSupport uiConfigSupport)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.