com.ptc.windchill.uwgm.proesrv.action
Class CreateBaselineAction
java.lang.Object
com.ptc.windchill.uwgm.proesrv.action.UwgmAction
com.ptc.windchill.uwgm.proesrv.action.UwgmWorkspaceAction
com.ptc.windchill.uwgm.proesrv.action.CreateBaselineAction
- public class CreateBaselineAction
- extends UwgmWorkspaceAction
Create Baseline and add iteration to Baseline action implementation
Fields inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmAction |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
baselineInfo
private CreateBaselineAction.BaselineInfo baselineInfo
iterationToAdd
private WTCollection iterationToAdd
baseline
private ManagedBaseline baseline
log
private static Log log
- logging
CreateBaselineAction
public CreateBaselineAction(RequestContext context,
EPMWorkspace epmWorkspace)
addIterations
public void addIterations(WTCollection iterations)
throws UwgmErrorException
- prepares a collection of Iteration to be added to baseline
Result Collection would consist of all CheckedIn iterations + checked in candidates +
original copies of checkedout candidates. Duplicates are removed
- Parameters:
iterations
- WTCollection
- Throws:
UwgmErrorException
setBaselineInfo
public void setBaselineInfo(CreateBaselineAction.BaselineInfo info)
getCreatedBaseline
public ManagedBaseline getCreatedBaseline()
- returns created Baseline
- Returns:
- ManagedBaseline
executeAction
protected void executeAction()
throws UwgmConflictException,
UwgmErrorException
- executeAction
- Specified by:
executeAction
in class UwgmAction
- Throws:
UwgmConflictException
UwgmErrorException
createBaseline
private ManagedBaseline createBaseline(CreateBaselineAction.BaselineInfo blInfo)
throws WTException
- Throws:
WTException
addIterationToBaseline
private int addIterationToBaseline(ManagedBaseline baseline,
WTCollection iterations)
throws WTException
- adds iterations and it's associated WTParts to Baseline
- Parameters:
baseline
- ManagedBaselineiterations
- WTCollection
- Returns:
- int
- Throws:
WTException