com.ptc.windchill.uwgm.proesrv.action
Class CreateBaselineAction

java.lang.Object
  extended bycom.ptc.windchill.uwgm.proesrv.action.UwgmAction
      extended bycom.ptc.windchill.uwgm.proesrv.action.UwgmWorkspaceAction
          extended bycom.ptc.windchill.uwgm.proesrv.action.CreateBaselineAction

public class CreateBaselineAction
extends UwgmWorkspaceAction

Create Baseline and add iteration to Baseline action implementation


Nested Class Summary
static interface CreateBaselineAction.BaselineInfo
          BaselineInfo interface to create Baseline
 
Field Summary
private  ManagedBaseline baseline
           
private  CreateBaselineAction.BaselineInfo baselineInfo
           
private  WTCollection iterationToAdd
           
private static Log log
          logging
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmWorkspaceAction
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmAction
 
Constructor Summary
CreateBaselineAction(RequestContext context, EPMWorkspace epmWorkspace)
           
 
Method Summary
 void addIterations(WTCollection iterations)
          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.
private  int addIterationToBaseline(ManagedBaseline baseline, WTCollection iterations)
          adds iterations and it's associated WTParts to Baseline
private  ManagedBaseline createBaseline(CreateBaselineAction.BaselineInfo blInfo)
           
protected  void executeAction()
          executeAction
 ManagedBaseline getCreatedBaseline()
          returns created Baseline
 void setBaselineInfo(CreateBaselineAction.BaselineInfo info)
           
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmWorkspaceAction
getEPMWorkspace
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmAction
addWarning, checkExecutionSuccess, execute, getContext, getWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baselineInfo

private CreateBaselineAction.BaselineInfo baselineInfo

iterationToAdd

private WTCollection iterationToAdd

baseline

private ManagedBaseline baseline

log

private static Log log
logging

Constructor Detail

CreateBaselineAction

public CreateBaselineAction(RequestContext context,
                            EPMWorkspace epmWorkspace)
Method Detail

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 - ManagedBaseline
iterations - WTCollection
Returns:
int
Throws:
WTException