|
||||||||||
| 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.ImportExportModel
public class ImportExportModel
Allows import and export of Entities and their related nodes.
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_EXPORTMODEL
Constant for access to state: Export an Entire Model with Nodes |
static String |
STATE_IMPORTMODEL
Constant for access to state: Import an Entire Model With Nodes |
static String |
STATE_PROMPT
Constant for access to state: Prompt |
static String |
STATE_PROMPT_EXPORT
Constant for access to state: Prompt Export Model |
static String |
STATE_PROMPT_IMPORTMODEL
Constant for access to state: Prompt Import |
| 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 | |
|---|---|
ImportExportModel()
Creates an instance of ImportExportModel. |
|
| Method Summary | |
|---|---|
String |
getTitle()
Override of Controller.getTitle() to provide a meaningful name to this controller. |
protected String |
getXmlData(ExpressoRequest request,
ErrorCollection ec)
Parse the XML data from either the data parameter or the file parameter. |
protected org.dom4j.Element |
parseXmlDataString(String data)
Returns an element from the given data. |
protected void |
runExportModelState(ExpressoRequest request,
ExpressoResponse response)
Runs the Export an Entire Model with Nodes state |
protected void |
runImportModelState(ExpressoRequest request,
ExpressoResponse response)
Runs the Import an Entire Model With Nodes state |
protected void |
runPromptExportModelState(ExpressoRequest request,
ExpressoResponse response)
Runs the Prompt Export. |
protected void |
runPromptImportModelState(ExpressoRequest request,
ExpressoResponse response)
Prompts for input. |
protected void |
runPromptState(ExpressoRequest request,
ExpressoResponse response)
Runs the Prompt 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 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
public static final String STATE_PROMPT_EXPORT
public static final String STATE_EXPORTMODEL
public static final String STATE_IMPORTMODEL
public static final String STATE_PROMPT_IMPORTMODEL
| Constructor Detail |
|---|
public ImportExportModel()
| Method Detail |
|---|
protected void runPromptState(ExpressoRequest request,
ExpressoResponse response)
throws ControllerException,
NonHandleableException
request - The ExpressoRequest object handed to us
by the framework.
The ExpressoRequest contains all the parameters such as web
parameters, user
security credentials and user localeresponse - The ExpressoResponse object handed to us
by the framework.
The ExpressoResponse will be populated with the Inputs/Outputs
/Transitions/Blocks
for ths sytem.
ControllerException - upon error
NonHandleableException - upon fatal error
protected void runPromptExportModelState(ExpressoRequest request,
ExpressoResponse response)
throws ControllerException,
NonHandleableException
request - The ExpressoRequest object handed to us by
the framework.
The ExpressoRequest contains all the parameters such as web
parameters, user
security credentials and user localeresponse - The ExpressoResponse object handed to us
by the framework.
The ExpressoResponse will be populated with the Inputs/Outputs
/Transitions/Blocks
for ths sytem.
ControllerException - upon error
NonHandleableException - upon fatal error
protected void runExportModelState(ExpressoRequest request,
ExpressoResponse response)
throws ControllerException,
NonHandleableException,
IOException
request - The ExpressoRequest object handed to us
by the framework.
The ExpressoRequest contains all the parameters such as web
parameters, user
security credentials and user localeresponse - The ExpressoResponse object handed to us
by the framework.
The ExpressoResponse will be populated with the Inputs/Outputs
Transitions/Blocks
for ths sytem.
ControllerException - upon error
NonHandleableException - upon fatal error
IOException - upon error writing the XML data.
protected void runImportModelState(ExpressoRequest request,
ExpressoResponse response)
throws ControllerException,
NonHandleableException
request - The ExpressoRequest object
handed to us by the framework.
The ExpressoRequest contains all the parameters such as
web parameters, user
security credentials and user localeresponse - The ExpressoResponse object handed
to us by the framework.
The ExpressoResponse will be populated with the
Inputs/Outputs/Transitions/Blocks
for ths sytem.
ControllerException - upon error
NonHandleableException - upon fatal error
protected String getXmlData(ExpressoRequest request,
ErrorCollection ec)
request - ExpressoRequest The ExpressoRequest objectec - ErrorCollection the ErrorCollection
protected org.dom4j.Element parseXmlDataString(String data)
throws org.dom4j.DocumentException
data - String the actual data to parse.
org.dom4j.DocumentException - upon parsing error.
protected void runPromptImportModelState(ExpressoRequest request,
ExpressoResponse response)
throws ControllerException,
NonHandleableException
request - The ExpressoRequest object handed
to us by the framework.
The ExpressoRequest contains all the parameters such as web
parameters, user
security credentials and user localeresponse - The ExpressoResponse object handed to us
by the framework.
The ExpressoResponse will be populated with the Inputs/Outputs
/Transitions/Blocks for ths sytem.
ControllerException - upon error
NonHandleableException - upon fatal errorpublic String getTitle()
getTitle in class Controller
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||