public class EthereumWalletAccountService extends Object implements org.exoplatform.addon.ethereum.wallet.service.WalletAccountService
| Constructor and Description |
|---|
EthereumWalletAccountService(AccountStorage walletAccountStorage,
AddressLabelStorage labelStorage) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCanSaveWallet(org.exoplatform.addon.ethereum.wallet.model.Wallet wallet,
org.exoplatform.addon.ethereum.wallet.model.Wallet storedWallet,
String currentUser) |
void |
enableWalletByAddress(String address,
boolean enable,
String currentUser) |
Set<org.exoplatform.addon.ethereum.wallet.model.AddressLabel> |
getAddressesLabelsVisibleBy(String currentUser) |
String |
getPrivateKeyByTypeAndId(String type,
String remoteId,
String currentUser) |
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 |
getWalletByTypeAndId(String type,
String remoteId) |
org.exoplatform.addon.ethereum.wallet.model.Wallet |
getWalletByTypeAndId(String type,
String remoteId,
String currentUser) |
long |
getWalletsCount() |
boolean |
isWalletOwner(org.exoplatform.addon.ethereum.wallet.model.Wallet wallet,
String currentUser) |
Set<org.exoplatform.addon.ethereum.wallet.model.Wallet> |
listWallets() |
void |
removePrivateKeyByTypeAndId(String type,
String remoteId,
String currentUser) |
void |
removeWalletByAddress(String address,
String currentUser) |
org.exoplatform.addon.ethereum.wallet.model.AddressLabel |
saveOrDeleteAddressLabel(org.exoplatform.addon.ethereum.wallet.model.AddressLabel label,
String currentUser) |
void |
savePrivateKeyByTypeAndId(String type,
String remoteId,
String content,
String currentUser) |
void |
saveWalletAddress(org.exoplatform.addon.ethereum.wallet.model.Wallet wallet,
String currentUser,
boolean broadcast) |
void |
setInitializationStatus(String address,
org.exoplatform.addon.ethereum.wallet.model.WalletInitializationState initializationState,
String currentUser) |
public EthereumWalletAccountService(AccountStorage walletAccountStorage, AddressLabelStorage labelStorage)
public Set<org.exoplatform.addon.ethereum.wallet.model.Wallet> listWallets()
listWallets in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServicepublic long getWalletsCount()
getWalletsCount in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServicepublic org.exoplatform.addon.ethereum.wallet.model.Wallet getWalletByIdentityId(long identityId)
getWalletByIdentityId in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServicepublic org.exoplatform.addon.ethereum.wallet.model.Wallet getWalletByTypeAndId(String type, String remoteId, String currentUser)
getWalletByTypeAndId in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServicepublic org.exoplatform.addon.ethereum.wallet.model.Wallet getWalletByTypeAndId(String type, String remoteId)
getWalletByTypeAndId in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServicepublic void savePrivateKeyByTypeAndId(String type, String remoteId, String content, String currentUser) throws IllegalAccessException
savePrivateKeyByTypeAndId in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServiceIllegalAccessExceptionpublic String getPrivateKeyByTypeAndId(String type, String remoteId, String currentUser) throws IllegalAccessException
getPrivateKeyByTypeAndId in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServiceIllegalAccessExceptionpublic void removePrivateKeyByTypeAndId(String type, String remoteId, String currentUser) throws IllegalAccessException
removePrivateKeyByTypeAndId in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServiceIllegalAccessExceptionpublic org.exoplatform.addon.ethereum.wallet.model.Wallet getWalletByAddress(String address)
getWalletByAddress in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServicepublic void saveWalletAddress(org.exoplatform.addon.ethereum.wallet.model.Wallet wallet,
String currentUser,
boolean broadcast)
throws IllegalAccessException
saveWalletAddress in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServiceIllegalAccessExceptionpublic void removeWalletByAddress(String address, String currentUser) throws IllegalAccessException
removeWalletByAddress in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServiceIllegalAccessExceptionpublic void enableWalletByAddress(String address, boolean enable, String currentUser) throws IllegalAccessException
enableWalletByAddress in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServiceIllegalAccessExceptionpublic void setInitializationStatus(String address, org.exoplatform.addon.ethereum.wallet.model.WalletInitializationState initializationState, String currentUser) throws IllegalAccessException
setInitializationStatus in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServiceIllegalAccessExceptionpublic void checkCanSaveWallet(org.exoplatform.addon.ethereum.wallet.model.Wallet wallet,
org.exoplatform.addon.ethereum.wallet.model.Wallet storedWallet,
String currentUser)
throws IllegalAccessException
checkCanSaveWallet in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServiceIllegalAccessExceptionpublic boolean isWalletOwner(org.exoplatform.addon.ethereum.wallet.model.Wallet wallet,
String currentUser)
isWalletOwner in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServicepublic org.exoplatform.addon.ethereum.wallet.model.AddressLabel saveOrDeleteAddressLabel(org.exoplatform.addon.ethereum.wallet.model.AddressLabel label,
String currentUser)
saveOrDeleteAddressLabel in interface org.exoplatform.addon.ethereum.wallet.service.WalletAccountServiceCopyright © 2003–2019 eXo Platform SAS. All rights reserved.