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

java.lang.Object
  extended bycom.ptc.windchill.uwgm.proesrv.cache.ProeServiceRequestCache
      extended bycom.ptc.windchill.uwgm.proesrv.cache.AbstractWorkspaceRequestCache
          extended bycom.ptc.windchill.uwgm.proesrv.cache.EpmUploadRequestCache
All Implemented Interfaces:
UploadInstructionCache, WorkspaceRequestCache

public class EpmUploadRequestCache
extends AbstractWorkspaceRequestCache
implements UploadInstructionCache

RequestCache for EpmUpload UWGM request


Nested Class Summary
private  class EpmUploadRequestCache.IterationDataVisitor
          Container and Organization collector.
 
Field Summary
protected  WTKeyedMap containerMap
          Map to store WTContainer(key)<->UwgmContainer(value) association it assumes that there is only one UwgmContainer object per WTContainer OID in the IterationRequest
protected  Collection epmIterations
          Collection for valid iterations [Uwgm FolderedIteration]
private static Log log
          logging
private  ObjectIdentifierHelper oidHelper
           
protected  Map organizationMap
          Map to store WTOrganization(key)<->UwgmOrganization(value) association it assumes that there is only one UwgmOrganization object per WTOrganization OID in the IterationRequest
private  Map uploadInstructionMap
          UploadInstruction Map [Uwgm FolderedIteration, wt.folder.Folder]
protected  List uwgmMessages
          UwgmMessage storage
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.cache.AbstractWorkspaceRequestCache
workspaceAdapter
 
Fields inherited from class com.ptc.windchill.uwgm.proesrv.cache.ProeServiceRequestCache
context, infoElements, uwgmRequest
 
Constructor Summary
EpmUploadRequestCache(ProeServiceRequest uploadRequest)
           
 
Method Summary
private  void assignOrganizations(Map map)
           
private  void assignPersistables(WTKeyedMap map)
           
 Collection getEpmIterations()
          returns a Collection of valid EpmIterations
 Map getUploadInstructions()
          Returns Map [UwgmIteration, Folder]
 void reportMessage(InfoElement message)
          adds Warning/Info InfoElement
 void validate()
          validates and inflates Iterations from UploadRequest
private  void validateUploadInstructions(com.ptc.windchill.uwgm.soap.uwgmsvc.EpmUpload uploadRequest)
          validates UploadInstruction
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.cache.AbstractWorkspaceRequestCache
getEpmWorkspace, setWorkspaceAdapter
 
Methods inherited from class com.ptc.windchill.uwgm.proesrv.cache.ProeServiceRequestCache
addWarning, getMessages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

containerMap

protected WTKeyedMap containerMap
Map to store WTContainer(key)<->UwgmContainer(value) association it assumes that there is only one UwgmContainer object per WTContainer OID in the IterationRequest


organizationMap

protected Map organizationMap
Map to store WTOrganization(key)<->UwgmOrganization(value) association it assumes that there is only one UwgmOrganization object per WTOrganization OID in the IterationRequest


uwgmMessages

protected List uwgmMessages
UwgmMessage storage


uploadInstructionMap

private Map uploadInstructionMap
UploadInstruction Map [Uwgm FolderedIteration, wt.folder.Folder]


epmIterations

protected Collection epmIterations
Collection for valid iterations [Uwgm FolderedIteration]


oidHelper

private final ObjectIdentifierHelper oidHelper

log

private static Log log
logging

Constructor Detail

EpmUploadRequestCache

public EpmUploadRequestCache(ProeServiceRequest uploadRequest)
Method Detail

validate

public void validate()
              throws RequestValidationException,
                     UwgmErrorException
validates and inflates Iterations from UploadRequest

Overrides:
validate in class AbstractWorkspaceRequestCache
Throws:
RequestValidationException
UwgmErrorException

getEpmIterations

public Collection getEpmIterations()
returns a Collection of valid EpmIterations


getUploadInstructions

public Map getUploadInstructions()
Description copied from interface: UploadInstructionCache
Returns Map [UwgmIteration, Folder]

Specified by:
getUploadInstructions in interface UploadInstructionCache
Returns:
Map

assignPersistables

private void assignPersistables(WTKeyedMap map)

assignOrganizations

private void assignOrganizations(Map map)

validateUploadInstructions

private void validateUploadInstructions(com.ptc.windchill.uwgm.soap.uwgmsvc.EpmUpload uploadRequest)
                                 throws RequestValidationException,
                                        UwgmErrorException
validates UploadInstruction

Parameters:
uploadRequest - EpmUpload
Throws:
RequestValidationException
UwgmErrorException

reportMessage

public void reportMessage(InfoElement message)
Description copied from class: ProeServiceRequestCache
adds Warning/Info InfoElement

Overrides:
reportMessage in class ProeServiceRequestCache