com.ptc.windchill.uwgm.proesrv.cache
Class PartRenameInstructionCacheAdapter

java.lang.Object
  extended bycom.ptc.windchill.uwgm.proesrv.cache.RequestCacheAdapter
      extended bycom.ptc.windchill.uwgm.proesrv.cache.RenameInstructionCacheAdapter
          extended bycom.ptc.windchill.uwgm.proesrv.cache.PartRenameInstructionCacheAdapter
All Implemented Interfaces:
RenameInstructionCache

public class PartRenameInstructionCacheAdapter
extends RenameInstructionCacheAdapter

Implementation adapter for RenameInstructionCache. Works with PartRenameInstructions only.


Field Summary
private static Log log
          logging
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.cache.RenameInstructionCacheAdapter
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.cache.RequestCacheAdapter
 
Constructor Summary
PartRenameInstructionCacheAdapter()
           
 
Method Summary
protected  void addInstruction(com.ptc.windchill.uwgm.soap.uwgmsvc.RenameInstruction uwgmInstruction, Persistable persistable)
           
private  String getNewName(com.ptc.windchill.uwgm.soap.uwgmsvc.PartRenameInstruction instruction, WTPartMaster master)
           
private  String getNewNumber(com.ptc.windchill.uwgm.soap.uwgmsvc.PartRenameInstruction instruction, WTPartMaster master)
           
private  boolean isIdentityChangeRequired(com.ptc.windchill.uwgm.soap.uwgmsvc.PartRenameInstruction partRenameInstruction, WTPartMaster master)
           
protected  List validateInstruction(com.ptc.windchill.uwgm.soap.uwgmsvc.RenameInstruction renameInstruction, Persistable persistable, RequestContext context)
           
protected  void validateRequestData(RequestContext requestContext, com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest uwgmRequest)
          abstract validateRequestData method to be overwritten by RequestCacheAdapter implementations
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.cache.RenameInstructionCacheAdapter
getIdentityInfoMap
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.cache.RequestCacheAdapter
checkCacheData, isValid, setValid, validate
 
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
logging

Constructor Detail

PartRenameInstructionCacheAdapter

public PartRenameInstructionCacheAdapter()
Method Detail

validateRequestData

protected void validateRequestData(RequestContext requestContext,
                                   com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest uwgmRequest)
                            throws RequestValidationException,
                                   UwgmErrorException
Description copied from class: RequestCacheAdapter
abstract validateRequestData method to be overwritten by RequestCacheAdapter implementations

Overrides:
validateRequestData in class RenameInstructionCacheAdapter
Throws:
RequestValidationException
UwgmErrorException

validateInstruction

protected List validateInstruction(com.ptc.windchill.uwgm.soap.uwgmsvc.RenameInstruction renameInstruction,
                                   Persistable persistable,
                                   RequestContext context)
Specified by:
validateInstruction in class RenameInstructionCacheAdapter

addInstruction

protected void addInstruction(com.ptc.windchill.uwgm.soap.uwgmsvc.RenameInstruction uwgmInstruction,
                              Persistable persistable)
Specified by:
addInstruction in class RenameInstructionCacheAdapter

isIdentityChangeRequired

private boolean isIdentityChangeRequired(com.ptc.windchill.uwgm.soap.uwgmsvc.PartRenameInstruction partRenameInstruction,
                                         WTPartMaster master)

getNewName

private String getNewName(com.ptc.windchill.uwgm.soap.uwgmsvc.PartRenameInstruction instruction,
                          WTPartMaster master)

getNewNumber

private String getNewNumber(com.ptc.windchill.uwgm.soap.uwgmsvc.PartRenameInstruction instruction,
                            WTPartMaster master)