public class CachedAccountStorage extends AccountStorage implements org.picocontainer.Startable
| Constructor and Description |
|---|
CachedAccountStorage(WalletAccountDAO walletAccountDAO) |
| Modifier and Type | Method and Description |
|---|---|
Wallet |
getWalletByAddress(String address) |
Wallet |
getWalletByIdentityId(long identityId) |
Wallet |
removeWallet(long identityId)
Removes a wallet identitied by user/space identity technical id
|
void |
saveWallet(Wallet wallet,
boolean isNew) |
void |
start() |
void |
stop() |
getWalletsCount, listWalletspublic CachedAccountStorage(WalletAccountDAO walletAccountDAO)
public void start()
start in interface org.picocontainer.Startablepublic Wallet getWalletByAddress(String address)
getWalletByAddress in class AccountStorageaddress - wallet addressWallet details identified by addresspublic Wallet getWalletByIdentityId(long identityId)
getWalletByIdentityId in class AccountStorageidentityId - user/space technical identty idWallet details for identitypublic void saveWallet(Wallet wallet, boolean isNew)
saveWallet in class AccountStoragewallet - wallet details to saveisNew - whether this is a new wallet association or notpublic Wallet removeWallet(long identityId)
AccountStorageremoveWallet in class AccountStorageidentityId - user/space technical identty idWalletpublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2003–2019 eXo Platform SAS. All rights reserved.