com.atlassian.bamboo.plan
Class MovePlanServiceImpl
java.lang.Object
com.atlassian.bamboo.plan.MovePlanServiceImpl
- All Implemented Interfaces:
- MovePlanService
public class MovePlanServiceImpl
- extends java.lang.Object
- implements MovePlanService
Constructor Summary |
MovePlanServiceImpl(PlanManager planManager,
ResultsSummaryManager resultsSummaryManager,
BambooPermissionManager bambooPermissionManager,
BuildResultsIndexer buildResultsIndexer,
ChainBranchManager chainBranchManager,
com.opensymphony.xwork.TextProvider textProvider,
PlanValidationService planValidationService,
AuditLogService auditLogService,
ScopedExclusionServiceImpl exclusionService,
PlanExecutionLockService planExecutionLockService,
ChainExecutionManager chainExecutionManager,
ImmutablePlanCacheService immutablePlanCacheService)
|
Method Summary |
java.util.Map<PlanKey,PlanKey> |
movePlansToProject(java.util.Collection<TopLevelPlan> plans,
Project project,
java.util.Map<java.lang.String,java.lang.String> planKeyMappings,
java.util.Map<java.lang.String,java.lang.String> planNameMappings)
Moves a list of plans to a new project. |
java.util.Map<PlanKey,PlanKey> |
updatePlanDetails(Chain chain,
Project project,
java.lang.String newPlanKey,
java.lang.String newBuildName)
|
void |
validatePlanKeysAndNamesForProject(com.opensymphony.xwork.ValidationAware validationAware,
Project project,
java.util.Map<java.lang.String,java.lang.String> planKeyMappings,
java.util.Map<java.lang.String,java.lang.String> planNameMappings)
Validates a list of plan names and keys against a single project. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MovePlanServiceImpl
public MovePlanServiceImpl(PlanManager planManager,
ResultsSummaryManager resultsSummaryManager,
BambooPermissionManager bambooPermissionManager,
BuildResultsIndexer buildResultsIndexer,
ChainBranchManager chainBranchManager,
com.opensymphony.xwork.TextProvider textProvider,
PlanValidationService planValidationService,
AuditLogService auditLogService,
ScopedExclusionServiceImpl exclusionService,
PlanExecutionLockService planExecutionLockService,
ChainExecutionManager chainExecutionManager,
ImmutablePlanCacheService immutablePlanCacheService)
validatePlanKeysAndNamesForProject
public void validatePlanKeysAndNamesForProject(com.opensymphony.xwork.ValidationAware validationAware,
Project project,
java.util.Map<java.lang.String,java.lang.String> planKeyMappings,
java.util.Map<java.lang.String,java.lang.String> planNameMappings)
- Description copied from interface:
MovePlanService
- Validates a list of plan names and keys against a single project. Ensures that the plan names and keys don't conflict with
each other or any existing plans/branches in the project.
- Specified by:
validatePlanKeysAndNamesForProject
in interface MovePlanService
- Parameters:
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 validate
movePlansToProject
public java.util.Map<PlanKey,PlanKey> movePlansToProject(java.util.Collection<TopLevelPlan> plans,
Project project,
java.util.Map<java.lang.String,java.lang.String> planKeyMappings,
java.util.Map<java.lang.String,java.lang.String> planNameMappings)
throws MovePlansException
- Description copied from interface:
MovePlanService
- Moves a list of plans to a new project. Assumes plan Key and name validation already complete.
- Specified by:
movePlansToProject
in interface MovePlanService
- Parameters:
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)
- Returns:
- Map of oldKey to newKey for all plans moved
- Throws:
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.
updatePlanDetails
@NotNull
public java.util.Map<PlanKey,PlanKey> updatePlanDetails(Chain chain,
Project project,
java.lang.String newPlanKey,
java.lang.String newBuildName)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2012 Atlassian. All Rights Reserved.