|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.deployments.environments.service.EnvironmentTaskServiceImpl
public class EnvironmentTaskServiceImpl
Constructor Summary | |
---|---|
EnvironmentTaskServiceImpl(ScopedExclusionService scopedExclusionService,
AuditLogService auditLogService,
com.opensymphony.xwork2.TextProvider textProvider,
EnvironmentDao environmentDao,
TaskManager taskManager,
PlanScheduler planScheduler,
EnvironmentRepositoryLinkDao environmentRepositoryLinkDao,
RepositoryDefinitionManager repositoryDefinitionManager)
|
Method Summary | |
---|---|
TaskDefinition |
createTask(long environmentId,
TaskModuleDescriptor taskDescriptor,
String userDescription,
boolean isEnabled,
Map<String,String> configuration)
Create a new task in the environment |
void |
deleteTask(long environmentId,
long taskId)
Delete a task from the environment |
TaskDefinition |
editTask(long environmentId,
long taskId,
String userDescription,
boolean isEnabled,
Map<String,String> taskConfigurationMap)
Edit an existing task in the environment |
protected TaskDefinition |
getTaskById(List<TaskDefinition> tasks,
long id)
|
void |
moveFinalBar(long environmentId,
long beforeId,
long afterId)
Moves the final Bar to a specific location in the list. |
void |
moveTask(long environmentId,
long taskId,
long beforeId,
long afterId,
boolean isFinal)
Move a taskDefinition from one spot in its list, to another. |
void |
updateRepositoryIdsInTasks(Environment environment,
Map<Long,Long> repositoryIdsChanges)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnvironmentTaskServiceImpl(ScopedExclusionService scopedExclusionService, AuditLogService auditLogService, com.opensymphony.xwork2.TextProvider textProvider, EnvironmentDao environmentDao, TaskManager taskManager, PlanScheduler planScheduler, EnvironmentRepositoryLinkDao environmentRepositoryLinkDao, RepositoryDefinitionManager repositoryDefinitionManager)
Method Detail |
---|
@NotNull public TaskDefinition createTask(long environmentId, @NotNull TaskModuleDescriptor taskDescriptor, @Nullable String userDescription, boolean isEnabled, @NotNull Map<String,String> configuration) throws IllegalArgumentException
EnvironmentTaskService
createTask
in interface EnvironmentTaskService
environmentId
- environment task belongs totaskDescriptor
- of the task typeuserDescription
- of the configured taskisEnabled
- is the Task Enabledconfiguration
- map of all data to be saved for the task.
IllegalArgumentException
- if no environment with environmentId can be foundpublic TaskDefinition editTask(long environmentId, long taskId, String userDescription, boolean isEnabled, Map<String,String> taskConfigurationMap)
EnvironmentTaskService
editTask
in interface EnvironmentTaskService
environmentId
- environment task belongs totaskId
- of the task being editeduserDescription
- user defined description of the configured taskisEnabled
- is the Task EnabledtaskConfigurationMap
- map of all data to be saved for the task.
public void deleteTask(long environmentId, long taskId)
EnvironmentTaskService
deleteTask
in interface EnvironmentTaskService
environmentId
- environment task belongs totaskId
- task to deletepublic void moveTask(long environmentId, long taskId, long beforeId, long afterId, boolean isFinal)
EnvironmentTaskService
moveTask
in interface EnvironmentTaskService
environmentId
- the environment 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 moveFinalBar(long environmentId, long beforeId, long afterId) throws IllegalArgumentException, IllegalStateException
EnvironmentTaskService
moveFinalBar
in interface EnvironmentTaskService
environmentId
- - the environment 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
IllegalArgumentException
- if environment does not exist
IllegalStateException
- if task list has changed since move requestedpublic void updateRepositoryIdsInTasks(@NotNull Environment environment, Map<Long,Long> repositoryIdsChanges)
updateRepositoryIdsInTasks
in interface EnvironmentTaskService
@Nullable protected TaskDefinition getTaskById(@NotNull List<TaskDefinition> tasks, long id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |