com.ptc.windchill.enterprise.templates
Class DisableDelegate

java.lang.Object
  extended bycom.ptc.windchill.enterprise.templates.DisableDelegate
All Implemented Interfaces:
FormActionDelegate

public class DisableDelegate
extends Object
implements FormActionDelegate


Field Summary
private  Object actionObject
           
private static boolean DEBUG
           
private  String downloadOpType
           
private static String ENT_RESOURCE
           
private  Locale locale
           
private static ResourceBundle messagesResource
           
private static String RESOURCE
           
private static boolean STRUCTURE_DOWNLOAD
           
private  String workspacePath
           
 
Fields inherited from interface wt.enterprise.FormActionDelegate
ACTION_OBJECT
 
Constructor Summary
DisableDelegate()
           
 
Method Summary
 Object getActionObject()
          Gets the object for the association that plays role: ACTION_OBJECT.
 Properties processAction(Properties props, ContentHTTPStream contentStream, Locale locale)
          This method will process an action invoked from the FormProcessor.
 void setActionObject(Object a_ActionObject)
          Sets the object for the association that plays role: ACTION_OBJECT.
 
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

ENT_RESOURCE

private static final String ENT_RESOURCE
See Also:
Constant Field Values

locale

private Locale locale

messagesResource

private static ResourceBundle messagesResource

workspacePath

private String workspacePath

downloadOpType

private String downloadOpType

actionObject

private Object actionObject

DEBUG

private static boolean DEBUG

STRUCTURE_DOWNLOAD

private static boolean STRUCTURE_DOWNLOAD
Constructor Detail

DisableDelegate

public DisableDelegate()
Method Detail

getActionObject

public Object getActionObject()
Description copied from interface: FormActionDelegate
Gets the object for the association that plays role: ACTION_OBJECT.

Supported API: false

Specified by:
getActionObject in interface FormActionDelegate
Returns:
Object

setActionObject

public void setActionObject(Object a_ActionObject)
                     throws WTPropertyVetoException
Description copied from interface: FormActionDelegate
Sets the object for the association that plays role: ACTION_OBJECT.

Supported API: false

Specified by:
setActionObject in interface FormActionDelegate
Parameters:
a_ActionObject -
Throws:
WTPropertyVetoException

processAction

public Properties processAction(Properties props,
                                ContentHTTPStream contentStream,
                                Locale locale)
                         throws Exception
Description copied from interface: FormActionDelegate
This method will process an action invoked from the FormProcessor.

The Properties arguement will always contain name value pairs of those things based on the query string to the FormProcessor.

The contents of the Properties arguement is the based on the contents of the form when invoking the processForm method in the FormProcessor. It consists of the name value pairs up to the point of the beginning of content of the form. Then the rest of the form stream is placed in an instance of the ContentHttpStream class.

When invoking the invokeAction method in the FormProcessor class the ContentHttpStream arguement will always be null.

This method is intended to perform the action based on information pased. Any exception thrown will be displayed in the web browser to the user. It is best if the properties returned is a copy of the properties passed plus any



Supported API: false

Supported API: true

Specified by:
processAction in interface FormActionDelegate
Parameters:
props -
contentStream -
locale -
Returns:
Properties
Throws:
Exception
See Also:
FormProcessor, wt.content.ContentHttpStream