wt.doc
Class WTDocumentFormTaskDelegate

java.lang.Object
  extended bywt.templateutil.processor.FormTaskDelegate
      extended bywt.doc.WTDocumentFormTaskDelegate
All Implemented Interfaces:
ContextHolder, Serializable

public class WTDocumentFormTaskDelegate
extends FormTaskDelegate
implements Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String CLIENT_RESOURCE
           
private static String CONTENT_RESOURCE
           
private  Locale locale
           
private static String RESOURCE
           
private static ReferenceFactory RF
           
protected 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
WTDocumentFormTaskDelegate()
           
 
Method Summary
private  void addMessagesToResponseHeader(String collectedMessages)
           
private  boolean checkLength(String fieldName, String fieldValue)
           
private  void doCheckIn(Properties fData)
           
private  void doCreate(Properties fData)
           
private  void doUpdate(Properties fData)
           
private  String getDocumentIdentity(FormatContentHolder document, Locale locale)
           
private  int getUpperLimit(String fieldName)
           
private static String[] parseIntoArray(String parseFrom, String delimiter, int arraySize)
           
private  void persistChecksum(Properties fData)
           
private  void postCreate(Properties fData)
           
private  void postUpdate(Properties fData)
           
private  void preCheckIn(Properties fData)
           
 void processAction(ContentHTTPStream contentStream)
          Deprecated.  
private  void processFeedback(Properties fData)
           
 String switchSlashes(String path)
           
private  boolean validateForm(Properties fData)
           
 
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

CLIENT_RESOURCE

private static final String CLIENT_RESOURCE
See Also:
Constant Field Values

CONTENT_RESOURCE

private static final String CONTENT_RESOURCE
See Also:
Constant Field Values

VERBOSE

protected static boolean VERBOSE

locale

private Locale locale

RF

private static final ReferenceFactory RF
Constructor Detail

WTDocumentFormTaskDelegate

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

doCreate

private void doCreate(Properties fData)
               throws WTException,
                      WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

postCreate

private void postCreate(Properties fData)
                 throws WTException,
                        WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

doUpdate

private void doUpdate(Properties fData)
               throws WTException,
                      WTPropertyVetoException,
                      PropertyVetoException
Throws:
WTException
WTPropertyVetoException
PropertyVetoException

postUpdate

private void postUpdate(Properties fData)
                 throws WTException,
                        WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

preCheckIn

private void preCheckIn(Properties fData)
                 throws WTException,
                        WTPropertyVetoException,
                        PropertyVetoException
Throws:
WTException
WTPropertyVetoException
PropertyVetoException

doCheckIn

private void doCheckIn(Properties fData)
                throws WTException,
                       WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

validateForm

private boolean validateForm(Properties fData)
                      throws WTException
Throws:
WTException

switchSlashes

public String switchSlashes(String path)

getDocumentIdentity

private String getDocumentIdentity(FormatContentHolder document,
                                   Locale locale)

addMessagesToResponseHeader

private void addMessagesToResponseHeader(String collectedMessages)

parseIntoArray

private static String[] parseIntoArray(String parseFrom,
                                       String delimiter,
                                       int arraySize)

persistChecksum

private void persistChecksum(Properties fData)

processFeedback

private void processFeedback(Properties fData)

getUpperLimit

private int getUpperLimit(String fieldName)

checkLength

private boolean checkLength(String fieldName,
                            String fieldValue)