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

java.lang.Object
  extended bycom.ptc.windchill.uwgm.proesrv.cache.RequestCacheAdapter
      extended bycom.ptc.windchill.uwgm.proesrv.cache.WorkspaceRequestCacheAdapter
          extended bycom.ptc.windchill.uwgm.proesrv.cache.IBAModificationInstructionCacheAdapter
All Implemented Interfaces:
IBAModificationInstructionCache, WorkspaceRequestCache

public class IBAModificationInstructionCacheAdapter
extends WorkspaceRequestCacheAdapter
implements IBAModificationInstructionCache

Implamentation adapter for IBAModificationInstructionCache


Nested Class Summary
private  class IBAModificationInstructionCacheAdapter.IterationVisitor
          Implements the Visitor interface from IterationRequestProcessor for caching the iterations in a WTCollection.
 
Field Summary
protected  WTKeyedMap entityMap
          map of objects v/s UWGM iterations
private  List errorMessages
           
protected  WTKeyedMap iBAModificationMap
          WTKeyedMap of IBAModificationInstructions [Persistable, attributesMap(Map)]
private static Log log
          logging
protected  ObjectIdentifierHelper oidHelper
           
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.cache.WorkspaceRequestCacheAdapter
clientUpdateCounter, epmWorkspace
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.cache.RequestCacheAdapter
 
Constructor Summary
IBAModificationInstructionCacheAdapter()
          default constructor
 
Method Summary
protected  void addIterationNotFoundMessage(com.ptc.windchill.uwgm.soap.uwgmdb.Iteration iteration)
          utility method to record iteration not found message in UwgmMessages
 WTKeyedMap getIBAModificationMap()
          returns WTKeyedMap of ActionInstructions [Persistable, iBAModificationMap(Map)]
private  Map stringDictToMap(com.ptc.cipjava.stringdict dict)
          converts CIP stringdict to Map (String, String)
protected  void validateIterations(RequestContext requestContext, com.ptc.windchill.uwgm.soap.uwgmdb.Iteration[] iterations)
          Validates UWGM Iterations and inflates them to full-fledged Windchill objects for use by the Pro/E service request classes.
protected  void validateRequestData(RequestContext requestContext, com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest uwgmRequest)
          validates PartIBAModification request instructions
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.cache.WorkspaceRequestCacheAdapter
getEpmWorkspace, getUwgmUpdateCounter, validateWorkspace
 
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

entityMap

protected WTKeyedMap entityMap
map of objects v/s UWGM iterations


oidHelper

protected final ObjectIdentifierHelper oidHelper

errorMessages

private List errorMessages

iBAModificationMap

protected WTKeyedMap iBAModificationMap
WTKeyedMap of IBAModificationInstructions [Persistable, attributesMap(Map)]


log

private static Log log
logging

Constructor Detail

IBAModificationInstructionCacheAdapter

public IBAModificationInstructionCacheAdapter()
default constructor

Method Detail

validateRequestData

protected void validateRequestData(RequestContext requestContext,
                                   com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest uwgmRequest)
                            throws RequestValidationException,
                                   UwgmErrorException
validates PartIBAModification request instructions

Overrides:
validateRequestData in class WorkspaceRequestCacheAdapter
Parameters:
requestContext - RequestContext
uwgmRequest - UwgmRequest
Throws:
RequestValidationException
UwgmErrorException

getIBAModificationMap

public WTKeyedMap getIBAModificationMap()
returns WTKeyedMap of ActionInstructions [Persistable, iBAModificationMap(Map)]

Specified by:
getIBAModificationMap in interface IBAModificationInstructionCache
Returns:
ActionInstruction[]

validateIterations

protected void validateIterations(RequestContext requestContext,
                                  com.ptc.windchill.uwgm.soap.uwgmdb.Iteration[] iterations)
                           throws RequestValidationException,
                                  UwgmErrorException
Validates UWGM Iterations and inflates them to full-fledged Windchill objects for use by the Pro/E service request classes.

Parameters:
requestContext - RequestContext
iterations - Iteration[]
Throws:
RequestValidationException
UwgmErrorException

addIterationNotFoundMessage

protected void addIterationNotFoundMessage(com.ptc.windchill.uwgm.soap.uwgmdb.Iteration iteration)
utility method to record iteration not found message in UwgmMessages


stringDictToMap

private Map stringDictToMap(com.ptc.cipjava.stringdict dict)
                     throws WTException
converts CIP stringdict to Map (String, String)

Throws:
WTException