Class Config

java.lang.Object
org.bgerp.app.cfg.Config
org.bgerp.plugin.bgb.getolt.Config

public class Config extends Config
Configuration for GetOLT plugin. Reads settings from bgerp.properties with prefix "getolt:".
  • Constructor Details

  • Method Details

    • isConfigured

      public boolean isConfigured()
      Check if the plugin is configured
      Returns:
      true if API URL and key are configured
    • getApiUrl

      public String getApiUrl()
      Get the API URL
      Returns:
      the API URL
    • getApiKey

      public String 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

      public String getDefaultOperator()
      Get the default operator
      Returns:
      the default operator
    • getParamOperatorMapping

      public String getParamOperatorMapping(int valueId)
      Get operator name from process parameter value ID
      Parameters:
      valueId - the parameter value ID
      Returns:
      the operator name or null if not mapped
    • getBillingOperatorMapping

      public String getBillingOperatorMapping(String billingId)
      Get operator name from billing ID
      Parameters:
      billingId - the billing ID
      Returns:
      the operator name or null if not mapped
    • getInetMacConfig

      public BillingConfig getInetMacConfig(String operator)
      Get InetMac API configuration for operator.
      Parameters:
      operator - operator name (e.g., "Омикрон", "РТЦ")
      Returns:
      billing config or null if not configured
    • hasInetMacConfig

      public boolean hasInetMacConfig(String operator)
      Check if InetMac is configured for operator.
      Parameters:
      operator - operator name
      Returns:
      true if InetMac API is configured for this operator