com.sri.emo.controller
Class EmoAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.jcorporate.expresso.core.controller.Controller
          extended by com.jcorporate.expresso.core.controller.DBController
              extended by com.sri.common.controller.AbstractDBController
                  extended by com.sri.emo.controller.EmoAction
All Implemented Interfaces:
IFooterStateHandler, IHeaderStateHandler, Serializable
Direct Known Subclasses:
SelectionWizardManager, WizardStepController

public class EmoAction
extends AbstractDBController
implements IFooterStateHandler, IHeaderStateHandler

Common methods (header, footer) which are typically called via a strategy pattern.

Author:
Larry Hamel
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sri.common.controller.AbstractDBController
COLUMN, COMMON_FOOTER_HANDLER, COMMON_HEADER_HANDLER, DELIMIT, EDIT_GROUP_DISPLAY, EMBEDDED_MODE, FOOTER, MAX_CHARS_OUTPUT, MAX_TEXTAREA_LENGTH, MULTIPLE_TEXTAREA_NUM_LINES, REQUEST_CONTAINER, ROW, ROW_BLOCK, SESSION_CONTAINER, SINGLE_TEXTAREA_NUM_LINES, TEXTAREA_NUM_COLS, WARNING_LIST
 
Fields inherited from class com.jcorporate.expresso.core.controller.DBController
CACHE_NAME
 
Fields inherited from class com.jcorporate.expresso.core.controller.Controller
CONTROLLER_PARAM_KEY, CTL_SUCC_CTL, CTL_SUCC_STATE, CTL_SUCC_TRAN, mLog, NEWSTATE_EXCEPTION_KEY, ORIGINAL_URL_KEY, REQUEST_KEY, RESPONSE_KEY, RETURN_TO_SENDER_TRAN, STATE_ERR_CTL, STATE_ERR_STATE, STATE_ERR_TRAN, STATE_PARAM_KEY, STATE_SUCC_CTL, STATE_SUCC_STATE, STATE_SUCC_TRAN
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
EmoAction()
           
 
Method Summary
protected  void addFooter(ControllerRequest request, ControllerResponse response)
          // footer contains links to real and 'fake' entities
protected  void addHeader(ControllerRequest request, ControllerResponse response)
           
 String getTitle()
          Return the title of this Controller
 void runFooterState(ControllerRequest request, ControllerResponse response)
          footer will be executed here.
 void runHeaderState(ControllerRequest request, ControllerResponse response)
          a special state call will execute this state
 
Methods inherited from class com.sri.common.controller.AbstractDBController
addEmbeddedParameter, addWarning, addWarningList, getActionForwarding, getCheckbox, getPermsTrans, getPrettyXML, getTextArea, getTextArea, getWarningList, isEmbeddedMode, isValidAndPopulated, outputXML, populateDBObject, postPerform, prePerform, stateAllowed, str, strTrunc, trimAllTextFields
 
Methods inherited from class com.jcorporate.expresso.core.controller.DBController
getString, isAllowed
 
Methods inherited from class com.jcorporate.expresso.core.controller.Controller
addFinalState, addPromptTransitions, addRegDomainParamtoSession, addRequestedURLtoSession, addState, addStatePairing, endTimer, execute, findControllerForm, generateToken, getActionForward, getControllerChainingTransition, getControllerSecurityTransition, getFinalState, getInitialState, getLogger, getParamValues, getRequestURL, getSchema, getSchemaHierarchy, getSchemaInstance, getSchemaStack, getState, getStates, getString, getString, handleException, instantiate, isFinalState, isHandleState, isPromptState, isTokenValid, loadStateForm, newExpressoState, newState, nextHandleState, nextPromptState, populateStateForm, postPerform, prePerform, previousPromptState, processRequestTransitions, processTransitions, redirectRequest, redirectRequest, remapFromExtension, resetToken, saveToken, setControllerChainingTransition, setControllerSecurityTransition, setCurrentState, setInitialState, setSchema, setSchema, setupDefaultValues, setupReturnToSender, setupSubclassLog, transition, transition, transition, unloadStateForm
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmoAction

public EmoAction()
Method Detail

getTitle

public String getTitle()
Return the title of this Controller

Overrides:
getTitle in class Controller
Returns:
java.lang.String The Title of the controller

runFooterState

public void runFooterState(ControllerRequest request,
                           ControllerResponse response)
                    throws ControllerException
footer will be executed here.

Specified by:
runFooterState in interface IFooterStateHandler
Parameters:
request - the ControllerRequest object
response - the ControllerResponse object
Throws:
ControllerException - upon error

addFooter

protected void addFooter(ControllerRequest request,
                         ControllerResponse response)
                  throws ControllerException,
                         DBException
// footer contains links to real and 'fake' entities

Throws:
ControllerException
DBException

addHeader

protected void addHeader(ControllerRequest request,
                         ControllerResponse response)
                  throws DBException,
                         ControllerException
Throws:
DBException
ControllerException

runHeaderState

public void runHeaderState(ControllerRequest request,
                           ControllerResponse response)
                    throws ControllerException
a special state call will execute this state

Specified by:
runHeaderState in interface IHeaderStateHandler
Parameters:
request - the ControllerRequest object
response - the ControllerResponse object
Throws:
ControllerException - upon error


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.