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
Вкладка «Массовая авария» (ТЗ #11, Этап 1).
Тонкий прокси к External API standalone-сервиса GetOLT v2 + сохранение
выбора OLT/портов в text-параметр процесса. Никаких DTO — JSON ответы
сервиса передаются клиенту как есть, выбор хранится тоже как JSON.
-
Field Summary
Fields inherited from class org.bgerp.action.base.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из/olts/statistics, отфильтрованные по substring-запросу.org.apache.struts.action.ActionForwardoltList(DynActionForm form, ConnectionSet conSet) AJAX: список OLT с уже встроенными портами и счётчиками ONU.org.apache.struts.action.ActionForwardrefreshOlt(DynActionForm form, ConnectionSet conSet) AJAX: попросить External API обновить OLT (FULL ключ).org.apache.struts.action.ActionForwardsave(DynActionForm form, ConnectionSet conSet) AJAX: сохранить JSON-выбор OLT/портов в text-параметр процесса.org.apache.struts.action.ActionForwardunspecified(DynActionForm form, ConnectionSet conSet) Default action method if no parameter 'action' passed.Methods inherited from class org.bgerp.action.base.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:
- Throws:
Exception
-
oltList
public org.apache.struts.action.ActionForward oltList(DynActionForm form, ConnectionSet conSet) throws Exception AJAX: список OLT с уже встроенными портами и счётчиками ONU. Источник — единыйGET /olts/statistics(один HTTP-запрос на всё). Фильтрация поcity/operator— на стороне ERP (case-insensitive). Нормализуем поля под фронт: добавляемtotalOnu/activeOnuна корень каждого OLT и в каждый порт.- Throws:
Exception
-
cities
public org.apache.struts.action.ActionForward cities(DynActionForm form, ConnectionSet conSet) throws Exception AJAX: подсказки по городам — уникальные значения поляcityиз/olts/statistics, отфильтрованные по substring-запросу. Учитывает оператора процесса (если передан).- Throws:
Exception
-
save
public org.apache.struts.action.ActionForward save(DynActionForm form, ConnectionSet conSet) throws Exception AJAX: сохранить JSON-выбор OLT/портов в text-параметр процесса. Тело принимается через POST-параметрselection(URL-encoded JSON).- Throws:
Exception
-
refreshOlt
public org.apache.struts.action.ActionForward refreshOlt(DynActionForm form, ConnectionSet conSet) throws Exception AJAX: попросить External API обновить OLT (FULL ключ).- Throws:
Exception
-