com.sri.emo.controller
Class PicklistAction

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.PicklistAction
All Implemented Interfaces:
Serializable

public class PicklistAction
extends AbstractDBController

handle Picklist manipulation

Author:
larry hamel
See Also:
Serialized Form

Field Summary
static String ASSOCIATE_PREFIX
           
static String DO_ADD_ITEM
           
static String DO_DEC_ITEM_ORDER
           
static String DO_DELETE_ITEM
           
static String DO_EDIT_ITEM
          Constant value for state 'Save Picklist Item'
static String DO_INC_ITEM_ORDER
           
static String EXISTING_ITEM_PREFIX
           
static String LIST_PICKLISTS
          Constant value for state 'List All Picklists'
static String NEW_ITEM_PREFIX
           
static String PROMPT_ADD_ITEM
           
static String PROMPT_DELETE_ITEM
           
static String PROMPT_EDIT_ITEM
           
static String PROMPT_LIST
          edit picklist state
static String SORT_BY_ALPHA
           
 
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
PicklistAction()
           
 
Method Summary
 String getTitle()
          Returns the title of this controller
protected  void runDoAddItemState(ExpressoRequest request, ExpressoResponse response)
          Do to add pick item.
protected  void runDoDecItemOrderState(ExpressoRequest request, ExpressoResponse response)
          Decrement pick item order number.
protected  void runDoDeleteItemState(ExpressoRequest request, ExpressoResponse response)
          Delete single pick item.
protected  void runDoEditItemState(ExpressoRequest request, ExpressoResponse response)
          Do for editing single pick item.
protected  void runDoIncItemOrderState(ExpressoRequest request, ExpressoResponse response)
          Increment pick item order number.
protected  void runPromptAddItemState(ExpressoRequest request, ExpressoResponse response)
          Prompt to add pick item.
protected  void runPromptDeleteItemState(ExpressoRequest request, ExpressoResponse response)
          Prompt for deleting single pick item.
protected  void runPromptEditItemState(ExpressoRequest request, ExpressoResponse response)
          Prompt for editing single pick item.
protected  void runPromptEditPicklistState(ExpressoRequest request, ExpressoResponse response)
          Prompt for edits.
protected  void runSortByAlphaState(ExpressoRequest request, ExpressoResponse response)
          Sort by alpha of display name of items.
 
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
 

Field Detail

PROMPT_LIST

public static final String PROMPT_LIST
edit picklist state

See Also:
Constant Field Values

PROMPT_EDIT_ITEM

public static final String PROMPT_EDIT_ITEM
See Also:
Constant Field Values

DO_EDIT_ITEM

public static final String DO_EDIT_ITEM
Constant value for state 'Save Picklist Item'

See Also:
Constant Field Values

DO_INC_ITEM_ORDER

public static final String DO_INC_ITEM_ORDER
See Also:
Constant Field Values

DO_DEC_ITEM_ORDER

public static final String DO_DEC_ITEM_ORDER
See Also:
Constant Field Values

PROMPT_ADD_ITEM

public static final String PROMPT_ADD_ITEM
See Also:
Constant Field Values

DO_ADD_ITEM

public static final String DO_ADD_ITEM
See Also:
Constant Field Values

SORT_BY_ALPHA

public static final String SORT_BY_ALPHA
See Also:
Constant Field Values

PROMPT_DELETE_ITEM

public static final String PROMPT_DELETE_ITEM
See Also:
Constant Field Values

DO_DELETE_ITEM

public static final String DO_DELETE_ITEM
See Also:
Constant Field Values

LIST_PICKLISTS

public static final String LIST_PICKLISTS
Constant value for state 'List All Picklists'

See Also:
Constant Field Values

NEW_ITEM_PREFIX

public static final String NEW_ITEM_PREFIX
See Also:
Constant Field Values

EXISTING_ITEM_PREFIX

public static final String EXISTING_ITEM_PREFIX
See Also:
Constant Field Values

ASSOCIATE_PREFIX

public static final String ASSOCIATE_PREFIX
See Also:
Constant Field Values
Constructor Detail

PicklistAction

public PicklistAction()
Method Detail

getTitle

public String getTitle()
Returns the title of this controller

Overrides:
getTitle in class Controller
Returns:
java.lang.String

runPromptEditPicklistState

protected void runPromptEditPicklistState(ExpressoRequest request,
                                          ExpressoResponse response)
                                   throws ControllerException
Prompt for edits.

Parameters:
request - The ExpressoRequest object.
response - The ExpressoResponse object.
Throws:
ControllerException - upon error.

runPromptEditItemState

protected void runPromptEditItemState(ExpressoRequest request,
                                      ExpressoResponse response)
                               throws ControllerException
Prompt for editing single pick item.

Parameters:
request - The ExpressoRequest object.
response - The ExpressoResponse object.
Throws:
ControllerException - upon error.

runDoEditItemState

protected void runDoEditItemState(ExpressoRequest request,
                                  ExpressoResponse response)
                           throws ControllerException
Do for editing single pick item.

Parameters:
request - The ExpressoRequest object.
response - The ExpressoResponse object.
Throws:
ControllerException - upon error.

runPromptDeleteItemState

protected void runPromptDeleteItemState(ExpressoRequest request,
                                        ExpressoResponse response)
                                 throws ControllerException
Prompt for deleting single pick item.

Parameters:
request - The ExpressoRequest object.
response - The ExpressoResponse object.
Throws:
ControllerException - upon error.

runDoDeleteItemState

protected void runDoDeleteItemState(ExpressoRequest request,
                                    ExpressoResponse response)
                             throws ControllerException
Delete single pick item.

Parameters:
request - The ExpressoRequest object.
response - The ExpressoResponse object.
Throws:
ControllerException - upon error.

runDoIncItemOrderState

protected void runDoIncItemOrderState(ExpressoRequest request,
                                      ExpressoResponse response)
                               throws ControllerException
Increment pick item order number.

Parameters:
request - The ExpressoRequest object.
response - The ExpressoResponse object.
Throws:
ControllerException - upon error.

runDoDecItemOrderState

protected void runDoDecItemOrderState(ExpressoRequest request,
                                      ExpressoResponse response)
                               throws ControllerException
Decrement pick item order number.

Parameters:
request - The ExpressoRequest object.
response - The ExpressoResponse object.
Throws:
ControllerException - upon error.

runPromptAddItemState

protected void runPromptAddItemState(ExpressoRequest request,
                                     ExpressoResponse response)
                              throws ControllerException
Prompt to add pick item.

Parameters:
request - The ExpressoRequest object.
response - The ExpressoResponse object.
Throws:
ControllerException - upon error.

runDoAddItemState

protected void runDoAddItemState(ExpressoRequest request,
                                 ExpressoResponse response)
                          throws ControllerException
Do to add pick item.

Parameters:
request - The ExpressoRequest object.
response - The ExpressoResponse object.
Throws:
ControllerException - upon error.

runSortByAlphaState

protected void runSortByAlphaState(ExpressoRequest request,
                                   ExpressoResponse response)
                            throws ControllerException
Sort by alpha of display name of items.

Parameters:
request - The ExpressoRequest object.
response - The ExpressoResponse object.
Throws:
ControllerException - upon error.


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