public class CachedAccountStorage extends AccountStorage
| 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.ethereum.wallet.model.Wallet |
getWalletByAddress(String address) |
org.exoplatform.addon.ethereum.wallet.model.Wallet |
getWalletByIdentityId(long identityId) |
org.exoplatform.addon.ethereum.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.ethereum.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.ethereum.wallet.model.Wallet getWalletByAddress(String address)
getWalletByAddress in class AccountStorageaddress - wallet addressWallet details identified by addresspublic org.exoplatform.addon.ethereum.wallet.model.Wallet getWalletByIdentityId(long identityId)
getWalletByIdentityId in class AccountStorageidentityId - user/space technical identty idWallet details for identitypublic void saveWallet(org.exoplatform.addon.ethereum.wallet.model.Wallet wallet,
boolean isNew)
saveWallet in class AccountStoragewallet - wallet details to saveisNew - whether this is a new wallet association or notpublic org.exoplatform.addon.ethereum.wallet.model.Wallet removeWallet(long identityId)
AccountStorageremoveWallet in class AccountStorageidentityId - user/space technical identty idWalletpublic void removeWalletPrivateKey(long walletId)
removeWalletPrivateKey in class AccountStoragepublic void saveWalletPrivateKey(long walletId,
String content)
saveWalletPrivateKey in class AccountStorageCopyright © 2003–2019 eXo Platform SAS. All rights reserved.