public class BillingDAO
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected DBInfo |
dbInfo |
protected ObjectMapper |
jsonMapper |
protected TypeFactory |
jsonTypeFactory |
protected TransferData |
transferData |
protected User |
user |
Constructor and Description |
---|
BillingDAO(User user,
DBInfo dbInfo) |
BillingDAO(User user,
java.lang.String billingId) |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
doRequest(Request req) |
DBInfo |
getDbInfo() |
java.util.Set<java.lang.Integer> |
getDeletedContractsFromBgOnSConnectCancel(java.util.Set<java.lang.Integer> contractLinks) |
protected void |
getPage(Page page,
org.w3c.dom.Element data) |
java.lang.Integer |
getParameterId(java.lang.String values)
Возвращает из сроки вида billingId1:paramId1;billingId2:paramId2 код параметра
для текущего биллинга.
|
protected <K extends javax.xml.ws.Service,S> |
getWebService(java.lang.Class<K> clazz,
java.lang.Class<S> serviceClass) |
protected <K extends javax.xml.ws.Service,S> |
getWebService(java.lang.Class<K> clazz,
java.lang.Class<S> serviceClass,
int moduleId) |
static <T> T |
getWS(java.lang.Class<T> service,
User user,
java.lang.String billing) |
WSClient |
getWSClient() |
protected boolean |
isSupported() |
protected java.lang.String |
linesToString(org.w3c.dom.Element node) |
protected void |
processWebServiceException(java.lang.Exception e) |
protected <T> T |
readJsonValue(JsonParser p,
JavaType valueType) |
protected void |
setPage(Request req,
Page page) |
protected User user
protected DBInfo dbInfo
protected TransferData transferData
protected ObjectMapper jsonMapper
protected TypeFactory jsonTypeFactory
public BillingDAO(User user, java.lang.String billingId) throws BGException
BGException
public BillingDAO(User user, DBInfo dbInfo) throws BGException
BGException
public org.w3c.dom.Document doRequest(Request req) throws BGException
BGException
protected void getPage(Page page, org.w3c.dom.Element data)
public java.lang.Integer getParameterId(java.lang.String values) throws BGException
values
- BGException
public DBInfo getDbInfo()
protected java.lang.String linesToString(org.w3c.dom.Element node)
protected <K extends javax.xml.ws.Service,S> S getWebService(java.lang.Class<K> clazz, java.lang.Class<S> serviceClass) throws BGException
BGException
protected <K extends javax.xml.ws.Service,S> S getWebService(java.lang.Class<K> clazz, java.lang.Class<S> serviceClass, int moduleId) throws BGException
BGException
protected void processWebServiceException(java.lang.Exception e) throws BGException
BGException
protected <T> T readJsonValue(JsonParser p, JavaType valueType) throws BGException
BGException
public WSClient getWSClient()
public static <T> T getWS(java.lang.Class<T> service, User user, java.lang.String billing) throws BGException
BGException
protected boolean isSupported()
public java.util.Set<java.lang.Integer> getDeletedContractsFromBgOnSConnectCancel(java.util.Set<java.lang.Integer> contractLinks)