public interface MovePlanService
Modifier and Type | Method and Description |
---|---|
Map<PlanKey,PlanKey> |
movePlansToProject(Collection<TopLevelPlan> plans,
Project project,
Map<String,String> planIdMappings,
Map<String,String> planKeyMappings,
Map<String,String> planNameMappings)
Moves a list of plans to a new project.
|
void |
validatePlanKeysAndNamesForProject(com.atlassian.struts.ValidationAware validationAware,
Project newProject,
Map<String,String> planKeyMappings,
Map<String,String> planNameMappings)
Validates a list of plan names and keys against a single project.
|
void |
validateUsageOfProjectResources(@NotNull com.atlassian.struts.ValidationAware validationAware,
Collection<TopLevelPlan> plans)
Validate if source plans don't use project repositories or shared credentials.
|
void validatePlanKeysAndNamesForProject(com.atlassian.struts.ValidationAware validationAware, Project newProject, Map<String,String> planKeyMappings, Map<String,String> planNameMappings)
validationAware
- - to add errors tonewProject
- - project to validate plans againstplanKeyMappings
- - Map of a temporary index to plan key, of plans to validateplanNameMappings
- - Map of a temporary index to plan name, of plans to validatevoid validateUsageOfProjectResources(@NotNull @NotNull com.atlassian.struts.ValidationAware validationAware, Collection<TopLevelPlan> plans)
validationAware
- - to add errors toplans
- - source plansMap<PlanKey,PlanKey> movePlansToProject(Collection<TopLevelPlan> plans, Project project, Map<String,String> planIdMappings, Map<String,String> planKeyMappings, Map<String,String> planNameMappings) throws MovePlansException
plans
- to moveproject
- to move toplanIdMappings
- temporary index/id for each plan to moveplanKeyMappings
- temporary index/key for each plan to move (may be the same or new but must be already validated)planNameMappings
- temporaryindex/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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.