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

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

public class PartRenameAction
extends AbstractRenameAction

Implements the Rename operation for WTParts. 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 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
PartRenameAction(RequestContext context)
           
PartRenameAction(RequestContext context, WTKeyedMap identityInfoMap)
           
 
Method Summary
protected  IdentificationObject createMasterIdentity(Identified master, RenameInfo renameInfo)
           
 void executeAction()
          executes action (should be overwritten by implementation action subclasses)
protected  WTKeyedMap prepareIdentityMap(WTCollection renamedMasters)
           
 
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
Constructor Detail

PartRenameAction

public PartRenameAction(RequestContext context)

PartRenameAction

public PartRenameAction(RequestContext context,
                        WTKeyedMap identityInfoMap)
Method Detail

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