Package org.bgerp.plugin.bgb.getolt
Class Config
java.lang.Object
org.bgerp.app.cfg.Config
org.bgerp.plugin.bgb.getolt.Config
Configuration for GetOLT plugin.
Reads settings from bgerp.properties with prefix "getolt:".
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bgerp.app.cfg.Config
Config.InitStopException -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the API keyintGet the API timeout in millisecondsGet the API URLgetBillingOperatorMapping(String billingId) Get operator name from billing IDGet the default operatorgetInetMacConfig(String operator) Get InetMac API configuration for operator.intGet the operator parameter IDgetParamOperatorMapping(int valueId) Get operator name from process parameter value IDbooleanhasInetMacConfig(String operator) Check if InetMac is configured for operator.booleanCheck if the plugin is configuredMethods inherited from class org.bgerp.app.cfg.Config
initWhen, throwValidationException
-
Constructor Details
-
Config
Constructor- Parameters:
config- the configuration map- Throws:
Config.InitStopException- if initialization fails
-
-
Method Details
-
isConfigured
public boolean isConfigured()Check if the plugin is configured- Returns:
- true if API URL and key are configured
-
getApiUrl
Get the API URL- Returns:
- the API URL
-
getApiKey
Get the API key- Returns:
- the API key
-
getApiTimeout
public int getApiTimeout()Get the API timeout in milliseconds- Returns:
- the API timeout
-
getOperatorParamId
public int getOperatorParamId()Get the operator parameter ID- Returns:
- the operator parameter ID
-
getDefaultOperator
Get the default operator- Returns:
- the default operator
-
getParamOperatorMapping
Get operator name from process parameter value ID- Parameters:
valueId- the parameter value ID- Returns:
- the operator name or null if not mapped
-
getBillingOperatorMapping
Get operator name from billing ID- Parameters:
billingId- the billing ID- Returns:
- the operator name or null if not mapped
-
getInetMacConfig
Get InetMac API configuration for operator.- Parameters:
operator- operator name (e.g., "Омикрон", "РТЦ")- Returns:
- billing config or null if not configured
-
hasInetMacConfig
Check if InetMac is configured for operator.- Parameters:
operator- operator name- Returns:
- true if InetMac API is configured for this operator
-