wt.doc
Class CreateDocumentDelegate

java.lang.Object
  extended bywt.doc.CreateDocumentDelegate
All Implemented Interfaces:
FormActionDelegate

public class CreateDocumentDelegate
extends Object
implements FormActionDelegate


Field Summary
private  Object actionObject
           
private static boolean DEBUG
           
private  Locale locale
           
private static ResourceBundle messagesResource
           
private static String RESOURCE
           
 
Fields inherited from interface wt.enterprise.FormActionDelegate
ACTION_OBJECT
 
Constructor Summary
CreateDocumentDelegate()
           
 
Method Summary
private static WTDocument createDoc(Folder loc, String type, String name, String number, String title, String desc, String dept, String lifeCycle, String teamTemplate)
           
 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

messagesResource

private static ResourceBundle messagesResource

actionObject

private Object actionObject

locale

private Locale locale

DEBUG

private static boolean DEBUG
Constructor Detail

CreateDocumentDelegate

public CreateDocumentDelegate()
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

createDoc

private static WTDocument createDoc(Folder loc,
                                    String type,
                                    String name,
                                    String number,
                                    String title,
                                    String desc,
                                    String dept,
                                    String lifeCycle,
                                    String teamTemplate)
                             throws WTException,
                                    WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException