Class DeviceAdminAction
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.DeviceAdminAction
Bulk load of equipment from a file.
There is no admin list or editor of equipment: a unit is created, edited and deleted on its
card, the way the kernel has no admin list of processes. What is left here is the one thing a
card cannot do — loading many units at once — and it is opened from the equipment queue screen.
Mapped at /admin/plugin/inventoru/device.do
-
Field Summary
Fields inherited from class BaseAction
l, log, 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.ActionForwardimportApply(DynActionForm form, ConnectionSet conSet) Applies the reviewed rows.org.apache.struts.action.ActionForwardimportForm(DynActionForm form, ConnectionSet conSet) org.apache.struts.action.ActionForwardimportPreview(DynActionForm form, ConnectionSet conSet) Parses and resolves the uploaded file without writing anything, so the admin sees what the import is about to do — which rows create a device and which update one, and what could not be resolved — before committing to it.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
-
DeviceAdminAction
public DeviceAdminAction()
-
-
Method Details
-
importForm
public org.apache.struts.action.ActionForward importForm(DynActionForm form, ConnectionSet conSet) throws Exception - Throws:
Exception
-
importPreview
public org.apache.struts.action.ActionForward importPreview(DynActionForm form, ConnectionSet conSet) throws Exception Parses and resolves the uploaded file without writing anything, so the admin sees what the import is about to do — which rows create a device and which update one, and what could not be resolved — before committing to it.- Throws:
Exception
-
importApply
public org.apache.struts.action.ActionForward importApply(DynActionForm form, ConnectionSet conSet) throws Exception Applies the reviewed rows.- Throws:
Exception
-