Class DeviceAction
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.DeviceAction
CRUD actions for network devices (OLT, ONU, router, switch, ...).
Mapped at /user/plugin/inventoru/device.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) The edit form of an existing unit.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.ActionForwardqueueFilter(DynActionForm form, ConnectionSet conSet) org.apache.struts.action.ActionForwardqueueShow(DynActionForm form, ConnectionSet conSet) org.apache.struts.action.ActionForwardrestore(DynActionForm form, ConnectionSet conSet) UnlikeStoreAction.restore(DynActionForm, ConnectionSet), this one a кладовщик can actually use: the check reads the unit's row directly, and a deleted unit still names the store it stood on.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
-
DeviceAction
public DeviceAction()
-
-
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
-
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 The edit form of an existing unit. Same screen ascreate(DynActionForm, ConnectionSet), but its own entry: the card used to open the editor throughcreate, so editing a unit demanded the permission to create one.- 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
-
delete
public org.apache.struts.action.ActionForward delete(DynActionForm form, ConnectionSet conSet) throws Exception - Throws:
Exception
-
restore
public org.apache.struts.action.ActionForward restore(DynActionForm form, ConnectionSet conSet) throws Exception UnlikeStoreAction.restore(DynActionForm, ConnectionSet), this one a кладовщик can actually use: the check reads the unit's row directly, and a deleted unit still names the store it stood on. The accessible set of stores, on the other hand, is built from live rows only, so a deleted store falls out of it and only an admin-tier user can bring it back. The difference is in what is being restored — a unit on a store one still holds, versus the store itself.- Throws:
Exception
-