com.ptc.windchill.cadx.createws
Class CreateWSFormTaskDelegate

java.lang.Object
  extended bywt.templateutil.processor.FormTaskDelegate
      extended bycom.ptc.windchill.cadx.createws.CreateWSFormTaskDelegate
All Implemented Interfaces:
ContextHolder

public class CreateWSFormTaskDelegate
extends FormTaskDelegate



Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static boolean debug
           
static String DEFAULT_DOC_LIFE_CYCLE
           
static String DEFAULT_PART_LIFE_CYCLE
           
static String DEFAULT_PART_VIEW
           
static String DEFAULT_TEAM
           
private  Folder docFolder
           
private  LifeCycleTemplateMaster docLifeCycle
           
private static String ENTERPRISE_RESOURCE
           
private  String isPDMLink
          HTML log error/info/warning code: last used WS0000014
private  Folder partFolder
           
private  LifeCycleTemplateMaster partLifeCycle
           
private  String productName
           
private static String RESOURCE
           
private  TeamTemplate teamTemplate
           
private static boolean VERBOSE
           
private  View view
           
private  EPMWorkspace workspace
           
 
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
CreateWSFormTaskDelegate()
           
 
Method Summary
 boolean activateWorkspace()
          This is default implementation of activateWorkspace ().
 SubFolder checkSubFolder(String wsName)
          This method provides default implementation of checkSubFolder ().
private  String getAdditionalValidCharacters()
           
private  WTContainer getAndValidateContainer(Properties formData)
          Get WTContainer object from the specified container name parameter.
private  Folder getDefaultFolderForWCObject(String containerRuleBasedFolder, WTContainer container)
           
private  String getFormDataValue(String formDataName)
          Get the value from the form data for the specified form data name
private  boolean isPartCentricProcessing()
          Check if PartCentricProcessing is configured in the user preferences.
 void processAction(ContentHTTPStream contentStream)
          Deprecated.  
 void setWorkspaceConfigDefaults(Folder subFolder)
          Get some of the default values from the cadxhtmlui.ini file for this workspace.
private  void showContainerBasedDefaultValuesForCADDoc(WTContainer wsContainer)
          Show user, as informational message, the potential container based default values for the CAD Document business objects.
private  void showContainerBasedDefaultValuesForPart(WTContainer wsContainer)
          Show user, as informational message, the potential container based default values for the WTPart business objects.
protected  boolean workspaceAlreadyExists(String ws_name, String owner)
          

Supported API: false
protected  boolean workspaceAlreadyExists(String ws_name, WTPrincipal principal)
           
 
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

debug

private static boolean debug

view

private View view

workspace

private EPMWorkspace workspace

teamTemplate

private TeamTemplate teamTemplate

docLifeCycle

private LifeCycleTemplateMaster docLifeCycle

partLifeCycle

private LifeCycleTemplateMaster partLifeCycle

docFolder

private Folder docFolder

partFolder

private Folder partFolder

isPDMLink

private String isPDMLink
HTML log error/info/warning code: last used WS0000014


productName

private String productName

DEFAULT_TEAM

public static final String DEFAULT_TEAM
See Also:
Constant Field Values

DEFAULT_DOC_LIFE_CYCLE

public static final String DEFAULT_DOC_LIFE_CYCLE
See Also:
Constant Field Values

DEFAULT_PART_LIFE_CYCLE

public static final String DEFAULT_PART_LIFE_CYCLE
See Also:
Constant Field Values

DEFAULT_PART_VIEW

public static final String DEFAULT_PART_VIEW
See Also:
Constant Field Values

ENTERPRISE_RESOURCE

private static final String ENTERPRISE_RESOURCE
See Also:
Constant Field Values

VERBOSE

private static boolean VERBOSE
Constructor Detail

CreateWSFormTaskDelegate

public CreateWSFormTaskDelegate()
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: false

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

activateWorkspace

public boolean activateWorkspace()
This is default implementation of activateWorkspace (). If required, client applications should override this method. Return value is not processed at this point of time. But, can be handled as desired.

Supported API: false

Returns:
boolean

setWorkspaceConfigDefaults

public void setWorkspaceConfigDefaults(Folder subFolder)
Get some of the default values from the cadxhtmlui.ini file for this workspace. These are some of the values which are not yet available from the container based rules. As per the Interoperability Operations document, the new object is subject to the numbering scheme, versioning scheme, lifecycle/team/domain assignments and other rules that have been established by the destination container. Hence most of the default values will be available from the container itself and so these value need not be explicitly set to the workspace.

Supported API: false

Parameters:
subFolder -

workspaceAlreadyExists

protected boolean workspaceAlreadyExists(String ws_name,
                                         String owner)
                                  throws WTException


Supported API: false

Parameters:
ws_name -
owner -
Returns:
boolean
Throws:
WTException

checkSubFolder

public SubFolder checkSubFolder(String wsName)
This method provides default implementation of checkSubFolder (). If required, client applications should override this method.

Supported API: false

Parameters:
wsName -
Returns:
SubFolder

getDefaultFolderForWCObject

private Folder getDefaultFolderForWCObject(String containerRuleBasedFolder,
                                           WTContainer container)
                                    throws WTException
Throws:
WTException

getAdditionalValidCharacters

private String getAdditionalValidCharacters()

getAndValidateContainer

private WTContainer getAndValidateContainer(Properties formData)
Get WTContainer object from the specified container name parameter.


showContainerBasedDefaultValuesForCADDoc

private void showContainerBasedDefaultValuesForCADDoc(WTContainer wsContainer)
Show user, as informational message, the potential container based default values for the CAD Document business objects. This way, user will know, before hand, as what the default values are going to be.


showContainerBasedDefaultValuesForPart

private void showContainerBasedDefaultValuesForPart(WTContainer wsContainer)
Show user, as informational message, the potential container based default values for the WTPart business objects. This way, user will know, before hand, as what the default values are going to be.


getFormDataValue

private String getFormDataValue(String formDataName)
Get the value from the form data for the specified form data name


isPartCentricProcessing

private boolean isPartCentricProcessing()
Check if PartCentricProcessing is configured in the user preferences. If no value is configured, default is false.


workspaceAlreadyExists

protected boolean workspaceAlreadyExists(String ws_name,
                                         WTPrincipal principal)
                                  throws WTException
Throws:
WTException