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
BGExceptionpublic BillingDAO(User user, DBInfo dbInfo) throws BGException
BGExceptionpublic org.w3c.dom.Document doRequest(Request req) throws BGException
BGExceptionprotected void getPage(Page page, org.w3c.dom.Element data)
public java.lang.Integer getParameterId(java.lang.String values)
throws BGException
values - BGExceptionpublic 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
BGExceptionprotected <K extends javax.xml.ws.Service,S> S getWebService(java.lang.Class<K> clazz,
java.lang.Class<S> serviceClass,
int moduleId)
throws BGException
BGExceptionprotected void processWebServiceException(java.lang.Exception e)
throws BGException
BGExceptionprotected <T> T readJsonValue(JsonParser p,
JavaType valueType)
throws BGException
BGExceptionpublic WSClient getWSClient()
public static <T> T getWS(java.lang.Class<T> service,
User user,
java.lang.String billing)
throws BGException
BGExceptionprotected boolean isSupported()
public java.util.Set<java.lang.Integer> getDeletedContractsFromBgOnSConnectCancel(java.util.Set<java.lang.Integer> contractLinks)