public class InjectVariablesTaskConfigurator extends AbstractTaskConfigurator
bambooAuthenticationContext, taskConfiguratorHelper
Constructor and Description |
---|
InjectVariablesTaskConfigurator(com.atlassian.sal.api.message.I18nResolver i18nResolver) |
Modifier and Type | Method and Description |
---|---|
@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 |
validate(@NotNull ActionParametersMap params,
@NotNull ErrorCollection errorCollection)
Validate the params submitted from the UI for this task definition
|
calculateRequirements, calculateRequirements, getI18nBean, populateContextForView, setAuthenticationContext, setTaskConfiguratorHelper
@Inject public InjectVariablesTaskConfigurator(com.atlassian.sal.api.message.I18nResolver i18nResolver)
@NotNull public @NotNull Map<String,String> generateTaskConfigMap(@NotNull @NotNull ActionParametersMap params, @Nullable @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 @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 @NotNull Map<String,Object> context, @NotNull @NotNull TaskDefinition taskDefinition)
TaskConfigurator
populateContextForEdit
in interface TaskConfigurator
populateContextForEdit
in class AbstractTaskConfigurator
context
- map to put your context in.taskDefinition
- existing task definitionpublic void validate(@NotNull @NotNull ActionParametersMap params, @NotNull @NotNull ErrorCollection errorCollection)
TaskConfigurator
validate
in interface TaskConfigurator
validate
in class AbstractTaskConfigurator
params
- - request paramaterserrorCollection
- - collection to put any errors in.Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.