public class TaskDefinitionExportHelper extends Object
Constructor and Description |
---|
TaskDefinitionExportHelper(TaskManager taskManager) |
Modifier and Type | Method and Description |
---|---|
@NotNull TaskDefinitionExporter |
getExporter(@NotNull String pluginKey) |
TaskDefinitionExporter |
getExporter(@NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties properties) |
@NotNull TaskDefinition |
importTaskDefinition(long id,
@NotNull TaskContainer taskContainer,
@NotNull List<TaskDefinition> precedingTasks,
@NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties,
@Nullable VcsBranch importedBranch,
boolean finalTask)
Import the task definition from its properties.
|
@NotNull TaskDefinition |
importTaskDefinition(long id,
@NotNull TaskContainer taskContainer,
@NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties,
boolean finalTask)
Import the task definition from its properties.
|
@NotNull com.atlassian.bamboo.specs.api.builders.task.Task |
toSpecsEntity(TaskContainer taskContainer,
TaskDefinition taskDefinition) |
void |
validateTaskProperties(@NotNull com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties,
@NotNull RssPermissions rssPermissions) |
void |
validateTaskProperties(@NotNull com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties,
@NotNull RssPermissions rssPermissions,
@Nullable VcsBranch importedBranch) |
@Autowired public TaskDefinitionExportHelper(TaskManager taskManager)
@NotNull public @NotNull com.atlassian.bamboo.specs.api.builders.task.Task toSpecsEntity(TaskContainer taskContainer, TaskDefinition taskDefinition)
public TaskDefinitionExporter getExporter(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties properties)
@NotNull public @NotNull TaskDefinitionExporter getExporter(@NotNull @NotNull String pluginKey)
@NotNull public @NotNull TaskDefinition importTaskDefinition(long id, @NotNull @NotNull TaskContainer taskContainer, @NotNull @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties, boolean finalTask) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
id
- an identifier this task shall be assigned withtaskContainer
- container of this task (for instance a job or an environment)taskProperties
- the current task to be importedfinalTask
- whether it shall be a final taskcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if properties are invalid@NotNull public @NotNull TaskDefinition importTaskDefinition(long id, @NotNull @NotNull TaskContainer taskContainer, @NotNull @NotNull List<TaskDefinition> precedingTasks, @NotNull @NotNull com.atlassian.bamboo.specs.api.model.task.TaskProperties taskProperties, @Nullable @Nullable VcsBranch importedBranch, boolean finalTask) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
id
- an identifier this task shall be assigned withtaskContainer
- container of this task (for instance a job or an environment)precedingTasks
- lists of tasks which were declared before the current tasktaskProperties
- the current task to be importedfinalTask
- whether it shall be a final taskimportedBranch
- the current branch if importing a divergent branch, null otherwisecom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if properties are invalidpublic void validateTaskProperties(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.plan.PlanProperties topLevelPlanProperties, @NotNull @NotNull RssPermissions rssPermissions, @Nullable @Nullable VcsBranch importedBranch) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
public void validateTaskProperties(@NotNull @NotNull com.atlassian.bamboo.specs.api.model.deployment.DeploymentProperties deploymentProperties, @NotNull @NotNull RssPermissions rssPermissions) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.