Class InetMacApiClient
java.lang.Object
org.bgerp.plugin.bgb.getolt.dao.InetMacApiClient
HTTP client for BGBilling InetMac WebService API.
Handles MAC address updates and session drops via JSON-RPC.
Uses shared HttpClient with connection pooling and static ObjectMapper.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondropSession(int serviceId) Drops session for servicegetInetMacList(String macListUrl) Gets all MAC→subscriber mappings from billing via GetInetMacList webhookgetOltList(String oltListUrl) Gets OLT list from billing via GetOltList webhookgetServicesByContractId(int contractId) Gets all internet services for a contractupdateMacAddress(int serviceId, String newMac) Updates MAC address for specific serviceupdateMacAddress(int serviceId, String newMac, String oldMac) Updates MAC address for specific serviceupdateMacByContractId(int contractId, String newMac) Updates MAC address for contract (auto-selects service if only one exists)
-
Constructor Details
-
InetMacApiClient
-
-
Method Details
-
getServicesByContractId
Gets all internet services for a contract- Parameters:
contractId- contract ID (cid)- Returns:
- list of services
-
updateMacByContractId
Updates MAC address for contract (auto-selects service if only one exists)- Parameters:
contractId- contract ID (cid)newMac- new MAC address- Returns:
- update result
-
updateMacAddress
Updates MAC address for specific service- Parameters:
serviceId- service IDnewMac- new MAC address- Returns:
- update result
-
updateMacAddress
Updates MAC address for specific service- Parameters:
serviceId- service IDnewMac- new MAC addressoldMac- previous MAC address (optional, for logging)- Returns:
- update result
-
dropSession
Drops session for service- Parameters:
serviceId- service ID- Returns:
- drop result
-
getInetMacList
Gets all MAC→subscriber mappings from billing via GetInetMacList webhook- Parameters:
macListUrl- URL for GetInetMacList endpoint- Returns:
- list of maps with keys: serviceId, contractId, numDogovor, mac, macTo, login, abonFIO, abonAddr
-
getOltList
-