Package org.bgerp.plugin.bgb.getolt.dao
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondropSession(int serviceId) Drop session for service.getServicesByContractId(int contractId) Get all internet services for a contract.updateMacAddress(int serviceId, String newMac) Update MAC address for specific service.updateMacAddress(int serviceId, String newMac, String oldMac) Update MAC address for specific service.updateMacByContractId(int contractId, String newMac) Update MAC address for contract (auto-selects service if only one exists).
-
Constructor Details
-
InetMacApiClient
-
-
Method Details
-
getServicesByContractId
Get all internet services for a contract.- Parameters:
contractId- contract ID (cid)- Returns:
- list of services
-
updateMacByContractId
Update MAC address for contract (auto-selects service if only one exists).- Parameters:
contractId- contract ID (cid)newMac- new MAC address- Returns:
- update result
-
updateMacAddress
Update MAC address for specific service.- Parameters:
serviceId- service IDnewMac- new MAC address- Returns:
- update result
-
updateMacAddress
Update MAC address for specific service.- Parameters:
serviceId- service IDnewMac- new MAC addressoldMac- previous MAC address (optional, for logging)- Returns:
- update result
-
dropSession
Drop session for service.- Parameters:
serviceId- service ID- Returns:
- drop result
-