public class WarningsTaskConfigurator extends Object implements TaskConfigurator, RepositoryAwareTaskConfigurator
| Constructor and Description |
|---|
WarningsTaskConfigurator(com.atlassian.sal.api.message.I18nResolver i18nResolver,
TaskConfiguratorHelper taskConfiguratorHelper,
CachedPlanManager cachedPlanManager,
ParsersListProvider parsersListProvider) |
| 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.
|
@NotNull List<PlanRepositoryDefinition> |
getPlanRepositoriesUsedByTask(@NotNull TaskDefinition taskDefinition,
@NotNull ImmutableJob job) |
void |
handleRepositoryIdChanged(@NotNull TaskDefinition taskDefinition,
@NotNull Map<Long,Long> repositoryIdChanges)
Action taken if repository id changed, i.e.
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRepositoriesUsedByTask@Inject
public WarningsTaskConfigurator(com.atlassian.sal.api.message.I18nResolver i18nResolver,
TaskConfiguratorHelper taskConfiguratorHelper,
CachedPlanManager cachedPlanManager,
ParsersListProvider parsersListProvider)
public void populateContextForEdit(@NotNull
@NotNull Map<String,Object> context,
@NotNull
@NotNull TaskDefinition taskDefinition)
TaskConfiguratorpopulateContextForEdit in interface TaskConfiguratorcontext - map to put your context in.taskDefinition - existing task definitionpublic void populateContextForCreate(@NotNull
@NotNull Map<String,Object> context)
TaskConfiguratorpopulateContextForCreate in interface TaskConfiguratorcontext - map to put your context in.public void validate(@NotNull
@NotNull ActionParametersMap params,
@NotNull
@NotNull ErrorCollection errorCollection)
TaskConfiguratorvalidate in interface TaskConfiguratorparams - - request paramaterserrorCollection - - collection to put any errors in.@NotNull public @NotNull Map<String,String> generateTaskConfigMap(@NotNull @NotNull ActionParametersMap params, @Nullable @Nullable TaskDefinition previousTaskDefinition)
TaskConfiguratorgenerateTaskConfigMap in interface TaskConfiguratorparams - - request paramaterspreviousTaskDefinition - - the previous immutable TaskDefinition before saving or null if Task is being created@NotNull public @NotNull List<PlanRepositoryDefinition> getPlanRepositoriesUsedByTask(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull ImmutableJob job)
getPlanRepositoriesUsedByTask in interface RepositoryAwareTaskConfiguratortaskDefinition - definition of a TaskPlanRepositoryDefinition referenced by the Taskpublic void handleRepositoryIdChanged(@NotNull
@NotNull TaskDefinition taskDefinition,
@NotNull
@NotNull Map<Long,Long> repositoryIdChanges)
RepositoryAwareTaskConfiguratorhandleRepositoryIdChanged in interface RepositoryAwareTaskConfiguratortaskDefinition - definition of a TaskrepositoryIdChanges - mapping between old and new repository identifiers@NotNull public @NotNull Set<Requirement> calculateRequirements(@NotNull @NotNull TaskDefinition taskDefinition, @NotNull @NotNull Job job)
BuildTaskRequirementSupportRequirementSet needed based off of the TaskDefinitioncalculateRequirements in interface BuildTaskRequirementSupportCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.