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
"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.
-
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.ActionForwardcities(DynActionForm form, ConnectionSet conSet) AJAX: city suggestions — unique values of thecityfield from/olts/statistics, filtered by a substring query.org.apache.struts.action.ActionForwardoltList(DynActionForm form, ConnectionSet conSet) AJAX: list of OLTs with ports and ONU counters already embedded.org.apache.struts.action.ActionForwardrefreshOlt(DynActionForm form, ConnectionSet conSet) AJAX: asks External API to refresh OLT (FULL key)org.apache.struts.action.ActionForwardsave(DynActionForm form, ConnectionSet conSet) AJAX: saves JSON selection of OLT/ports into a text process parameter.org.apache.struts.action.ActionForwardunspecified(DynActionForm form, ConnectionSet conSet) Default action method if no parameter 'action' passed.Methods 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
-
MassIncidentAction
public MassIncidentAction()
-
-
Method Details
-
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
-
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 — singleGET /olts/statistics(one HTTP request for everything). Filtering bycity/operator— on the ERP side (case-insensitive). Normalizes fields for the frontend: addstotalOnu/activeOnuto 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 thecityfield 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 parameterselection(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
-