public class CachedAccountStorage extends WalletStorage
| Constructor and Description |
|---|
CachedAccountStorage(org.exoplatform.services.cache.CacheService cacheService,
WalletAccountDAO walletAccountDAO,
WalletPrivateKeyDAO privateKeyDAO,
org.exoplatform.web.security.codec.CodecInitializer codecInitializer) |
| Modifier and Type | Method and Description |
|---|---|
org.exoplatform.addon.wallet.model.Wallet |
getWalletByAddress(String address) |
org.exoplatform.addon.wallet.model.Wallet |
getWalletByIdentityId(long identityId) |
org.exoplatform.addon.wallet.model.Wallet |
removeWallet(long identityId)
Removes a wallet identitied by user/space identity technical id
|
void |
removeWalletPrivateKey(long walletId) |
void |
saveWallet(org.exoplatform.addon.wallet.model.Wallet wallet,
boolean isNew) |
void |
saveWalletPrivateKey(long walletId,
String content) |
getWalletPrivateKey, getWalletsCount, listWalletspublic CachedAccountStorage(org.exoplatform.services.cache.CacheService cacheService,
WalletAccountDAO walletAccountDAO,
WalletPrivateKeyDAO privateKeyDAO,
org.exoplatform.web.security.codec.CodecInitializer codecInitializer)
public org.exoplatform.addon.wallet.model.Wallet getWalletByAddress(String address)
getWalletByAddress in class WalletStorageaddress - wallet addressWallet details identified by addresspublic org.exoplatform.addon.wallet.model.Wallet getWalletByIdentityId(long identityId)
getWalletByIdentityId in class WalletStorageidentityId - user/space technical identty idWallet details for identitypublic void saveWallet(org.exoplatform.addon.wallet.model.Wallet wallet,
boolean isNew)
saveWallet in class WalletStoragewallet - wallet details to saveisNew - whether this is a new wallet association or notpublic org.exoplatform.addon.wallet.model.Wallet removeWallet(long identityId)
WalletStorageremoveWallet in class WalletStorageidentityId - user/space technical identty idWalletpublic void removeWalletPrivateKey(long walletId)
removeWalletPrivateKey in class WalletStoragepublic void saveWalletPrivateKey(long walletId,
String content)
saveWalletPrivateKey in class WalletStorageCopyright © 2003–2019 eXo Platform SAS. All rights reserved.