public class MovePlanServiceImpl extends Object implements MovePlanService
Constructor and Description |
---|
MovePlanServiceImpl(ArtifactDao artifactDao,
AuditLogService auditLogService,
BambooPermissionManager bambooPermissionManager,
BuildResultsIndexer buildResultsIndexer,
ChainBranchManager chainBranchManager,
ChainExecutionManager chainExecutionManager,
com.atlassian.event.api.EventPublisher eventPublisher,
ScopedExclusionServiceImpl exclusionService,
ImmutablePlanCacheService immutablePlanCacheService,
PlanExecutionLockService planExecutionLockService,
PlanManager planManager,
PlanValidationService planValidationService,
PlanVcsRevisionHistoryService planVcsRevisionHistoryService,
ResultsSummaryManager resultsSummaryManager,
com.opensymphony.xwork2.TextProvider textProvider,
TriggerTypeManager triggerTypeManager) |
Modifier and Type | Method and Description |
---|---|
Map<PlanKey,PlanKey> |
movePlansToProject(Collection<TopLevelPlan> plans,
Project project,
Map<String,String> planKeyMappings,
Map<String,String> planNameMappings)
Moves a list of plans to a new project.
|
Map<PlanKey,PlanKey> |
updatePlanDetails(Chain chain,
Project project,
String newPlanKey,
String newBuildName) |
void |
validatePlanKeysAndNamesForProject(com.atlassian.struts.ValidationAware validationAware,
Project project,
Map<String,String> planKeyMappings,
Map<String,String> planNameMappings)
Validates a list of plan names and keys against a single project.
|
public MovePlanServiceImpl(ArtifactDao artifactDao, AuditLogService auditLogService, BambooPermissionManager bambooPermissionManager, BuildResultsIndexer buildResultsIndexer, ChainBranchManager chainBranchManager, ChainExecutionManager chainExecutionManager, com.atlassian.event.api.EventPublisher eventPublisher, ScopedExclusionServiceImpl exclusionService, ImmutablePlanCacheService immutablePlanCacheService, PlanExecutionLockService planExecutionLockService, PlanManager planManager, PlanValidationService planValidationService, PlanVcsRevisionHistoryService planVcsRevisionHistoryService, ResultsSummaryManager resultsSummaryManager, com.opensymphony.xwork2.TextProvider textProvider, TriggerTypeManager triggerTypeManager)
public void validatePlanKeysAndNamesForProject(com.atlassian.struts.ValidationAware validationAware, Project project, Map<String,String> planKeyMappings, Map<String,String> planNameMappings)
MovePlanService
validatePlanKeysAndNamesForProject
in interface MovePlanService
validationAware
- - to add errors toproject
- - project to validate plans againstplanKeyMappings
- - Map of build id to plan key, of plans to validateplanNameMappings
- - Map of build id to plan name, of plans to validatepublic Map<PlanKey,PlanKey> movePlansToProject(Collection<TopLevelPlan> plans, Project project, Map<String,String> planKeyMappings, Map<String,String> planNameMappings) throws MovePlansException
MovePlanService
movePlansToProject
in interface MovePlanService
plans
- to moveproject
- to move toplanKeyMappings
- id/key for each plan to move (may be the same or new but must be already validated)planNameMappings
- id/name for each plan to move (may be the same or new but must be already validated)MovePlansException
- if a plan move fails. Plans previously moved will not be rolled back, all future plans to be moved will be aborted. The map of oldKey to newKey of already moved plans
can be found in the Exception.Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.