Class StoreAction
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.plugin.inventoru.action.QueueScreenAction
org.bgerp.plugin.inventoru.action.StoreAction
CRUD actions for warehouses/stores and balance view.
Also handles store queue (list view with configurable columns/filters).
Mapped at /user/plugin/inventoru/store.do
-
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.ActionForwardcreate(DynActionForm form, ConnectionSet conSet) org.apache.struts.action.ActionForwarddelete(DynActionForm form, ConnectionSet conSet) org.apache.struts.action.ActionForwardedit(DynActionForm form, ConnectionSet conSet) protected QueueEntityThe entity the screen lists.protected StringgetScreenTitle(DynActionForm form) Screen title, shown in the browser tab.protected StringPermission node of the card the rows link to, e.g.protected StringEntity specific buttons shown above the queue selector — creating a row, opening a related catalogue.org.apache.struts.action.ActionForwardmy(DynActionForm form, ConnectionSet conSet) Mobile-friendly "my warehouse" screen for an engineer: every store the user owns or has access to, with balances (quantity/reserved) and the count of pending 1C imports awaiting their confirmation.org.apache.struts.action.ActionForwardqueueFilter(DynActionForm form, ConnectionSet conSet) org.apache.struts.action.ActionForwardqueueShow(DynActionForm form, ConnectionSet conSet) org.apache.struts.action.ActionForwardrestore(DynActionForm form, ConnectionSet conSet) Undoes a delete.org.apache.struts.action.ActionForwardshow(DynActionForm form, ConnectionSet conSet) org.apache.struts.action.ActionForwardunspecified(DynActionForm form, ConnectionSet conSet) Default action method if no parameter 'action' passed.org.apache.struts.action.ActionForwardupdate(DynActionForm form, ConnectionSet conSet) Methods inherited from class QueueScreenAction
queueFilterScreen, queueScreen, queueShowScreenMethods 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
-
StoreAction
public StoreAction()
-
-
Method Details
-
getEntity
Description copied from class:QueueScreenActionThe entity the screen lists.- Specified by:
getEntityin classQueueScreenAction
-
getScreenTitle
Description copied from class:QueueScreenActionScreen title, shown in the browser tab.- Specified by:
getScreenTitlein classQueueScreenAction
-
getShowAction
Description copied from class:QueueScreenActionPermission node of the card the rows link to, e.g./user/plugin/inventoru/store:show; the row menu is hidden without it.- Specified by:
getShowActionin classQueueScreenAction
-
getToolbarJsp
Description copied from class:QueueScreenActionEntity specific buttons shown above the queue selector — creating a row, opening a related catalogue. The queue itself has no idea what can be done with what it lists.- Overrides:
getToolbarJspin classQueueScreenAction- Returns:
- path of a JSP to include, or
nullwhen the entity has no such buttons.
-
unspecified
public org.apache.struts.action.ActionForward unspecified(DynActionForm form, ConnectionSet conSet) throws Exception Description copied from class:BaseActionDefault action method if no parameter 'action' passed. Overwrite and implement.- Overrides:
unspecifiedin classBaseAction- Parameters:
form-conSet-- Returns:
- the action forward
- Throws:
Exception
-
queueFilter
public org.apache.struts.action.ActionForward queueFilter(DynActionForm form, ConnectionSet conSet) throws Exception - Throws:
Exception
-
queueShow
public org.apache.struts.action.ActionForward queueShow(DynActionForm form, ConnectionSet conSet) throws Exception - Throws:
Exception
-
my
public org.apache.struts.action.ActionForward my(DynActionForm form, ConnectionSet conSet) throws Exception Mobile-friendly "my warehouse" screen for an engineer: every store the user owns or has access to, with balances (quantity/reserved) and the count of pending 1C imports awaiting their confirmation. Read-only — actions stay on the store card / materials tab.- Throws:
Exception
-
show
public org.apache.struts.action.ActionForward show(DynActionForm form, ConnectionSet conSet) throws Exception - Throws:
Exception
-
edit
public org.apache.struts.action.ActionForward edit(DynActionForm form, ConnectionSet conSet) throws Exception - Throws:
Exception
-
create
public org.apache.struts.action.ActionForward create(DynActionForm form, ConnectionSet conSet) throws Exception - Throws:
Exception
-
update
public org.apache.struts.action.ActionForward update(DynActionForm form, ConnectionSet conSet) throws Exception - Throws:
Exception
-
restore
public org.apache.struts.action.ActionForward restore(DynActionForm form, ConnectionSet conSet) throws Exception Undoes a delete. The delete is a soft one, so without this the only way back was SQL. A restricted user never reaches a deleted store — the accessible sets are built from non-deleted rows — so in practice this is an admin-tier action.- Throws:
Exception
-
delete
public org.apache.struts.action.ActionForward delete(DynActionForm form, ConnectionSet conSet) throws Exception - Throws:
Exception
-