com.ptc.windchill.cadx.wsoption
Class GenWsprefFormTaskDelegate

java.lang.Object
  extended bywt.templateutil.processor.FormTaskDelegate
      extended bycom.ptc.windchill.cadx.wsoption.GenWsprefFormTaskDelegate
All Implemented Interfaces:
ContextHolder, Serializable

public class GenWsprefFormTaskDelegate
extends FormTaskDelegate
implements Serializable



Supported API: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static ResourceBundle create_ws_resource
           
private static String CREATE_WS_RESOURCE
           
(package private)  boolean invalidEntry
           
(package private)  boolean multipleInvalidEntries
           
private static ResourceBundle resource
           
private static String RESOURCE
           
private static boolean VERBOSE
           
 
Fields inherited from class wt.templateutil.processor.FormTaskDelegate
 
Fields inherited from interface wt.templateutil.processor.ContextHolder
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS
 
Constructor Summary
GenWsprefFormTaskDelegate()
           
 
Method Summary
private  Properties createInterTabParameters(WsConfigSpecEditUtilities wsConfigSpecEditUtilities, boolean invokedFromCheckoutDownloadPage)
           
private  WTContainer getValidContainer(String containerName)
          For the specified container name, get the container object
private  LifeCycleTemplateMaster getValidLifeCycleTemplate(String lifeCycleStr, WTContainer container, boolean part)
           
private  Folder getValidTargetFolder(String folderDisplayLocation, boolean part, WTContainer container)
          For the specified folder location, get the Folder object from the specified container.
private  TeamTemplate getValidTeamTemplate(String teamStr, WTContainer container)
           
private  View getValidView(String viewStr)
           
private  boolean isContainerChanged(WTContainer newContainer, WTContainer currentContainer)
          Check if the container has been changed by the user
 void processAction(ContentHTTPStream contentStream)
          Deprecated.  
private  WTContainer validateAndSetContainer(String containerName, EPMWorkspace workspace)
          For the specified container name, validate and set the container context property for the workspace.
private  void validateAndSetDependencyType(String dependencyTypestr, EPMWorkspace workspace)
           
private  LifeCycleTemplateMaster validateAndSetDocLifeCycleTemplate(String docLifeCyclestr, WTContainer container, EPMWorkspace workspace)
          Validate the specified doc life cycle string and set this for the workspace.
private  Folder validateAndSetDocTargetFolder(String docTargetFolder, EPMWorkspace workspace, WTContainer container)
          For the spacified string form doc target folder, validate it.
private  LifeCycleTemplateMaster validateAndSetPartLifeCycleTemplate(String partLifeCyclestr, WTContainer container, EPMWorkspace workspace)
          Validate the specified part life cycle string and set this for the workspace.
private  Folder validateAndSetPartTargetFolder(String partTargetFolder, EPMWorkspace workspace, WTContainer container)
          For the spacified string form part target folder, validate it.
private  TeamTemplate validateAndSetTeamTemplate(String teamstr, EPMWorkspace workspace)
          Validate the specified team and set it to the workspace
private  View validateAndSetView(String partViewstr, EPMWorkspace workspace, WTContainer container)
          For the spacified string form part view, validate it.
 
Methods inherited from class wt.templateutil.processor.FormTaskDelegate
addToResponseExceptions, addToResponseFooters, addToResponseHeaders, addToResponseMessages, deleteFormDataFromSession, getContextAction, getContextClassName, getContextObj, getContextProperties, getFormData, getQueryData, getResponseExceptions, getResponseFooters, getResponseHeaders, getResponseMessages, getResponseString, getState, getStatus, saveFormDataInSession, setContextAction, setContextClassName, setContextObj, setContextProperties, setFormData, setQueryData, setResponseExceptions, setResponseFooters, setResponseHeaders, setResponseMessages, setResponseString, setState, setStatus, switchPages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

invalidEntry

boolean invalidEntry

multipleInvalidEntries

boolean multipleInvalidEntries

CREATE_WS_RESOURCE

private static final String CREATE_WS_RESOURCE
See Also:
Constant Field Values

VERBOSE

private static boolean VERBOSE

resource

private static ResourceBundle resource

create_ws_resource

private static ResourceBundle create_ws_resource
Constructor Detail

GenWsprefFormTaskDelegate

public GenWsprefFormTaskDelegate()
Method Detail

processAction

public void processAction(ContentHTTPStream contentStream)
                   throws Exception
Deprecated.  

Processed the desired action and then updates the state so that the desired response page can be generated.

Use the addToResponse methods to pass back messages on the status/results of the action.

Supported API: true

Specified by:
processAction in class FormTaskDelegate
Parameters:
contentStream -
Throws:
Exception

createInterTabParameters

private Properties createInterTabParameters(WsConfigSpecEditUtilities wsConfigSpecEditUtilities,
                                            boolean invokedFromCheckoutDownloadPage)

validateAndSetTeamTemplate

private TeamTemplate validateAndSetTeamTemplate(String teamstr,
                                                EPMWorkspace workspace)
                                         throws Exception
Validate the specified team and set it to the workspace

Throws:
Exception

getValidTeamTemplate

private TeamTemplate getValidTeamTemplate(String teamStr,
                                          WTContainer container)

validateAndSetPartLifeCycleTemplate

private LifeCycleTemplateMaster validateAndSetPartLifeCycleTemplate(String partLifeCyclestr,
                                                                    WTContainer container,
                                                                    EPMWorkspace workspace)
                                                             throws WTException,
                                                                    WTPropertyVetoException
Validate the specified part life cycle string and set this for the workspace. If value is same as the one based upon container, then it's set to null for the workspace.

Throws:
WTException
WTPropertyVetoException

validateAndSetDocLifeCycleTemplate

private LifeCycleTemplateMaster validateAndSetDocLifeCycleTemplate(String docLifeCyclestr,
                                                                   WTContainer container,
                                                                   EPMWorkspace workspace)
                                                            throws WTException,
                                                                   WTPropertyVetoException
Validate the specified doc life cycle string and set this for the workspace. If value is same as the one based upon container, then it's set to null for the workspace.

Throws:
WTException
WTPropertyVetoException

getValidLifeCycleTemplate

private LifeCycleTemplateMaster getValidLifeCycleTemplate(String lifeCycleStr,
                                                          WTContainer container,
                                                          boolean part)

validateAndSetPartTargetFolder

private Folder validateAndSetPartTargetFolder(String partTargetFolder,
                                              EPMWorkspace workspace,
                                              WTContainer container)
                                       throws WTException,
                                              WTPropertyVetoException
For the spacified string form part target folder, validate it. Set it to the workdspace if it's different from the container rule based value.

Throws:
WTException
WTPropertyVetoException

validateAndSetDocTargetFolder

private Folder validateAndSetDocTargetFolder(String docTargetFolder,
                                             EPMWorkspace workspace,
                                             WTContainer container)
                                      throws WTException,
                                             WTPropertyVetoException
For the spacified string form doc target folder, validate it. Set it to the workdspace if it's different from the container rule based value.

Throws:
WTException
WTPropertyVetoException

getValidTargetFolder

private Folder getValidTargetFolder(String folderDisplayLocation,
                                    boolean part,
                                    WTContainer container)
For the specified folder location, get the Folder object from the specified container.

Parameters:
folderDisplayLocation - Folder location. Note that folder location is having container name as part of the location path.

validateAndSetView

private View validateAndSetView(String partViewstr,
                                EPMWorkspace workspace,
                                WTContainer container)
                         throws WTException,
                                WTPropertyVetoException
For the spacified string form part view, validate it. Set it to the workdspace if it's different from the container rule based value.

Throws:
WTException
WTPropertyVetoException

getValidView

private View getValidView(String viewStr)

validateAndSetDependencyType

private void validateAndSetDependencyType(String dependencyTypestr,
                                          EPMWorkspace workspace)

validateAndSetContainer

private WTContainer validateAndSetContainer(String containerName,
                                            EPMWorkspace workspace)
                                     throws WTException
For the specified container name, validate and set the container context property for the workspace.

Throws:
WTException

getValidContainer

private WTContainer getValidContainer(String containerName)
For the specified container name, get the container object


isContainerChanged

private boolean isContainerChanged(WTContainer newContainer,
                                   WTContainer currentContainer)
Check if the container has been changed by the user