com.ptc.windchill.uwgm.proesrv.request
Class EpmUploadRequest

java.lang.Object
  extended bycom.ptc.windchill.uwgm.proesrv.ProeServiceRequest
      extended bycom.ptc.windchill.uwgm.proesrv.request.EpmUploadRequest
All Implemented Interfaces:
RequestResultCache.Populator, TransactionalRequest

public class EpmUploadRequest
extends ProeServiceRequest
implements TransactionalRequest


Field Summary
private  com.ptc.windchill.uwgm.soap.uwgmsvc.EpmUpload epmUpload
           
private  Collection errorElements
           
private static Log log
          logging
private  Vector m_ccData
           
private  com.ptc.windchill.uwgm.soap.uwgmdb.DbObj.Modificator modificator
           
private static ObjectIdentifierHelper oidHelper
           
protected  EpmUploadRequestCache requestCache
           
private  RequestResultCache resultCache
           
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.ProeServiceRequest
context, RESOURCE, resultPopulator, uwgmRequest
 
Constructor Summary
EpmUploadRequest(com.ptc.windchill.uwgm.soap.uwgmsvc.EpmUpload upload, RequestResultCache resCache)
           
 
Method Summary
private  Map addNewEPMDocuments(Map m_neutralDocs, EPMCacheInterface m_cache)
           
 com.ptc.windchill.uwgm.soap.uwgm.UwgmMessage executeRequest()
          executes request
private  void registerContent(String cadName, com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration epmIt, com.ptc.windchill.uwgm.soap.uwgmdb.Content.Iterator it, boolean isPrimary)
           
private  Map setContentOids()
           
private  void setDependencyObjIds(ProENDDocument ndDoc, CacheDocument cacheDoc)
           
private  void setFamilyInstanceObjIds(com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration epmIt, CacheDocument cacheDoc, Map localIdMapForFamInst)
           
private  void setTargetFolders(EPMWorkspace epmWorkspace, Map uploadInstructions)
           
 void validateRequest()
          validates request data
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.ProeServiceRequest
addContainer, addContent, addEPMDocument, addEPMDocumentMaster, addEPMWorkspace, addEPMWorkspace, addFakeFolder, addFolder, addLink, addLink, addPreferedContentURLs, addWTPart, addWTPartMaster, bindContent, bindFoldered, createDbObjIterator, getContext, getLocalizedName, getUwgmRequest, ignoreOriginalState, reportFailure, reportInfoMessage, reportInfoMessage, reportMessage, reportMessages, reportWarnings, resetCurrentEpmWS, setRequestCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

epmUpload

private com.ptc.windchill.uwgm.soap.uwgmsvc.EpmUpload epmUpload

requestCache

protected final EpmUploadRequestCache requestCache

resultCache

private RequestResultCache resultCache

m_ccData

private Vector m_ccData

oidHelper

private static final ObjectIdentifierHelper oidHelper

modificator

private com.ptc.windchill.uwgm.soap.uwgmdb.DbObj.Modificator modificator

errorElements

private Collection errorElements

log

private static Log log
logging

Constructor Detail

EpmUploadRequest

public EpmUploadRequest(com.ptc.windchill.uwgm.soap.uwgmsvc.EpmUpload upload,
                        RequestResultCache resCache)
Method Detail

validateRequest

public void validateRequest()
                     throws RequestValidationException,
                            UwgmErrorException
Description copied from class: ProeServiceRequest
validates request data

Specified by:
validateRequest in class ProeServiceRequest
Throws:
RequestValidationException - to report validation problems
UwgmErrorException - to report errors

executeRequest

public com.ptc.windchill.uwgm.soap.uwgm.UwgmMessage executeRequest()
                                                            throws UwgmConflictException,
                                                                   UwgmErrorException
Description copied from class: ProeServiceRequest
executes request

reports success UwgmMessage

Specified by:
executeRequest in class ProeServiceRequest
Returns:
UwgmMessage
Throws:
UwgmErrorException - to report errors
UwgmConflictException - to report execution conflicts

setContentOids

private Map setContentOids()

registerContent

private void registerContent(String cadName,
                             com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration epmIt,
                             com.ptc.windchill.uwgm.soap.uwgmdb.Content.Iterator it,
                             boolean isPrimary)

setFamilyInstanceObjIds

private void setFamilyInstanceObjIds(com.ptc.windchill.uwgm.soap.uwgmdb.EpmIteration epmIt,
                                     CacheDocument cacheDoc,
                                     Map localIdMapForFamInst)
                              throws Exception
Throws:
Exception

setDependencyObjIds

private void setDependencyObjIds(ProENDDocument ndDoc,
                                 CacheDocument cacheDoc)
                          throws UwgmErrorException
Throws:
UwgmErrorException

setTargetFolders

private void setTargetFolders(EPMWorkspace epmWorkspace,
                              Map uploadInstructions)
                       throws UwgmConflictException,
                              UwgmErrorException
Throws:
UwgmConflictException
UwgmErrorException

addNewEPMDocuments

private Map addNewEPMDocuments(Map m_neutralDocs,
                               EPMCacheInterface m_cache)
                        throws UwgmErrorException
Throws:
UwgmErrorException