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

java.lang.Object
  extended bycom.ptc.windchill.uwgm.proesrv.action.UwgmAction
      extended bycom.ptc.windchill.uwgm.proesrv.action.AbstractRenameAction
          extended bycom.ptc.windchill.uwgm.proesrv.action.EpmRenameAction

public class EpmRenameAction
extends AbstractRenameAction

Implements the Rename operation for EPMDocuments. Note that new WTCollection-based API needs to be used for changing names and numbers (using IdentityService) but that will be possible only after that API becomes available in build 25+.


Field Summary
private  WTKeyedMap cadNameMap
           
private static Log log
           
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.action.AbstractRenameAction
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.action.UwgmAction
 
Constructor Summary
EpmRenameAction(RequestContext context)
           
EpmRenameAction(RequestContext context, WTKeyedMap identityInfoMap)
           
EpmRenameAction(RequestContext context, WTKeyedMap cadNameMap, WTKeyedMap identityInfoMap)
           
 
Method Summary
protected  IdentificationObject createMasterIdentity(Identified master, RenameInfo renameInfo)
           
 void executeAction()
          executes action (should be overwritten by implementation action subclasses)
private  WTCollection mergeMasters(WTCollection renamedMasters, WTCollection mastersWithIdentityChange)
           
protected  WTKeyedMap prepareIdentityMap(WTCollection renamedMasters)
           
 void setCadNameMap(WTKeyedMap cadNameMap)
           
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.action.AbstractRenameAction
getIdentityInfoMap, getRenamedMasters, hasIdentityChanged, setIdentityInfoMap, setRenamedMasters
 
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

log

private static Log log

cadNameMap

private WTKeyedMap cadNameMap
Constructor Detail

EpmRenameAction

public EpmRenameAction(RequestContext context)

EpmRenameAction

public EpmRenameAction(RequestContext context,
                       WTKeyedMap identityInfoMap)

EpmRenameAction

public EpmRenameAction(RequestContext context,
                       WTKeyedMap cadNameMap,
                       WTKeyedMap identityInfoMap)
Method Detail

setCadNameMap

public void setCadNameMap(WTKeyedMap cadNameMap)

executeAction

public void executeAction()
                   throws UwgmConflictException,
                          UwgmErrorException
Description copied from class: UwgmAction
executes action (should be overwritten by implementation action subclasses)

Overrides:
executeAction in class AbstractRenameAction
Throws:
UwgmConflictException
UwgmErrorException

prepareIdentityMap

protected WTKeyedMap prepareIdentityMap(WTCollection renamedMasters)
                                 throws WTException,
                                        WTPropertyVetoException
Specified by:
prepareIdentityMap in class AbstractRenameAction
Throws:
WTException
WTPropertyVetoException

createMasterIdentity

protected IdentificationObject createMasterIdentity(Identified master,
                                                    RenameInfo renameInfo)
                                             throws WTException,
                                                    WTPropertyVetoException
Specified by:
createMasterIdentity in class AbstractRenameAction
Throws:
WTException
WTPropertyVetoException

mergeMasters

private WTCollection mergeMasters(WTCollection renamedMasters,
                                  WTCollection mastersWithIdentityChange)
                           throws WTException
Throws:
WTException