Package org.bgerp.plugin.bgb.getolt.dao
Class GetOltApiClient
java.lang.Object
org.bgerp.plugin.bgb.getolt.dao.GetOltApiClient
HTTP client for GetOLT External API.
Calls GET /api/v1/external/onus/erp-search endpoint.
Uses Jackson for automatic JSON deserialization with support for:
- Multiple field name aliases (camelCase, snake_case)
- LocalDateTime via custom deserializer (no extra dependencies)
- Unknown properties ignored
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRefreshStatus(String oltIp) Get OLT refresh status (for polling).rebootOnu(int oltId, int port, int onuId) Reboot ONU.refreshPort(String oltIp, int portNumber) Start OLT port refresh.Search for ONU by contract data.
-
Constructor Details
-
GetOltApiClient
-
-
Method Details
-
searchOnu
Search for ONU by contract data.- Parameters:
operator- operator name (e.g., "РТЦ", "Омикрон")contractNumber- contract number (optional)cid- contract ID (optional)- Returns:
- search result with ONU data
-
refreshPort
Start OLT port refresh.- Parameters:
oltIp- OLT IP addressportNumber- port number- Returns:
- refresh result with operationId
-
getRefreshStatus
Get OLT refresh status (for polling).- Parameters:
oltIp- OLT IP address- Returns:
- refresh status
-
rebootOnu
Reboot ONU.- Parameters:
oltId- OLT database IDport- port numberonuId- ONU ID on port- Returns:
- reboot result
-