|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.task.TaskConfigurationServiceImpl
public class TaskConfigurationServiceImpl
| Constructor Summary | |
|---|---|
TaskConfigurationServiceImpl(BuildDefinitionManager buildDefinitionManager,
TaskManager taskManager,
BuildDefinitionConverter buildDefinitionConverter,
com.opensymphony.xwork.TextProvider textProvider,
PlanManager planManager,
AuditLogService auditLogService)
|
|
| Method Summary | |
|---|---|
protected void |
adjustFinalisingBar(java.util.List<TaskDefinition> tasks,
long beforeId,
long afterId)
|
TaskDefinition |
createTask(PlanKey planKey,
TaskModuleDescriptor taskDescriptor,
java.lang.String userDescription,
java.util.Map<java.lang.String,java.lang.String> configuration)
Create a task Definition and save it against the plan |
void |
createTaskList(PlanKey planKey,
java.util.List<TaskDefinition> taskDefinitions)
Initializes task list of a plan with the provided list. |
void |
deleteTask(PlanKey planKey,
long taskId)
Delete a given taskDefinition |
TaskDefinition |
editTask(PlanKey planKey,
long taskId,
java.lang.String userDescription,
java.util.Map<java.lang.String,java.lang.String> taskConfigurationMap)
Update the details of specific taskDefinition |
protected java.util.List<TaskDefinition> |
getNewTaskList(java.util.List<TaskDefinition> originalTasks,
TaskDefinition toMove,
long beforeId,
long afterId,
boolean isFinal)
|
protected TaskDefinition |
getTaskById(java.util.List<TaskDefinition> tasks,
long id)
|
java.util.Collection<Requirement> |
getTasksRequirements(PlanKey planKey)
Return Requirements for all tasks of Plan represented by PlanKey |
void |
moveFinalBar(PlanKey planKey,
long beforeId,
long afterId)
Moves the final Bar to a specific location in the list. |
void |
moveTask(PlanKey planKey,
long taskId,
long beforeId,
long afterId,
boolean isFinal)
Move a taskDefinition from one spot in its list, to another. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskConfigurationServiceImpl(BuildDefinitionManager buildDefinitionManager,
TaskManager taskManager,
BuildDefinitionConverter buildDefinitionConverter,
com.opensymphony.xwork.TextProvider textProvider,
PlanManager planManager,
AuditLogService auditLogService)
| Method Detail |
|---|
public TaskDefinition createTask(@NotNull
PlanKey planKey,
@NotNull
TaskModuleDescriptor taskDescriptor,
@Nullable
java.lang.String userDescription,
@NotNull
java.util.Map<java.lang.String,java.lang.String> configuration)
TaskConfigurationService
createTask in interface TaskConfigurationServiceplanKey - of the plan to add the taskDefinition to, plan should be BuildabletaskDescriptor - for the taskDefinition to be addeduserDescription - description the user has specified for this taskDefinitionconfiguration - configuration from the plugin for this taskDefinition
TaskDefinition created
public void createTaskList(PlanKey planKey,
@NotNull
java.util.List<TaskDefinition> taskDefinitions)
TaskConfigurationService
createTaskList in interface TaskConfigurationServiceplanKey - - the plan the task list belongs totaskDefinitions - - list of the tasks to be added
public void moveTask(@NotNull
PlanKey planKey,
long taskId,
long beforeId,
long afterId,
boolean isFinal)
TaskConfigurationService
moveTask in interface TaskConfigurationServiceplanKey - the plan the taskDefinition is intaskId - ID of the TaskDefinition to movebeforeId - ID of the taskDefinition that will be before the moving Task, -1 if the beginning of the listafterId - ID of the taskDefinition that will be after the moving Task, -1 if the end of the listisFinal - whether the task being moved is finalising or not, may or may not require changing.
public void deleteTask(@NotNull
PlanKey planKey,
long taskId)
TaskConfigurationService
deleteTask in interface TaskConfigurationServiceplanKey - for the plan to delete the TaskDefinition fromtaskId - of the TaskDefinition to delete.
public TaskDefinition editTask(@NotNull
PlanKey planKey,
long taskId,
@Nullable
java.lang.String userDescription,
@NotNull
java.util.Map<java.lang.String,java.lang.String> taskConfigurationMap)
TaskConfigurationService
editTask in interface TaskConfigurationServiceplanKey - - the plan the taskDefintion belongs to, must be buildabletaskId - - the taskDefinition to edituserDescription - - new user descriptiontaskConfigurationMap - - new task Configuration
TaskDefinition with updates.
@NotNull
public java.util.Collection<Requirement> getTasksRequirements(@NotNull
PlanKey planKey)
TaskConfigurationServiceRequirements for all tasks of Plan represented by PlanKey
getTasksRequirements in interface TaskConfigurationServiceJobs TaskTypes
public void moveFinalBar(PlanKey planKey,
long beforeId,
long afterId)
throws java.lang.IllegalArgumentException,
java.lang.IllegalStateException
TaskConfigurationService
moveFinalBar in interface TaskConfigurationServiceplanKey - - the plan the task list belongs tobeforeId - - the id of the task we want before the bar, -1 if beginning of listafterId - - the id of the task we want after the bar, -1 if end of list
java.lang.IllegalArgumentException - if plan does not exist
java.lang.IllegalStateException - if task list has changed since move requested
@Nullable
protected TaskDefinition getTaskById(@NotNull
java.util.List<TaskDefinition> tasks,
long id)
protected void adjustFinalisingBar(@NotNull
java.util.List<TaskDefinition> tasks,
long beforeId,
long afterId)
@NotNull
protected java.util.List<TaskDefinition> getNewTaskList(@NotNull
java.util.List<TaskDefinition> originalTasks,
@NotNull
TaskDefinition toMove,
long beforeId,
long afterId,
boolean isFinal)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||