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 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.ActionForwardbillingMapping(DynActionForm form, ConnectionSet conSet) Manually trigger billing MAC mapping (MAC→subscriber).org.apache.struts.action.ActionForwardimportFromApi(DynActionForm form, ConnectionSet conSet) Import OLT list from billing webhooks (GetOltList).org.apache.struts.action.ActionForwardoltDelete(DynActionForm form, ConnectionSet conSet) Delete OLT with cascade (ports + ONUs).org.apache.struts.action.ActionForwardoltGet(DynActionForm form, ConnectionSet conSet) Load OLT for editing.org.apache.struts.action.ActionForwardoltPoll(DynActionForm form, ConnectionSet conSet) Trigger Telnet poll for a single OLT.org.apache.struts.action.ActionForwardoltPollAll(DynActionForm form, ConnectionSet conSet) Poll ALL eligible OLTs (not currently UPDATING).org.apache.struts.action.ActionForwardoltUpdate(DynActionForm form, ConnectionSet conSet) Save OLT (insert or update).org.apache.struts.action.ActionForwardonuList(DynActionForm form, ConnectionSet conSet) List ONUs for a port.org.apache.struts.action.ActionForwardportList(DynActionForm form, ConnectionSet conSet) List ports for an OLT.org.apache.struts.action.ActionForwardportRefresh(DynActionForm form, ConnectionSet conSet) Refresh a single port of an OLT via Telnet.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
-
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:
- Throws:
Exception
-
oltGet
public org.apache.struts.action.ActionForward oltGet(DynActionForm form, ConnectionSet conSet) throws Exception Load OLT for editing. id=-1 for new OLT.- Throws:
Exception
-
oltUpdate
public org.apache.struts.action.ActionForward oltUpdate(DynActionForm form, ConnectionSet conSet) throws Exception Save OLT (insert or update).- Throws:
Exception
-
oltDelete
public org.apache.struts.action.ActionForward oltDelete(DynActionForm form, ConnectionSet conSet) throws Exception Delete OLT with cascade (ports + ONUs).- Throws:
Exception
-
oltPoll
public org.apache.struts.action.ActionForward oltPoll(DynActionForm form, ConnectionSet conSet) throws Exception Trigger Telnet poll for a single OLT.- Throws:
Exception
-
oltPollAll
public org.apache.struts.action.ActionForward oltPollAll(DynActionForm form, ConnectionSet conSet) throws Exception Poll 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 Refresh a single port of an OLT via Telnet.- Throws:
Exception
-
importFromApi
public org.apache.struts.action.ActionForward importFromApi(DynActionForm form, ConnectionSet conSet) throws Exception Import 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 trigger billing MAC mapping (MAC→subscriber).- Throws:
Exception
-
portList
public org.apache.struts.action.ActionForward portList(DynActionForm form, ConnectionSet conSet) throws Exception List ports for an OLT.- Throws:
Exception
-
onuList
public org.apache.struts.action.ActionForward onuList(DynActionForm form, ConnectionSet conSet) throws Exception List ONUs for a port.- Throws:
Exception
-