public interface MovePlanService
|Modifier and Type||Method and Description|
Moves a list of plans to a new project.
Validates a list of plan names and keys against a single project.
void validatePlanKeysAndNamesForProject(com.atlassian.struts.ValidationAware validationAware, Project newProject, Map<String,String> planKeyMappings, Map<String,String> planNameMappings)
validationAware- - to add errors to
newProject- - project to validate plans against
planKeyMappings- - Map of build id to plan key, of plans to validate
planNameMappings- - Map of build id to plan name, of plans to validate
Map<PlanKey,PlanKey> movePlansToProject(Collection<TopLevelPlan> plans, Project project, Map<String,String> planKeyMappings, Map<String,String> planNameMappings) throws MovePlansException
plans- to move
project- to move to
planKeyMappings- 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 © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.