Class DemoAction
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.bgerp.action.base.BaseAction
org.bgerp.action.open.DemoAction
org.bgerp.action.DemoAction
Demo actions showcasing UI components and entity CRUD
-
Field Summary
Fields inherited from class BaseAction
l, MAPPER, PATH_JSP_ADMIN, PATH_JSP_OPEN, PATH_JSP_USER, PATH_JSP_USERMOB, setupFields inherited from class org.apache.struts.actions.DispatchAction
clazz, methods, typesFields inherited from class org.apache.struts.actions.BaseAction
messagesFields inherited from class org.apache.struts.action.Action
servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionForwardentityDelete(DynActionForm form, Connection con) Deletes a demo entityorg.apache.struts.action.ActionForwardentityGet(DynActionForm form, Connection con) Loads a single demo entity for editingorg.apache.struts.action.ActionForwardentityList(DynActionForm form, Connection con) Searches the list of demo entitiesorg.apache.struts.action.ActionForwardentityUpdate(DynActionForm form, Connection con) Creates or updates a demo entityorg.apache.struts.action.ActionForwardenumValues(DynActionForm form, ConnectionSet conSet) Returns sample enumeration valuesorg.apache.struts.action.ActionForwardformSend(DynActionForm form, ConnectionSet conSet) Simulates handling of a submitted formorg.apache.struts.action.ActionForwardtabContentFirst(DynActionForm form, ConnectionSet conSet) Returns the content of the first demo taborg.apache.struts.action.ActionForwardtabContentSecond(DynActionForm form, ConnectionSet conSet) Returns the content of the second demo taborg.apache.struts.action.ActionForwardunspecified(DynActionForm form, ConnectionSet conSet) Default action method if no parameter 'action' passed.Methods inherited from class BaseAction
checkModified, dispatchMethod, getParameter, html, html, json, json, permissionCheck, restoreRequestParams, unspecified, updatePersonalizationMethods inherited from class org.apache.struts.actions.DispatchAction
cancelled, execute, getMethod, getMethodName, unspecifiedMethods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Constructor Details
-
DemoAction
public DemoAction()Default constructor
-
-
Method Details
-
unspecified
Description copied from class:BaseActionDefault action method if no parameter 'action' passed. Overwrite and implement.- Overrides:
unspecifiedin classDemoAction- Parameters:
form-conSet-- Returns:
-
enumValues
Returns sample enumeration values- Parameters:
form- request formconSet- connection set- Returns:
- JSON response
-
tabContentFirst
public org.apache.struts.action.ActionForward tabContentFirst(DynActionForm form, ConnectionSet conSet) Returns the content of the first demo tab- Parameters:
form- request formconSet- connection set- Returns:
- HTML view forward
-
tabContentSecond
public org.apache.struts.action.ActionForward tabContentSecond(DynActionForm form, ConnectionSet conSet) Returns the content of the second demo tab- Parameters:
form- request formconSet- connection set- Returns:
- HTML view forward
-
formSend
public org.apache.struts.action.ActionForward formSend(DynActionForm form, ConnectionSet conSet) throws BGIllegalArgumentException, InterruptedException Simulates handling of a submitted form- Parameters:
form- request formconSet- connection set- Returns:
- JSON response
- Throws:
BGIllegalArgumentException- if the title is blankInterruptedException- if the simulated processing is interrupted
-
entityList
public org.apache.struts.action.ActionForward entityList(DynActionForm form, Connection con) throws SQLException Searches the list of demo entities- Parameters:
form- request formcon- database connection- Returns:
- HTML view forward
- Throws:
SQLException- on a database error
-
entityGet
public org.apache.struts.action.ActionForward entityGet(DynActionForm form, Connection con) throws Exception Loads a single demo entity for editing- Parameters:
form- request formcon- database connection- Returns:
- HTML view forward
- Throws:
Exception- on any error
-
entityUpdate
public org.apache.struts.action.ActionForward entityUpdate(DynActionForm form, Connection con) throws Exception Creates or updates a demo entity- Parameters:
form- request formcon- database connection- Returns:
- JSON response
- Throws:
Exception- on any error
-
entityDelete
public org.apache.struts.action.ActionForward entityDelete(DynActionForm form, Connection con) throws Exception Deletes a demo entity- Parameters:
form- request formcon- database connection- Returns:
- JSON response
- Throws:
Exception- on any error
-