Class QueueScreenAction
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
- Direct Known Subclasses:
DeviceAction, ItemAction, ManufacturerQueueAction, ModelQueueAction, MovementAction, StoreAction
The queue screen of an entity: a queue selector, the filter panel and the rows.
Everything here is the same for warehouses, items and equipment — what differs is described by
QueueEntity and by the few hooks below, so adding a queue screen to an entity is an
action extending this class, not another copy of the machinery.
The three screen methods are helpers rather than the action methods themselves: the dispatcher
resolves an action method with getDeclaredMethod (see Invoker.find), which does
not see inherited ones. So every subclass declares unspecified, queueFilter and
queueShow of its own, each a single call into here.-
Field Summary
Fields inherited from class BaseAction
l, log, 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 TypeMethodDescriptionprotected abstract QueueEntityThe entity the screen lists.protected abstract StringgetScreenTitle(DynActionForm form) Screen title, shown in the browser tab.protected abstract 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.protected org.apache.struts.action.ActionForwardqueueFilterScreen(DynActionForm form, ConnectionSet conSet) AJAX: the filter panel of a queue.protected org.apache.struts.action.ActionForwardqueueScreen(DynActionForm form, ConnectionSet conSet) Queue selector plus the containers the filter and the rows are loaded into.protected org.apache.struts.action.ActionForwardqueueShowScreen(DynActionForm form, ConnectionSet conSet) AJAX: the rows of a queue, filtered and sorted as the panel says.Methods inherited from class BaseAction
checkModified, dispatchMethod, getParameter, html, html, json, json, permissionCheck, restoreRequestParams, unspecified, 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
-
QueueScreenAction
public QueueScreenAction()
-
-
Method Details
-
getEntity
The entity the screen lists. -
getScreenTitle
Screen title, shown in the browser tab. -
getShowAction
Permission node of the card the rows link to, e.g./user/plugin/inventoru/store:show; the row menu is hidden without it. -
getToolbarJsp
Entity 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.- Returns:
- path of a JSP to include, or
nullwhen the entity has no such buttons.
-
queueScreen
protected org.apache.struts.action.ActionForward queueScreen(DynActionForm form, ConnectionSet conSet) throws Exception Queue selector plus the containers the filter and the rows are loaded into.- Throws:
Exception
-
queueFilterScreen
protected org.apache.struts.action.ActionForward queueFilterScreen(DynActionForm form, ConnectionSet conSet) throws Exception AJAX: the filter panel of a queue.- Throws:
Exception
-
queueShowScreen
protected org.apache.struts.action.ActionForward queueShowScreen(DynActionForm form, ConnectionSet conSet) throws Exception AJAX: the rows of a queue, filtered and sorted as the panel says.- Throws:
Exception
-