Expresso 5-6

com.jcorporate.expresso.services.controller.configuration
Class CreateSettingsWizard

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.jcorporate.expresso.core.controller.Controller
          extended bycom.jcorporate.expresso.core.controller.DBController
              extended bycom.jcorporate.expresso.core.controller.SecureIfSetController
                  extended bycom.jcorporate.expresso.services.controller.configuration.CreateSettingsWizard
All Implemented Interfaces:
Serializable

public class CreateSettingsWizard
extends SecureIfSetController

Wizard-style controller that helps to create a blank set of settings for the Expresso Runtime.

Version:
$Revision: 1.8 $ on $Date: 2004/11/17 20:48:17 $
Author:
Michael Rimov
See Also:
Serialized Form

Field Summary
static String RUNTIME_KEY
           
static String SERVICES_CONFIG_KEY
           
static String SETTINGS_BEAN_KEY
           
 
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
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
CreateSettingsWizard()
           
 
Method Summary
protected  void runCompleteState(ControllerRequest request, ControllerResponse response)
           
protected  void runInstallExpressoState(ControllerRequest request, ControllerResponse response)
           
protected  void runProcessDBSettingsState(ControllerRequest request, ControllerResponse response)
          Processes and validates the DB Settings.
protected  void runProcessJNDISettingsState(ControllerRequest request, ControllerResponse response)
           
protected  void runProcessRuntimeNameState(ControllerRequest request, ControllerResponse response)
          Process and validates the input of the runtime state.
protected  void runPromptDBSettingsState(ControllerRequest request, ControllerResponse response)
           
protected  void runPromptFinishedState(ControllerRequest request, ControllerResponse response)
           
protected  void runPromptInstallExpressoState(ControllerRequest request, ControllerResponse response)
           
protected  void runPromptJNDISettingsState(ControllerRequest request, ControllerResponse response)
           
protected  void runPromptTestSettingsState(ControllerRequest request, ControllerResponse response)
           
protected  void runReadDatabaseNotesState(ControllerRequest request, ControllerResponse response)
           
protected  void runRuntimeNameState(ControllerRequest request, ControllerResponse response)
          Prompt for a runtime name
protected  void runSaveFileLocalState(ControllerRequest request, ControllerResponse response)
           
protected  void runStartState(ControllerRequest request, ControllerResponse response)
          Initialize Wizard and prepare runtime state.
protected  void runTestSettingsState(ControllerRequest request, ControllerResponse response)
           
protected  void runViewFileState(ControllerRequest request, ControllerResponse response)
           
 
Methods inherited from class com.jcorporate.expresso.core.controller.SecureIfSetController
isDBConnectionAvailable, stateAllowed
 
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, getTitle, handleException, instantiate, isFinalState, isHandleState, isPromptState, isTokenValid, loadStateForm, 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
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUNTIME_KEY

public static final String RUNTIME_KEY

SETTINGS_BEAN_KEY

public static final String SETTINGS_BEAN_KEY
See Also:
Constant Field Values

SERVICES_CONFIG_KEY

public static final String SERVICES_CONFIG_KEY
Constructor Detail

CreateSettingsWizard

public CreateSettingsWizard()
Method Detail

runStartState

protected void runStartState(ControllerRequest request,
                             ControllerResponse response)
                      throws ControllerException,
                             NonHandleableException
Initialize Wizard and prepare runtime state.

Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runRuntimeNameState

protected void runRuntimeNameState(ControllerRequest request,
                                   ControllerResponse response)
                            throws ControllerException,
                                   NonHandleableException
Prompt for a runtime name

Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runProcessRuntimeNameState

protected void runProcessRuntimeNameState(ControllerRequest request,
                                          ControllerResponse response)
                                   throws ControllerException,
                                          NonHandleableException
Process and validates the input of the runtime state. IT then creates some blank components that are needed for a basic configuration such as a default context and a persistence manager.

Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runPromptDBSettingsState

protected void runPromptDBSettingsState(ControllerRequest request,
                                        ControllerResponse response)
                                 throws ControllerException,
                                        NonHandleableException
Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runProcessDBSettingsState

protected void runProcessDBSettingsState(ControllerRequest request,
                                         ControllerResponse response)
                                  throws ControllerException,
                                         NonHandleableException
Processes and validates the DB Settings.

Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runPromptJNDISettingsState

protected void runPromptJNDISettingsState(ControllerRequest request,
                                          ControllerResponse response)
                                   throws ControllerException,
                                          NonHandleableException
Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runProcessJNDISettingsState

protected void runProcessJNDISettingsState(ControllerRequest request,
                                           ControllerResponse response)
                                    throws ControllerException,
                                           NonHandleableException
Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runReadDatabaseNotesState

protected void runReadDatabaseNotesState(ControllerRequest request,
                                         ControllerResponse response)
                                  throws ControllerException,
                                         NonHandleableException
Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runPromptTestSettingsState

protected void runPromptTestSettingsState(ControllerRequest request,
                                          ControllerResponse response)
                                   throws ControllerException,
                                          NonHandleableException
Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runTestSettingsState

protected void runTestSettingsState(ControllerRequest request,
                                    ControllerResponse response)
                             throws ControllerException,
                                    NonHandleableException
Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runPromptInstallExpressoState

protected void runPromptInstallExpressoState(ControllerRequest request,
                                             ControllerResponse response)
                                      throws ControllerException,
                                             NonHandleableException
Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runInstallExpressoState

protected void runInstallExpressoState(ControllerRequest request,
                                       ControllerResponse response)
                                throws ControllerException,
                                       NonHandleableException
Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runPromptFinishedState

protected void runPromptFinishedState(ControllerRequest request,
                                      ControllerResponse response)
                               throws ControllerException,
                                      NonHandleableException
Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runSaveFileLocalState

protected void runSaveFileLocalState(ControllerRequest request,
                                     ControllerResponse response)
                              throws ControllerException,
                                     NonHandleableException
Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runViewFileState

protected void runViewFileState(ControllerRequest request,
                                ControllerResponse response)
                         throws ControllerException,
                                NonHandleableException
Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

runCompleteState

protected void runCompleteState(ControllerRequest request,
                                ControllerResponse response)
                         throws ControllerException,
                                NonHandleableException
Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
Throws:
ControllerException - upon error.
NonHandleableException - upon fatal error.

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.