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

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.CheckStaleContentAction

public class CheckStaleContentAction
extends UwgmWorkspaceAction

CheckStaleContentAction implementation. This class has been implemented to do the content related preprocessing during checkin. This preprocessing includes rasing the conflict for stale secondary ontents and processing for the resolution option set by the user for this conflict


Field Summary
private  WTValuedMap checkinInstructions
           
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
CheckStaleContentAction(RequestContext context, EPMWorkspace epmWorkspace)
           
 
Method Summary
 void addInstructions(WTValuedMap instructions)
           
protected  void executeAction()
          executeAction
private  WTKeyedMap getStaleContentsMap(WTValuedMap checkinInstructions)
          getStaleContentsMap Internal implemantation to get the stale seondary contents
private  void processResolutionOptions(WTKeyedMap resolutionsMap, WTKeyedMap secondaryContentsMap)
          processResolutionOptions Internal implemantation to do the preprocessing for resolution options set for the conflict raised during checkin for stale secondary contents.
 
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

checkinInstructions

private WTValuedMap checkinInstructions

log

private static Log log
logging

Constructor Detail

CheckStaleContentAction

public CheckStaleContentAction(RequestContext context,
                               EPMWorkspace epmWorkspace)
Method Detail

addInstructions

public void addInstructions(WTValuedMap instructions)

executeAction

protected void executeAction()
                      throws UwgmConflictException,
                             UwgmErrorException
executeAction

Specified by:
executeAction in class UwgmAction
Throws:
UwgmConflictException
UwgmErrorException

processResolutionOptions

private void processResolutionOptions(WTKeyedMap resolutionsMap,
                                      WTKeyedMap secondaryContentsMap)
                               throws WTException
processResolutionOptions Internal implemantation to do the preprocessing for resolution options set for the conflict raised during checkin for stale secondary contents.

Parameters:
resolutionsMap - WTKeyedMap
secondaryContentsMap - WTKeyedMap
Throws:
WTException

getStaleContentsMap

private WTKeyedMap getStaleContentsMap(WTValuedMap checkinInstructions)
                                throws WTException
getStaleContentsMap Internal implemantation to get the stale seondary contents

Parameters:
checkinInstructions - WTValuedMap
Returns:
staleContentMap WTKeyedMap
Throws:
WTException