|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MovePlanService
Service for moving plans between projects
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. |
void |
validatePlanKeysAndNamesForProject(com.atlassian.struts.ValidationAware validationAware,
Project newProject,
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. |
Method Detail |
---|
void validatePlanKeysAndNamesForProject(com.atlassian.struts.ValidationAware validationAware, Project newProject, java.util.Map<java.lang.String,java.lang.String> planKeyMappings, java.util.Map<java.lang.String,java.lang.String> planNameMappings)
validationAware
- - to add errors tonewProject
- - 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 validatejava.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
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |