Class OltManageAction
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.OltManageAction
Action for OLT management page in user menu.
Provides CRUD for OLT devices, port/ONU viewing, and manual polling.
-
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.ActionForwardbillingMapping(DynActionForm form, ConnectionSet conSet) Manually triggers billing MAC mapping (MAC→subscriber)org.apache.struts.action.ActionForwardimportFromApi(DynActionForm form, ConnectionSet conSet) Imports OLT list from billing webhooks (GetOltList).org.apache.struts.action.ActionForwardoltDelete(DynActionForm form, ConnectionSet conSet) Deletes OLT with cascade (ports + ONUs)org.apache.struts.action.ActionForwardoltGet(DynActionForm form, ConnectionSet conSet) Loads OLT for editing.org.apache.struts.action.ActionForwardoltPoll(DynActionForm form, ConnectionSet conSet) Triggers Telnet poll for a single OLTorg.apache.struts.action.ActionForwardoltPollAll(DynActionForm form, ConnectionSet conSet) Polls ALL eligible OLTs (not currently UPDATING).org.apache.struts.action.ActionForwardoltUpdate(DynActionForm form, ConnectionSet conSet) Saves OLT (insert or update)org.apache.struts.action.ActionForwardonuList(DynActionForm form, ConnectionSet conSet) Lists ONUs for a portorg.apache.struts.action.ActionForwardportList(DynActionForm form, ConnectionSet conSet) Lists ports for an OLTorg.apache.struts.action.ActionForwardportRefresh(DynActionForm form, ConnectionSet conSet) Refreshes a single port of an OLT via Telnetorg.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
-
OltManageAction
public OltManageAction()
-
-
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
-
oltGet
public org.apache.struts.action.ActionForward oltGet(DynActionForm form, ConnectionSet conSet) throws Exception Loads OLT for editing. id=-1 for new OLT.- Throws:
Exception
-
oltUpdate
public org.apache.struts.action.ActionForward oltUpdate(DynActionForm form, ConnectionSet conSet) throws Exception Saves OLT (insert or update)- Throws:
Exception
-
oltDelete
public org.apache.struts.action.ActionForward oltDelete(DynActionForm form, ConnectionSet conSet) throws Exception Deletes OLT with cascade (ports + ONUs)- Throws:
Exception
-
oltPoll
public org.apache.struts.action.ActionForward oltPoll(DynActionForm form, ConnectionSet conSet) throws Exception Triggers Telnet poll for a single OLT- Throws:
Exception
-
oltPollAll
public org.apache.struts.action.ActionForward oltPollAll(DynActionForm form, ConnectionSet conSet) throws Exception Polls ALL eligible OLTs (not currently UPDATING). Runs polling asynchronously in separate threads.- Throws:
Exception
-
portRefresh
public org.apache.struts.action.ActionForward portRefresh(DynActionForm form, ConnectionSet conSet) throws Exception Refreshes a single port of an OLT via Telnet- Throws:
Exception
-
importFromApi
public org.apache.struts.action.ActionForward importFromApi(DynActionForm form, ConnectionSet conSet) throws Exception Imports OLT list from billing webhooks (GetOltList). Queries each configured operator's billing, inserts new OLTs (by IP), skips existing.- Throws:
Exception
-
billingMapping
public org.apache.struts.action.ActionForward billingMapping(DynActionForm form, ConnectionSet conSet) throws Exception Manually triggers billing MAC mapping (MAC→subscriber)- Throws:
Exception
-
portList
public org.apache.struts.action.ActionForward portList(DynActionForm form, ConnectionSet conSet) throws Exception Lists ports for an OLT- Throws:
Exception
-
onuList
public org.apache.struts.action.ActionForward onuList(DynActionForm form, ConnectionSet conSet) throws Exception Lists ONUs for a port- Throws:
Exception
-