public class CachedAccountStorage extends WalletStorage
| Constructor and Description |
|---|
CachedAccountStorage(org.exoplatform.services.cache.CacheService cacheService,
WalletAccountDAO walletAccountDAO,
WalletPrivateKeyDAO privateKeyDAO,
WalletBlockchainStateDAO blockchainStateDAO,
org.exoplatform.web.security.codec.CodecInitializer codecInitializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache() |
org.exoplatform.addon.wallet.model.Wallet |
getWalletByAddress(String address,
String contractAddress) |
org.exoplatform.addon.wallet.model.Wallet |
getWalletByIdentityId(long identityId,
String contractAddress) |
org.exoplatform.addon.wallet.model.Wallet |
removeWallet(long identityId)
Removes a wallet identitied by user/space identity technical id
|
void |
removeWalletPrivateKey(long walletId)
Remove Wallet encoded private key by wallet identifier
|
org.exoplatform.addon.wallet.model.Wallet |
saveWallet(org.exoplatform.addon.wallet.model.Wallet wallet,
boolean isNew) |
org.exoplatform.addon.wallet.model.Wallet |
saveWalletBackupState(long identityId,
boolean backupState)
Change wallet backup state
|
void |
saveWalletBlockchainState(org.exoplatform.addon.wallet.model.Wallet wallet,
String contractAddress)
Save wallet state in blockchain
|
void |
saveWalletPrivateKey(long walletId,
String content)
Save wallet private key
|
getWalletPrivateKey, getWalletsCount, listWallets, retrieveWalletBlockchainStatepublic CachedAccountStorage(org.exoplatform.services.cache.CacheService cacheService,
WalletAccountDAO walletAccountDAO,
WalletPrivateKeyDAO privateKeyDAO,
WalletBlockchainStateDAO blockchainStateDAO,
org.exoplatform.web.security.codec.CodecInitializer codecInitializer)
public org.exoplatform.addon.wallet.model.Wallet getWalletByAddress(String address, String contractAddress)
getWalletByAddress in class WalletStorageaddress - wallet addresscontractAddress - contract address to use for wallet blockchain stateWallet details identified by addresspublic org.exoplatform.addon.wallet.model.Wallet getWalletByIdentityId(long identityId,
String contractAddress)
getWalletByIdentityId in class WalletStorageidentityId - user/space technical identty idcontractAddress - contract address to use for wallet blockchain stateWallet details for identitypublic org.exoplatform.addon.wallet.model.Wallet saveWalletBackupState(long identityId,
boolean backupState)
WalletStoragesaveWalletBackupState in class WalletStorageidentityId - user/space technical identty idbackupState - true if backedUp else falseWalletpublic org.exoplatform.addon.wallet.model.Wallet 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 void saveWalletBlockchainState(org.exoplatform.addon.wallet.model.Wallet wallet,
String contractAddress)
WalletStoragesaveWalletBlockchainState in class WalletStoragewallet - wallet to save its statecontractAddress - address of the contract on which the state is
associatedpublic org.exoplatform.addon.wallet.model.Wallet removeWallet(long identityId)
WalletStorageremoveWallet in class WalletStorageidentityId - user/space technical identty idWalletpublic void removeWalletPrivateKey(long walletId)
WalletStorageremoveWalletPrivateKey in class WalletStoragewalletId - wallet unique identifier that is equals to identity IDpublic void saveWalletPrivateKey(long walletId,
String content)
WalletStoragesaveWalletPrivateKey in class WalletStoragewalletId - wallet unique identifier that is equals to identity IDcontent - private key contentpublic void clearCache()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.