Class BillingDAO

java.lang.Object
ru.bgcrm.plugin.bgbilling.dao.BillingDAO
Direct Known Subclasses:
AddressQuarterDAO, BalanceDAO, BGBillingServiceAPIImpl, BillingAddressDAO, BillingJsonRpcClient, BillingModuleDAO, CashCheckDAO, CommonTariffDAO, ContractDAO, ContractDAO, ContractHierarchyDAO, ContractObjectDAO, ContractObjectParamDAO, ContractParamDAO, ContractScriptDAO, ContractServiceDAO, ContractStatusDAO, ContractTariffDAO, CrmDAO, DirectoryDAO, HelpDeskDAO, MaintenanceFLBillingServiceImpl, MaintenanceServiceBg7, PluginDAO, SmartyDAOImpl, TariffOptionActivationModeDAO, VoiceIpDAO

public class BillingDAO extends Object
  • Field Details

    • user

      protected User user
    • dbInfo

      protected DBInfo dbInfo
    • transferData

      protected TransferData transferData
    • jsonMapper

      protected com.fasterxml.jackson.databind.ObjectMapper jsonMapper
    • jsonTypeFactory

      protected com.fasterxml.jackson.databind.type.TypeFactory jsonTypeFactory
  • Constructor Details

  • Method Details

    • doRequest

      public Document doRequest(Request req) throws BGException
      Throws:
      BGException
    • setPage

      protected void setPage(Request req, Page page)
    • getPage

      protected void getPage(Page page, Element data)
    • getParameterId

      public Integer getParameterId(String values) throws BGException
      Возвращает из сроки вида billingId1:paramId1;billingId2:paramId2 код параметра для текущего биллинга.
      Parameters:
      values -
      Returns:
      Throws:
      BGException
    • getDbInfo

      public DBInfo getDbInfo()
    • linesToString

      protected String linesToString(Element node)
    • getWebService

      protected <K extends javax.xml.ws.Service, S> S getWebService(Class<K> clazz, Class<S> serviceClass) throws BGException
      Throws:
      BGException
    • getWebService

      protected <K extends javax.xml.ws.Service, S> S getWebService(Class<K> clazz, Class<S> serviceClass, int moduleId) throws BGException
      Throws:
      BGException
    • processWebServiceException

      protected void processWebServiceException(Exception e) throws BGException
      Throws:
      BGException
    • readJsonValue

      protected <T> T readJsonValue(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.JavaType valueType) throws BGException
      Throws:
      BGException
    • getWSClient

      public WSClient getWSClient()
    • getWS

      public static <T> T getWS(Class<T> service, User user, String billing) throws BGException
      Throws:
      BGException
    • isSupported

      protected boolean isSupported()
    • getDeletedContractsFromBgOnSConnectCancel

      public Set<Integer> getDeletedContractsFromBgOnSConnectCancel(Set<Integer> contractLinks)