Class RuntelManager
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.bgbilling.modules.runtel.server.bean.RuntelManager
public class RuntelManager
extends ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintappendContract(int customerId, String contractTitle, String pbxDomain, LocalDate dateFrom, String status, String email, int hostId) intappendContractAnnex(int contractId, int tariffId, String name, Period period, String status, Map<String, Integer> services) intappendContractAnnexRow(int contractAnnexId, String tariffId, int count) intappendCustomer(int customerId, String customerTitle, String customerBrand, String city, String status) booleandeleteContract(int contractId) booleandeleteContractAnnex(int contractAnnexId) booleandeleteContractAnnexRow(int contractAnnexRowId) booleandeleteCustomer(int customerId) SearchResult<org.json.JSONObject> getContractAnnexList(int contractId, LocalDate dateFrom) SearchResult<org.json.JSONObject> getContractAnnexRowList(int contractAnnexId, LocalDate dateFrom) SearchResult<org.json.JSONObject> getContractList(int customerId, LocalDate dateFrom) SearchResult<org.json.JSONObject> getCustomerList(String name, String status) static org.json.JSONObjectgetResponse(ru.bitel.bgbilling.modules.runtel.server.servlet.ModuleExecutor.Action action) getToken()voidsyncData(Connection con) booleansyncData(List<RunTelContract> contracts, Map<Integer, RunTelTariff> tariffs, String token) intupdateContract(int contractId, LocalDate dateTo, String status) intupdateContractAnnex(int contractId, LocalDate dateTo, String status) intupdateContractAnnexRow(int contractAnnexRowId, int count) intupdateCustomer(int customerId, String customerTitle) Methods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError, warn
-
Constructor Details
-
RuntelManager
public RuntelManager(int moduleId)
-
-
Method Details
-
getToken
-
getCustomerList
-
appendCustomer
-
updateCustomer
-
deleteCustomer
public boolean deleteCustomer(int customerId) -
getContractList
-
appendContract
-
updateContract
-
deleteContract
public boolean deleteContract(int contractId) -
getContractAnnexList
-
appendContractAnnex
-
updateContractAnnex
-
deleteContractAnnex
public boolean deleteContractAnnex(int contractAnnexId) -
getContractAnnexRowList
public SearchResult<org.json.JSONObject> getContractAnnexRowList(int contractAnnexId, LocalDate dateFrom) -
appendContractAnnexRow
-
updateContractAnnexRow
public int updateContractAnnexRow(int contractAnnexRowId, int count) -
deleteContractAnnexRow
public boolean deleteContractAnnexRow(int contractAnnexRowId) -
syncData
public boolean syncData(List<RunTelContract> contracts, Map<Integer, RunTelTariff> tariffs, String token) -
getResponse
public static org.json.JSONObject getResponse(ru.bitel.bgbilling.modules.runtel.server.servlet.ModuleExecutor.Action action) -
syncData
-