com.ptc.windchill.uwgm.proesrv.rrc
Class RequestHolder

java.lang.Object
  extended bycom.ptc.windchill.uwgm.proesrv.rrc.DbObjCache
      extended bycom.ptc.windchill.uwgm.proesrv.rrc.RequestHolder
All Implemented Interfaces:
RequestResultCache.Populator

class RequestHolder
extends DbObjCache
implements RequestResultCache.Populator

Auxiliary data structure to hold a request along with some additional info.


Nested Class Summary
 
Nested classes inherited from class com.ptc.windchill.uwgm.proesrv.rrc.DbObjCache
DbObjCache.Visitor, DbObjCache.VisitorAdapter
 
Field Summary
private  RequestResultCache cache
           
(package private)  com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest.RequestedAttributes epmIterRA
           
private static Log log
           
(package private)  com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest.RequestedAttributes partIterRA
           
(package private)  RequestResultProcessor processor
           
(package private)  com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest request
           
(package private)  boolean requestFailed
           
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.rrc.DbObjCache
 
Constructor Summary
(package private) RequestHolder(RequestResultCache cache, com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest rq)
           
 
Method Summary
 com.ptc.windchill.uwgm.soap.uwgmdb.Container addContainer(WTContainer wtContainer)
           
 com.ptc.windchill.uwgm.soap.uwgmdb.Content addContent(ContentItem item)
           
 com.ptc.windchill.uwgm.soap.uwgmdb.DbObj addDbObj(com.ptc.windchill.uwgm.soap.uwgmdb.DbObj object)
          Add object to the dedicated cache for this Request, as well as to the "globlal" cache.
 com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration addEPMDocument(EPMDocument wtEpmDoc)
           
 com.ptc.windchill.uwgm.soap.uwgmdb.EpmMaster addEPMDocumentMaster(EPMDocumentMaster wtEpmMaster)
           
 com.ptc.windchill.uwgm.soap.uwgmdb.Workspace addEPMWorkspace(EPMWorkspace epmWS)
           
 com.ptc.windchill.uwgm.soap.uwgmdb.Workspace addEPMWorkspace(EPMWorkspace epmWS, long clientStateId)
           
 com.ptc.windchill.uwgm.soap.uwgmdb.Folder addFakeFolder(FakeFolder fakeFolder)
           
 com.ptc.windchill.uwgm.soap.uwgmdb.Folder addFolder(Folder wtFolder, WTCollection foldered)
           
 com.ptc.windchill.uwgm.soap.uwgmdb.EpmMemberDependency addLink(EPMMemberLink wtLink)
           
 com.ptc.windchill.uwgm.soap.uwgmdb.EpmReferenceDependency addLink(EPMReferenceLink wtLink)
           
 com.ptc.windchill.uwgm.soap.uwgmdb.PartIteration addWTPart(WTPart wtPart)
           
 com.ptc.windchill.uwgm.soap.uwgmdb.PartMaster addWTPartMaster(WTPartMaster wtPartMaster)
           
 void bindContent(com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration epmIter, com.ptc.windchill.uwgm.soap.uwgmdb.Content content)
           
 void bindFoldered(com.ptc.windchill.uwgm.soap.uwgmdb.Folder folder, com.ptc.windchill.uwgm.soap.uwgmdb.Foldered foldered)
          Adds a Foldered object to the Folder contents
private  void bindFoldered(com.ptc.windchill.uwgm.soap.uwgmdb.Folder folder, WTCollection wtFoldered)
           
(package private)  com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest getRequest()
           
(package private)  void processContainers()
           
(package private)  void processEpmIterations()
           
(package private)  void processEpmMasters()
           
(package private)  void processFolders()
           
(package private)  void processPartIterations()
           
(package private)  void processPartMasters()
           
(package private)  void processWorkspaces()
           
 void reportFailure()
           
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.rrc.DbObjCache
addIterations, clear, contains, contains, getDbObj, getDbObjects, getDbObjects, isEmpty, visitDbObjects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final Log log

cache

private final RequestResultCache cache

request

final com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest request

processor

final RequestResultProcessor processor

requestFailed

boolean requestFailed

epmIterRA

final com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest.RequestedAttributes epmIterRA

partIterRA

final com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest.RequestedAttributes partIterRA
Constructor Detail

RequestHolder

RequestHolder(RequestResultCache cache,
              com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest rq)
Method Detail

getRequest

com.ptc.windchill.uwgm.soap.uwgm.UwgmRequest getRequest()

addDbObj

public com.ptc.windchill.uwgm.soap.uwgmdb.DbObj addDbObj(com.ptc.windchill.uwgm.soap.uwgmdb.DbObj object)
Add object to the dedicated cache for this Request, as well as to the "globlal" cache. If object found (by ID) in the global cache, parameter will be ignored and the old object will be stored in the request cache and returned by this method.

Overrides:
addDbObj in class DbObjCache
Parameters:
object - DbObj
Returns:
DbObj

reportFailure

public void reportFailure()
Specified by:
reportFailure in interface RequestResultCache.Populator

addContainer

public com.ptc.windchill.uwgm.soap.uwgmdb.Container addContainer(WTContainer wtContainer)
Specified by:
addContainer in interface RequestResultCache.Populator

addContent

public com.ptc.windchill.uwgm.soap.uwgmdb.Content addContent(ContentItem item)
                                                      throws WTException
Specified by:
addContent in interface RequestResultCache.Populator
Throws:
WTException

bindContent

public void bindContent(com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration epmIter,
                        com.ptc.windchill.uwgm.soap.uwgmdb.Content content)
Specified by:
bindContent in interface RequestResultCache.Populator

addEPMDocument

public com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration addEPMDocument(EPMDocument wtEpmDoc)
                                                               throws WTException
Specified by:
addEPMDocument in interface RequestResultCache.Populator
Throws:
WTException

addEPMDocumentMaster

public com.ptc.windchill.uwgm.soap.uwgmdb.EpmMaster addEPMDocumentMaster(EPMDocumentMaster wtEpmMaster)
Specified by:
addEPMDocumentMaster in interface RequestResultCache.Populator

addLink

public com.ptc.windchill.uwgm.soap.uwgmdb.EpmMemberDependency addLink(EPMMemberLink wtLink)
Specified by:
addLink in interface RequestResultCache.Populator

addLink

public com.ptc.windchill.uwgm.soap.uwgmdb.EpmReferenceDependency addLink(EPMReferenceLink wtLink)
Specified by:
addLink in interface RequestResultCache.Populator

addFolder

public com.ptc.windchill.uwgm.soap.uwgmdb.Folder addFolder(Folder wtFolder,
                                                           WTCollection foldered)
                                                    throws WTException
Specified by:
addFolder in interface RequestResultCache.Populator
Throws:
WTException

bindFoldered

private void bindFoldered(com.ptc.windchill.uwgm.soap.uwgmdb.Folder folder,
                          WTCollection wtFoldered)
                   throws WTException
Throws:
WTException

addFakeFolder

public com.ptc.windchill.uwgm.soap.uwgmdb.Folder addFakeFolder(FakeFolder fakeFolder)
                                                        throws WTException
Specified by:
addFakeFolder in interface RequestResultCache.Populator
Throws:
WTException

bindFoldered

public void bindFoldered(com.ptc.windchill.uwgm.soap.uwgmdb.Folder folder,
                         com.ptc.windchill.uwgm.soap.uwgmdb.Foldered foldered)
Adds a Foldered object to the Folder contents

Specified by:
bindFoldered in interface RequestResultCache.Populator
Parameters:
folder - Folder
foldered - Foldered
Throws:
IllegalArgumentException - if any of the parameters not in the cache

addWTPart

public com.ptc.windchill.uwgm.soap.uwgmdb.PartIteration addWTPart(WTPart wtPart)
                                                           throws WTException
Specified by:
addWTPart in interface RequestResultCache.Populator
Throws:
WTException

addWTPartMaster

public com.ptc.windchill.uwgm.soap.uwgmdb.PartMaster addWTPartMaster(WTPartMaster wtPartMaster)
Specified by:
addWTPartMaster in interface RequestResultCache.Populator

addEPMWorkspace

public com.ptc.windchill.uwgm.soap.uwgmdb.Workspace addEPMWorkspace(EPMWorkspace epmWS)
Specified by:
addEPMWorkspace in interface RequestResultCache.Populator

addEPMWorkspace

public com.ptc.windchill.uwgm.soap.uwgmdb.Workspace addEPMWorkspace(EPMWorkspace epmWS,
                                                                    long clientStateId)
Specified by:
addEPMWorkspace in interface RequestResultCache.Populator

processWorkspaces

void processWorkspaces()
                 throws UwgmErrorException
Throws:
UwgmErrorException

processFolders

void processFolders()
              throws UwgmErrorException
Throws:
UwgmErrorException

processContainers

void processContainers()
                 throws UwgmErrorException
Throws:
UwgmErrorException

processEpmIterations

void processEpmIterations()
                    throws UwgmErrorException
Throws:
UwgmErrorException

processEpmMasters

void processEpmMasters()
                 throws UwgmErrorException
Throws:
UwgmErrorException

processPartIterations

void processPartIterations()
                     throws UwgmErrorException
Throws:
UwgmErrorException

processPartMasters

void processPartMasters()
                  throws UwgmErrorException
Throws:
UwgmErrorException