com.ptc.windchill.uwgm.cadx.checkout
Class AddToWsUwgmRequestAdapter

java.lang.Object
  extended bycom.ptc.windchill.uwgm.cadx.request.AbstractUwgmRequestAdapter
      extended bycom.ptc.windchill.uwgm.cadx.request.AbstractWithWorkspaceRequestAdapter
          extended bycom.ptc.windchill.uwgm.cadx.checkout.AddToWsUwgmRequestAdapter
All Implemented Interfaces:
UwgmRequestAdapter
Direct Known Subclasses:
UpdateRequestAdapter

public class AddToWsUwgmRequestAdapter
extends AbstractWithWorkspaceRequestAdapter

AddToWsUwgmRequestAdapter is a CADX adapter class that adapts an HTML request to UwmgmRequest in order to checkout a collection of objects to a workspace.


Field Summary
private static Log log
          Logging
private static String requestID
          ID for the Form Request
 
Fields inherited from class com.ptc.windchill.uwgm.cadx.request.AbstractUwgmRequestAdapter
 
Constructor Summary
AddToWsUwgmRequestAdapter()
           
 
Method Summary
private  com.ptc.windchill.uwgm.soap.impl.uwgmsvc.AddToWorkspace_i appendIterationAndInsruction(Properties formData, com.ptc.windchill.uwgm.soap.impl.uwgmsvc.AddToWorkspace_i request)
          Creates Iterations, AddToWorkspaceInstructions and adds to AddToWorkspace Request
protected  com.ptc.windchill.uwgm.soap.impl.uwgm.Requests_i createCadxUwgmRequest(Properties formData, HTTPState state)
          Creates UwgmRequest from the Form Data
protected  com.ptc.windchill.uwgm.soap.impl.uwgm.Requests_i createCadxUwgmRequest(Properties formData, HTTPState state, String requestIdentifier, com.ptc.windchill.uwgm.soap.uwgmsvc.IncludeDependenciesOption depdencyOption)
          Creates UwgmRequest from the Form Data (This parameterized method is created because, same code is shared by 'update' action with different 'requestID' and dependencies option.)
private  com.ptc.windchill.uwgm.soap.uwgmsvc.IncludeDependenciesOption getIncludeDependenciesOption(Properties formData)
          Creates Uwgm IncludeDependenciesOptions from the Form Data This can again be refactored to intermediate parent of this class if found recurring usage - SKA Will request CADx Team to implement this method by extracting proper information from the formData (Question: Whether this is required at all, since the dependency options might already been prefetched on a dependency collector form;
 
Methods inherited from class com.ptc.windchill.uwgm.cadx.request.AbstractWithWorkspaceRequestAdapter
createUwgmWorkspace
 
Methods inherited from class com.ptc.windchill.uwgm.cadx.request.AbstractUwgmRequestAdapter
createCompositeRequests, debugKeyValuePair, process, setDependentRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestID

private static final String requestID
ID for the Form Request

See Also:
Constant Field Values

log

private static Log log
Logging

Constructor Detail

AddToWsUwgmRequestAdapter

public AddToWsUwgmRequestAdapter()
Method Detail

createCadxUwgmRequest

protected com.ptc.windchill.uwgm.soap.impl.uwgm.Requests_i createCadxUwgmRequest(Properties formData,
                                                                                 HTTPState state)
                                                                          throws WTException
Creates UwgmRequest from the Form Data

Specified by:
createCadxUwgmRequest in class AbstractWithWorkspaceRequestAdapter
Throws:
WTException

createCadxUwgmRequest

protected com.ptc.windchill.uwgm.soap.impl.uwgm.Requests_i createCadxUwgmRequest(Properties formData,
                                                                                 HTTPState state,
                                                                                 String requestIdentifier,
                                                                                 com.ptc.windchill.uwgm.soap.uwgmsvc.IncludeDependenciesOption depdencyOption)
                                                                          throws WTException
Creates UwgmRequest from the Form Data (This parameterized method is created because, same code is shared by 'update' action with different 'requestID' and dependencies option.)

Throws:
WTException

appendIterationAndInsruction

private com.ptc.windchill.uwgm.soap.impl.uwgmsvc.AddToWorkspace_i appendIterationAndInsruction(Properties formData,
                                                                                               com.ptc.windchill.uwgm.soap.impl.uwgmsvc.AddToWorkspace_i request)
                                                                                        throws WTException
Creates Iterations, AddToWorkspaceInstructions and adds to AddToWorkspace Request

Throws:
WTException

getIncludeDependenciesOption

private com.ptc.windchill.uwgm.soap.uwgmsvc.IncludeDependenciesOption getIncludeDependenciesOption(Properties formData)
Creates Uwgm IncludeDependenciesOptions from the Form Data This can again be refactored to intermediate parent of this class if found recurring usage - SKA Will request CADx Team to implement this method by extracting proper information from the formData (Question: Whether this is required at all, since the dependency options might already been prefetched on a dependency collector form;