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

public class DeviceAdminAction extends BaseAction
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
  • 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