public class AccountServiceImpl extends java.lang.Object implements AccountService
| 构造器和说明 |
|---|
AccountServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
create(java.lang.String ksPassword,
java.lang.String crypto,
java.lang.String info)
Create account.
|
java.lang.String |
createSuper()
Create super account.
|
java.lang.String |
encryptInfo(java.lang.String address,
java.lang.String ksPassword,
java.lang.String info)
Encrypt user info.
|
java.lang.String |
findInfo(java.lang.String address,
java.lang.String ksPassword)
Find account info.
|
com.alibaba.fastjson.JSONObject |
findLatestWithoutKs(java.lang.String address)
Find latest account without key store info.
|
com.alibaba.fastjson.JSONObject |
getAccountStatistic(java.lang.String address)
Get account assets, templates, contracts counts.
|
java.util.List<java.lang.String> |
queryContractNames(java.lang.String address)
Query select account's contract name list.
|
java.util.List<com.alibaba.fastjson.JSONObject> |
queryHistory(java.lang.String address)
Query account history.
|
java.util.List<com.alibaba.fastjson.JSONObject> |
queryLedger(java.lang.String address)
Query account ledger(up to 1000 records).
|
java.util.List<com.alibaba.fastjson.JSONObject> |
queryLedgerHistory(java.lang.String address,
java.lang.String contractName)
Query account ledger history in selected contract.
|
java.util.List<com.alibaba.fastjson.JSONObject> |
queryLedgerHistoryEx(java.lang.String address,
java.lang.String contractName)
Query account ledger history in selected contract with extra info.
|
java.util.List<java.lang.String> |
queryTemplateNames(java.lang.String address)
Query select account's template name list(up to 1000 records).
|
public java.lang.String createSuper()
throws cn.tdchain.cb.exception.BusinessException
AccountServicecreateSuper 在接口中 AccountServicecn.tdchain.cb.exception.BusinessException - business exceptionpublic java.lang.String create(java.lang.String ksPassword,
java.lang.String crypto,
java.lang.String info)
throws cn.tdchain.cb.exception.BusinessException
AccountServicecreate 在接口中 AccountServiceksPassword - key store passwordcrypto - RSA or SMinfo - 用户个人信息 Map对象的json序列化字符串cn.tdchain.cb.exception.BusinessException - business exceptionpublic java.lang.String encryptInfo(java.lang.String address,
java.lang.String ksPassword,
java.lang.String info)
throws cn.tdchain.cb.exception.BusinessException
AccountServiceencryptInfo 在接口中 AccountServiceaddress - account addressksPassword - key store passwordinfo - Stringcn.tdchain.cb.exception.BusinessException - business exceptionpublic com.alibaba.fastjson.JSONObject findLatestWithoutKs(java.lang.String address)
throws cn.tdchain.cb.exception.BusinessException
AccountServicefindLatestWithoutKs 在接口中 AccountServiceaddress - account addresscn.tdchain.cb.exception.BusinessException - business exceptionpublic java.lang.String findInfo(java.lang.String address,
java.lang.String ksPassword)
throws cn.tdchain.cb.exception.BusinessException
AccountServicefindInfo 在接口中 AccountServiceaddress - account addressksPassword - key store passwordcn.tdchain.cb.exception.BusinessException - business exceptionpublic java.util.List<com.alibaba.fastjson.JSONObject> queryHistory(java.lang.String address)
throws cn.tdchain.cb.exception.BusinessException
AccountServicequeryHistory 在接口中 AccountServiceaddress - account addresscn.tdchain.cb.exception.BusinessException - business exceptionpublic java.util.List<java.lang.String> queryContractNames(java.lang.String address)
throws cn.tdchain.cb.exception.BusinessException
AccountServicequeryContractNames 在接口中 AccountServiceaddress - account addresscn.tdchain.cb.exception.BusinessException - business exceptionpublic java.util.List<java.lang.String> queryTemplateNames(java.lang.String address)
throws cn.tdchain.cb.exception.BusinessException
AccountServicequeryTemplateNames 在接口中 AccountServiceaddress - account addresscn.tdchain.cb.exception.BusinessException - business exceptionpublic java.util.List<com.alibaba.fastjson.JSONObject> queryLedger(java.lang.String address)
throws cn.tdchain.cb.exception.BusinessException
AccountServicequeryLedger 在接口中 AccountServiceaddress - account addresscn.tdchain.cb.exception.BusinessException - business exceptionpublic java.util.List<com.alibaba.fastjson.JSONObject> queryLedgerHistory(java.lang.String address,
java.lang.String contractName)
throws cn.tdchain.cb.exception.BusinessException
AccountServicequeryLedgerHistory 在接口中 AccountServiceaddress - account addresscontractName - selected contractcn.tdchain.cb.exception.BusinessException - business exceptionpublic java.util.List<com.alibaba.fastjson.JSONObject> queryLedgerHistoryEx(java.lang.String address,
java.lang.String contractName)
throws cn.tdchain.cb.exception.BusinessException
AccountServicequeryLedgerHistoryEx 在接口中 AccountServiceaddress - account addresscontractName - selected contractcn.tdchain.cb.exception.BusinessException - business exceptionpublic com.alibaba.fastjson.JSONObject getAccountStatistic(java.lang.String address)
throws cn.tdchain.cb.exception.BusinessException
AccountServicegetAccountStatistic 在接口中 AccountServiceaddress - account addresscn.tdchain.cb.exception.BusinessException - business exceptionCopyright © 2019. All Rights Reserved.