public abstract class StructureBeanAction extends InstantiateBeanAction
StructureBean.CLIENT_TASK_ERROR, CLIENT_TASK_ERROR_KEY, CLIENT_TASK_NOTICE_KEY, CLIENT_TASK_WARNING_KEY, GLOBAL_ERROR_KEY, INFORMATION_ERRORCHOOSABLE_FILTERS_REQUEST_KEY, CHOOSABLE_SYSTEM_TABLES_REQUEST_KEY, CHOOSABLE_VIEWS_REQUEST_KEY, CURRENT_FILTERS_REQUEST_KEY, CURRENT_SYSTEM_TABLE_REQUEST_KEY, CURRENT_VIEW_REQUEST_KEY, DISPLAY_MODE_CURRENT_VIEW_REQUEST_KEY, DISPLAYABLE_CHOOSABLE_FILTERS_REQUEST_KEY, DISPLAYABLE_CHOOSABLE_SYSTEM_TABLES_REQUEST_KEY, DISPLAYABLE_CHOOSABLE_VIEWS_REQUEST_KEY, DISPLAYABLE_CURRENT_FILTERS_REQUEST_KEY, DISPLAYABLE_CURRENT_SYSTEM_TABLE_REQUEST_KEY, DISPLAYABLE_CURRENT_VIEW_REQUEST_KEY, KEY_GENERATOR_SESSION_KEY, TABLE_BEAN_REQUEST_KEY, TABLE_NAME_REQUEST_KEY| Constructor and Description |
|---|
StructureBeanAction(TxType type)
Constructor that lets you specify the transaction type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAlwaysInstantiate()
Returns whether to always instantiate a
TableBean when this
action executes. |
java.lang.String |
getDefaultBeanClassName()
Returns the default
TableBean class name that should be used
unless another class name was explicitly defined in the request. |
java.lang.String |
getRequiredBeanClassName()
Returns the reqired
TableBean class name. |
abstract com.technia.tvc.struts.action.ActionForward |
perform(StructureBean structure,
com.technia.tvc.struts.action.ActionMapping mapping,
com.technia.tvc.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Implement this method to perform an action on the
StructureBean. |
com.technia.tvc.struts.action.ActionForward |
perform(TableBean<?> table,
com.technia.tvc.struts.action.ActionMapping mapping,
com.technia.tvc.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method should be overridden to perform business logic on the
TableBean instance.
|
TableBean<?> |
updateTable(javax.servlet.http.HttpServletRequest request,
TableBean<?> table)
Updates the table for the current request.
|
afterCreate, copyEnv, createEntryProcessor, createSelectionBehavior, createTable, createTableFactory, createTableInstance, createTableLinkFactory, createTableRenderer, createViewFactory, finishRequest, getBeanClass, getBeanClassName, getCopyEnv, getDefaultPageConfigName, getObjectNameFromRequest, getPageConfig, isBeanInstantiated, setBeanInstantiated, setSystemTableAndFilters, setViewafterPerform, beforePerform, createEnvironment, discardEnv, discardTable, ensureContextMenu, ensureMenuBar, execute, generateKey, getChoosableViewNamesParameter, getEnv, getGeneratedKey, getMonitor, getOriginalTable, getParameter, getTable, getTable, getViewNameParameter, handleErrors, insertCategoryMenu, loadContextMenu, loadMenuBar, replaceRequest, saveEnv, saveTable, storePageConfig, storeRequestAttributes, updateexecuteImpl, getOriginContext, handleClientTasks, handleException, handleLogin, handleTransactionEndFailure, ignoreClientTasksaddError, addError, addErrors, addGlobalError, addGlobalError, addInformationError, asActionError, asActionErrors, copy, debugRequest, execute, findErrorForward, findForwardOrTargetPage, perform, perform, saveError, saveError, saveGlobalError, saveGlobalError, saveInformationError, setLocaleaddErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setServletpublic StructureBeanAction(TxType type)
type - The transaction type.public final com.technia.tvc.struts.action.ActionForward perform(TableBean<?> table, com.technia.tvc.struts.action.ActionMapping mapping, com.technia.tvc.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
TableBeanActionperform in class TableBeanActionjava.lang.Exceptionpublic abstract com.technia.tvc.struts.action.ActionForward perform(StructureBean structure, com.technia.tvc.struts.action.ActionMapping mapping, com.technia.tvc.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
StructureBean.structure - The StructureBean that was created (or reused)
for this request.mapping - The action mappings.form - The form.request - The request.response - The response.java.lang.Exception - If the action fails.public TableBean<?> updateTable(javax.servlet.http.HttpServletRequest request, TableBean<?> table) throws TVCException
TableBeanActionThis implementation will make sure the current table's view, system table and filters are valid.
updateTable in class InstantiateBeanActionTVCExceptionpublic java.lang.String getDefaultBeanClassName()
InstantiateBeanActionTableBean class name that should be used
unless another class name was explicitly defined in the request.getDefaultBeanClassName in class InstantiateBeanActionTableBean class name.public java.lang.String getRequiredBeanClassName()
InstantiateBeanActionTableBean class name. If a custom class name
was explicitly defined in the request that class has to be assignable to
the class returned by this method.getRequiredBeanClassName in class InstantiateBeanActionTableBean class name.public boolean getAlwaysInstantiate()
InstantiateBeanActionTableBean when this
action executes. If not, any existing TableBean that was found will be
reused.getAlwaysInstantiate in class InstantiateBeanActionCopyright ? Technia AB. All Rights Reserved.