Class MassIncidentAction

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.bgb.getolt.action.incident.MassIncidentAction

public class MassIncidentAction extends BaseAction
"Mass incident" tab (spec #11, Stage 1). A thin proxy to the External API of the standalone GetOLT v2 service + saving the OLT/port selection into a text process parameter. No DTOs — JSON responses from the service are passed to the client as-is, the selection is also stored as JSON.
  • Constructor Details

    • MassIncidentAction

      public MassIncidentAction()
  • Method Details

    • unspecified

      public org.apache.struts.action.ActionForward unspecified(DynActionForm form, ConnectionSet conSet) throws Exception
      Description copied from class: BaseAction
      Default action method if no parameter 'action' passed. Overwrite and implement.
      Overrides:
      unspecified in class BaseAction
      Parameters:
      form -
      conSet -
      Returns:
      the action forward
      Throws:
      Exception
    • oltList

      public org.apache.struts.action.ActionForward oltList(DynActionForm form, ConnectionSet conSet) throws Exception
      AJAX: list of OLTs with ports and ONU counters already embedded. Source — single GET /olts/statistics (one HTTP request for everything). Filtering by city/operator — on the ERP side (case-insensitive). Normalizes fields for the frontend: adds totalOnu/activeOnu to the root of each OLT and to each port.
      Throws:
      Exception
    • cities

      public org.apache.struts.action.ActionForward cities(DynActionForm form, ConnectionSet conSet) throws Exception
      AJAX: city suggestions — unique values of the city field from /olts/statistics, filtered by a substring query. Takes into account the process operator (if passed).
      Throws:
      Exception
    • save

      public org.apache.struts.action.ActionForward save(DynActionForm form, ConnectionSet conSet) throws Exception
      AJAX: saves JSON selection of OLT/ports into a text process parameter. Body is accepted via POST parameter selection (URL-encoded JSON).
      Throws:
      Exception
    • refreshOlt

      public org.apache.struts.action.ActionForward refreshOlt(DynActionForm form, ConnectionSet conSet) throws Exception
      AJAX: asks External API to refresh OLT (FULL key)
      Throws:
      Exception