public class RuntelManager
extends java.lang.Object
Constructor and Description |
---|
RuntelManager(int moduleId) |
Modifier and Type | Method and Description |
---|---|
int |
appendContract(int customerId,
java.lang.String contractTitle,
java.lang.String pbxDomain,
java.util.Date dateFrom,
java.lang.String status,
java.lang.String email,
int hostId) |
int |
appendContractAnnex(int contractId,
int tariffId,
java.lang.String name,
Period period,
java.lang.String status,
java.util.Map<java.lang.String,java.lang.Integer> services) |
int |
appendContractAnnexRow(int contractAnnexId,
java.lang.String tariffId,
int count) |
int |
appendCustomer(int customerId,
java.lang.String customerTitle,
java.lang.String customerBrand,
java.lang.String city,
java.lang.String status) |
boolean |
deleteContract(int contractId) |
boolean |
deleteContractAnnex(int contractAnnexId) |
boolean |
deleteContractAnnexRow(int contractAnnexRowId) |
boolean |
deleteCustomer(int customerId) |
SearchResult<org.json.JSONObject> |
getContractAnnexList(int contractId,
java.util.Date dateFrom) |
SearchResult<org.json.JSONObject> |
getContractAnnexRowList(int contractAnnexId,
java.util.Date dateFrom) |
SearchResult<org.json.JSONObject> |
getContractList(int customerId,
java.util.Date dateFrom) |
SearchResult<org.json.JSONObject> |
getCustomerList(java.lang.String name,
java.lang.String status) |
static org.json.JSONObject |
getResponse(ru.bitel.bgbilling.modules.runtel.server.servlet.ModuleExecutor.Action action) |
java.lang.String |
getToken() |
boolean |
syncData(java.util.List<RunTelContract> contracts,
java.util.Map<java.lang.Integer,RunTelTariff> tariffs,
java.lang.String token) |
int |
updateContract(int contractId,
java.util.Date dateTo,
java.lang.String status) |
int |
updateContractAnnex(int contractId,
java.util.Date dateTo,
java.lang.String status) |
int |
updateContractAnnexRow(int contractAnnexRowId,
int count) |
int |
updateCustomer(int customerId,
java.lang.String customerTitle) |
public java.lang.String getToken()
public SearchResult<org.json.JSONObject> getCustomerList(java.lang.String name, java.lang.String status)
public int appendCustomer(int customerId, java.lang.String customerTitle, java.lang.String customerBrand, java.lang.String city, java.lang.String status)
public int updateCustomer(int customerId, java.lang.String customerTitle)
public boolean deleteCustomer(int customerId)
public SearchResult<org.json.JSONObject> getContractList(int customerId, java.util.Date dateFrom)
public int appendContract(int customerId, java.lang.String contractTitle, java.lang.String pbxDomain, java.util.Date dateFrom, java.lang.String status, java.lang.String email, int hostId)
public int updateContract(int contractId, java.util.Date dateTo, java.lang.String status)
public boolean deleteContract(int contractId)
public SearchResult<org.json.JSONObject> getContractAnnexList(int contractId, java.util.Date dateFrom)
public int appendContractAnnex(int contractId, int tariffId, java.lang.String name, Period period, java.lang.String status, java.util.Map<java.lang.String,java.lang.Integer> services)
public int updateContractAnnex(int contractId, java.util.Date dateTo, java.lang.String status)
public boolean deleteContractAnnex(int contractAnnexId)
public SearchResult<org.json.JSONObject> getContractAnnexRowList(int contractAnnexId, java.util.Date dateFrom)
public int appendContractAnnexRow(int contractAnnexId, java.lang.String tariffId, int count)
public int updateContractAnnexRow(int contractAnnexRowId, int count)
public boolean deleteContractAnnexRow(int contractAnnexRowId)
public boolean syncData(java.util.List<RunTelContract> contracts, java.util.Map<java.lang.Integer,RunTelTariff> tariffs, java.lang.String token)
public static org.json.JSONObject getResponse(ru.bitel.bgbilling.modules.runtel.server.servlet.ModuleExecutor.Action action)