public abstract class AbstractTaskConfigurator extends Object implements TaskConfigurator
Modifier and Type | Field and Description |
---|---|
protected BambooAuthenticationContext |
bambooAuthenticationContext
Deprecated.
since 6.8 inject your own instance
|
protected TaskConfiguratorHelper |
taskConfiguratorHelper
Deprecated.
since 6.8 inject your own instance
|
Constructor and Description |
---|
AbstractTaskConfigurator() |
Modifier and Type | Method and Description |
---|---|
Set<Requirement> |
calculateRequirements(@NotNull TaskDefinition taskDefinition,
@NotNull Buildable job)
Deprecated.
since 5.0
|
Set<Requirement> |
calculateRequirements(@NotNull TaskDefinition taskDefinition,
@NotNull Job job) |
@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.
|
protected I18nBean |
getI18nBean() |
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 |
populateContextForView(@NotNull Map<String,Object> context,
@NotNull TaskDefinition taskDefinition)
Deprecated.
since 5.13, tasks do not have view UI anymore and any overrides of this method are not executed
|
void |
setAuthenticationContext(BambooAuthenticationContext bambooAuthenticationContext)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
void |
setTaskConfiguratorHelper(TaskConfiguratorHelper taskConfiguratorHelper)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
void |
validate(@NotNull ActionParametersMap params,
@NotNull ErrorCollection errorCollection)
Validate the params submitted from the UI for this task definition
|
@Deprecated protected TaskConfiguratorHelper taskConfiguratorHelper
@Deprecated protected BambooAuthenticationContext bambooAuthenticationContext
@NotNull public @NotNull Map<String,String> generateTaskConfigMap(@NotNull @NotNull ActionParametersMap params, @Nullable @Nullable TaskDefinition previousTaskDefinition)
TaskConfigurator
generateTaskConfigMap
in interface TaskConfigurator
params
- - request paramaterspreviousTaskDefinition
- - the previous immutable TaskDefinition
before saving or null if Task is being createdpublic void populateContextForCreate(@NotNull @NotNull Map<String,Object> context)
TaskConfigurator
populateContextForCreate
in interface TaskConfigurator
context
- map to put your context in.public void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull TaskDefinition taskDefinition)
TaskConfigurator
populateContextForEdit
in interface TaskConfigurator
context
- map to put your context in.taskDefinition
- existing task definition@Deprecated public void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull TaskDefinition taskDefinition)
public void validate(@NotNull @NotNull ActionParametersMap params, @NotNull @NotNull ErrorCollection errorCollection)
TaskConfigurator
validate
in interface TaskConfigurator
params
- - request paramaterserrorCollection
- - collection to put any errors in.protected final I18nBean getI18nBean()
public Set<Requirement> calculateRequirements(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull Job job)
@Deprecated public Set<Requirement> calculateRequirements(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull Buildable job)
@Deprecated public void setTaskConfiguratorHelper(TaskConfiguratorHelper taskConfiguratorHelper)
@Deprecated public void setAuthenticationContext(BambooAuthenticationContext bambooAuthenticationContext)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.