public abstract class FlatTableBeanAction extends InstantiateBeanAction
CLIENT_TASK_ERROR, CLIENT_TASK_ERROR_KEY, CLIENT_TASK_NOTICE_KEY, CLIENT_TASK_WARNING_KEY, GLOBAL_ERROR_KEY, INFORMATION_ERROR
CHOOSABLE_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 |
---|
FlatTableBeanAction(TxType 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(FlatTableBean 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) |
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, setView
afterPerform, 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, update
executeImpl, getOriginContext, handleClientTasks, handleException, handleLogin, handleTransactionEndFailure, ignoreClientTasks
addError, addError, addErrors, addGlobalError, addGlobalError, addInformationError, asActionError, asActionErrors, copy, debugRequest, execute, findErrorForward, findForwardOrTargetPage, perform, perform, saveError, saveError, saveGlobalError, saveGlobalError, saveInformationError, setLocale
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setServlet
public FlatTableBeanAction(TxType 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.io.IOException, javax.servlet.ServletException, TVCException
TableBeanAction
perform
in class TableBeanAction
java.io.IOException
javax.servlet.ServletException
TVCException
public abstract com.technia.tvc.struts.action.ActionForward perform(FlatTableBean 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.io.IOException, javax.servlet.ServletException, TVCException
java.io.IOException
javax.servlet.ServletException
TVCException
public TableBean<?> updateTable(javax.servlet.http.HttpServletRequest request, TableBean<?> table) throws TVCException
TableBeanAction
This implementation will make sure the current table's view, system table and filters are valid.
updateTable
in class InstantiateBeanAction
TVCException
public java.lang.String getDefaultBeanClassName()
InstantiateBeanAction
TableBean
class name that should be used
unless another class name was explicitly defined in the request.getDefaultBeanClassName
in class InstantiateBeanAction
TableBean
class name.public java.lang.String getRequiredBeanClassName()
InstantiateBeanAction
TableBean
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 InstantiateBeanAction
TableBean
class name.public boolean getAlwaysInstantiate()
InstantiateBeanAction
TableBean
when this
action executes. If not, any existing TableBean that was found will be
reused.getAlwaysInstantiate
in class InstantiateBeanAction
Copyright ? Technia AB. All Rights Reserved.