|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.Action
com.jcorporate.expresso.core.controller.Controller
com.jcorporate.expresso.core.controller.DBController
com.sri.common.controller.AbstractDBController
com.sri.emo.controller.EmoAction
com.sri.emo.controller.SelectionWizardManager
public class SelectionWizardManager
Provides CRUD capabilities for Wizard DBObjects. It is designed as a series of Transaction Scripts. See Patterns of Enterprise Application Architecture pattern list for more information.
A controller is a rough model of a finite state machine for a web application. Each state provides user interaction elements that can be rendered in a web page or other medium such as a command line app.
| Field Summary | |
|---|---|
static String |
STATE_DO_ADDWIZARD
Finishes the post to state. |
static String |
STATE_DO_DELETE
Constant for access to state: Delete Wizard. |
static String |
STATE_DO_EDIT
Finishes the edit to update state. |
static String |
STATE_PROMPT_ADDWIZARD
Constant for access to state: Add Wizard. |
static String |
STATE_PROMPT_EDIT
Constant for access to state: Edit Wizard. |
static String |
STATE_PUBLIC_LIST
synonym to serve old URLs |
static String |
STATE_RUNWIZARD
Constant for access to state: Run Wizard. |
| 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 | |
|---|---|
SelectionWizardManager()
Creates an instance of WizardManager. |
|
| Method Summary | |
|---|---|
void |
add(ExpressoRequest request,
ExpressoResponse response)
Begins an 'add' end-user transaction to create a new wizard. |
protected void |
buildDecisionMatrix(ControllerRequest request,
ControllerResponse response,
Block matrix,
WizDefinition currentWizard)
Builds the decision matrix for the current wizard. |
protected void |
buildWizardSteps(ControllerRequest request,
Block steps,
WizDefinition currentWizard)
Builds the steps for the current wizard. |
void |
edit(WizDefinition wizard,
ExpressoRequest request,
ExpressoResponse response)
Begins an 'edit' end-user transaction to edit an existing wizard. |
String |
getTitle()
Override of Controller.getTitle() to provide a meaningful name to this controller. |
void |
run(WizDefinition wizard,
ExpressoRequest request,
ExpressoResponse response)
Runs the wizard that the manager is associated with. |
protected void |
runDoAddState(ControllerRequest request,
ControllerResponse response)
Runs the Complete Add Wizard state. |
protected void |
runDoDeleteState(ControllerRequest request,
ControllerResponse response)
Runs the Delete Wizard state. |
protected void |
runDoEditState(ControllerRequest request,
ControllerResponse response)
Runs the complete update state. |
protected void |
runPromptAddWizardState(ControllerRequest request,
ControllerResponse response)
Runs the Add Wizard Prompt state. |
protected void |
runPromptDeleteState(ControllerRequest request,
ControllerResponse response)
Runs the Prompt Delete Wizard state. |
protected void |
runPromptEditState(ControllerRequest request,
ControllerResponse response)
Runs the Edit Wizard state. |
protected void |
runPublicListState(ControllerRequest request,
ControllerResponse response)
synonym for wizard gateway 'list wizards' |
protected void |
runRunWizardState(ControllerRequest request,
ControllerResponse response)
Runs the Run Wizard state. |
protected void |
verifyWizardParameters(ControllerRequest request,
ErrorCollection ec,
WizDefinition wizdef)
Checks the parameters for add and edit wizard state pertaining to the wizard definition itself. |
| Methods inherited from class com.sri.emo.controller.EmoAction |
|---|
addFooter, addHeader, runFooterState, runHeaderState |
| 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 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 |
|---|
public static final String STATE_PROMPT_ADDWIZARD
public static final String STATE_DO_ADDWIZARD
public static final String STATE_DO_EDIT
public static final String STATE_PROMPT_EDIT
public static final String STATE_DO_DELETE
public static final String STATE_RUNWIZARD
public static final String STATE_PUBLIC_LIST
| Constructor Detail |
|---|
public SelectionWizardManager()
| Method Detail |
|---|
public String getTitle()
getTitle in class EmoAction
protected void runPromptAddWizardState(ControllerRequest request,
ControllerResponse response)
throws ControllerException,
NonHandleableException
request - The ControllerRequest object handed to us by the framework.
The ControllerRequest contains all the parameters such as web parameters, user
security credentials and user localeresponse - The ControllerResponse object handed to us by the framework.
The ControllerResponse will be populated with the Inputs/Outputs/Transitions/Blocks
for ths sytem.
ControllerException - upon error
NonHandleableException - upon fatal error
protected void runDoEditState(ControllerRequest request,
ControllerResponse response)
throws ControllerException,
NonHandleableException
request - The ControllerRequest object handed to us by the framework.
The ControllerRequest contains all the parameters such as web parameters, user
security credentials and user localeresponse - The ControllerResponse object handed to us by the framework.
The ControllerResponse will be populated with the Inputs/Outputs/Transitions/Blocks
for ths sytem.
ControllerException - upon error
NonHandleableException - upon fatal error
protected void runDoAddState(ControllerRequest request,
ControllerResponse response)
throws ControllerException,
NonHandleableException
request - The ControllerRequest object handed to us by the framework.
The ControllerRequest contains all the parameters such as web parameters, user
security credentials and user localeresponse - The ControllerResponse object handed to us by the framework.
The ControllerResponse will be populated with the Inputs/Outputs/Transitions/Blocks
for ths sytem.
ControllerException - upon error
NonHandleableException - upon fatal error
protected void verifyWizardParameters(ControllerRequest request,
ErrorCollection ec,
WizDefinition wizdef)
throws DBException
request - The CntrollerRequest object.ec - The error collection to fill with errors if there are
issues.wizdef - the Wizard definition object to populate with values for
title, summary, etc if the items are ok.
DBException - upon database setField error.
protected void runDoDeleteState(ControllerRequest request,
ControllerResponse response)
throws ControllerException,
NonHandleableException
request - The ControllerRequest object handed to us by the framework.
The ControllerRequest contains all the parameters such as web parameters, user
security credentials and user localeresponse - The ControllerResponse object handed to us by the framework.
The ControllerResponse will be populated with the Inputs/Outputs/Transitions/Blocks
for ths sytem.
ControllerException - upon error
NonHandleableException - upon fatal error
protected void runPromptDeleteState(ControllerRequest request,
ControllerResponse response)
throws ControllerException,
NonHandleableException
request - The ControllerRequest object handed to us by the framework.
The ControllerRequest contains all the parameters such as web parameters, user
security credentials and user localeresponse - The ControllerResponse object handed to us by the framework.
The ControllerResponse will be populated with the Inputs/Outputs/Transitions/Blocks
for ths sytem.
ControllerException - upon error
NonHandleableException - upon fatal error
protected void runPromptEditState(ControllerRequest request,
ControllerResponse response)
throws ControllerException,
NonHandleableException
request - The ControllerRequest object handed to us by the framework.
The ControllerRequest contains all the parameters such as web parameters, user
security credentials and user localeresponse - The ControllerResponse object handed to us by the framework.
The ControllerResponse will be populated with the Inputs/Outputs/Transitions/Blocks
for ths sytem.
ControllerException - upon error
NonHandleableException - upon fatal error
protected void buildWizardSteps(ControllerRequest request,
Block steps,
WizDefinition currentWizard)
throws DBException,
ControllerException
request - the ControllerRequest objectsteps - the block to populate with the steps.currentWizard - the current wizard to build the steps for.
DBException - upon database access error
ControllerException - upon ControllerElement related error
protected void buildDecisionMatrix(ControllerRequest request,
ControllerResponse response,
Block matrix,
WizDefinition currentWizard)
throws DBException,
ControllerException
request - the ControllerRequest object.response - the ControllerResponse object.matrix - the block to populate with the steps.currentWizard - the current wizard to build the steps for.
DBException - upon database access error
ControllerException - upon ControllerElement related error
protected void runRunWizardState(ControllerRequest request,
ControllerResponse response)
throws ControllerException,
NonHandleableException
request - The ControllerRequest object handed to us by the framework.
The ControllerRequest contains all the parameters such as web parameters, user
security credentials and user localeresponse - The ControllerResponse object handed to us by the framework.
The ControllerResponse will be populated with the Inputs/Outputs/Transitions/Blocks
for ths sytem.
ControllerException - upon error
NonHandleableException - upon fatal error
protected void runPublicListState(ControllerRequest request,
ControllerResponse response)
throws ControllerException,
NonHandleableException
request - The ControllerRequest object handed to us by the framework.
The ControllerRequest contains all the parameters such as web parameters, user
security credentials and user localeresponse - The ControllerResponse object handed to us by the framework.
The ControllerResponse will be populated with the Inputs/Outputs/Transitions/Blocks
for ths sytem.
ControllerException - upon error
NonHandleableException - upon fatal error
public void run(WizDefinition wizard,
ExpressoRequest request,
ExpressoResponse response)
throws ControllerException
run in interface IWizardManagerwizard - WizDefinitionrequest - ExpressoRequestresponse - ExpressoResponse
ControllerException
public void add(ExpressoRequest request,
ExpressoResponse response)
throws ControllerException
add in interface IWizardManagerrequest - ExpressoRequest the request object.response - ExpressoResponse the response object.
ControllerException
public void edit(WizDefinition wizard,
ExpressoRequest request,
ExpressoResponse response)
throws ControllerException
edit in interface IWizardManagerwizard - The WizardDefinition to edit.request - ExpressoRequest the request object.response - ExpressoResponse the response object.
ControllerException - upon error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||