Package io.meeds.wallet.service
Class WalletAccountServiceImpl
java.lang.Object
io.meeds.wallet.service.WalletAccountServiceImpl
- All Implemented Interfaces:
io.meeds.wallet.service.WalletAccountService,io.meeds.wallet.statistic.ExoWalletStatisticService
public class WalletAccountServiceImpl
extends Object
implements io.meeds.wallet.service.WalletAccountService, io.meeds.wallet.statistic.ExoWalletStatisticService
-
Constructor Summary
ConstructorsConstructorDescriptionWalletAccountServiceImpl(WalletStorage walletAccountStorage, AddressLabelStorage labelStorage, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams params) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAdminAccount(String privateKey, String currentUser) io.meeds.wallet.model.WalletcreateWalletInstance(io.meeds.wallet.model.WalletProvider provider, String address, long identityId) booleanenableWalletByAddress(String address, boolean enable, String currentUser) Set<io.meeds.wallet.model.WalletAddressLabel> getAddressesLabelsVisibleBy(String currentUser) io.meeds.wallet.model.WalletgetPrivateKeyByTypeAndId(String type, String remoteId) getPrivateKeyByTypeAndId(String type, String remoteId, String currentUser) getStatisticParameters(String operation, Object result, Object... methodArgs) io.meeds.wallet.model.WalletgetWalletByAddress(String address) io.meeds.wallet.model.WalletgetWalletByAddress(String address, String currentUser) io.meeds.wallet.model.WalletgetWalletByIdentityId(long identityId) io.meeds.wallet.model.WalletgetWalletByTypeAndId(String type, String remoteId) io.meeds.wallet.model.WalletgetWalletByTypeAndId(String type, String remoteId, String currentUser) longbooleanbooleanisWalletOwner(io.meeds.wallet.model.Wallet wallet, String currentUser) Set<io.meeds.wallet.model.Wallet> Set<io.meeds.wallet.model.Wallet> listWalletsByIdentityIds(List<Long> identityIds) voidrefreshWalletFromBlockchain(io.meeds.wallet.model.Wallet wallet, io.meeds.wallet.model.ContractDetail contractDetail, Map<String, Set<String>> walletsModifications) voidrefreshWalletsFromBlockchain(Map<String, Set<String>> walletsModifications) voidremovePrivateKeyByTypeAndId(String type, String remoteId, String currentUser) voidremoveWalletByAddress(String address, String currentUser) voidremoveWalletByTypeAndId(String type, String remoteId, String currentUser) voidretrieveWalletBlockchainState(io.meeds.wallet.model.Wallet wallet) io.meeds.wallet.model.WalletAddressLabelsaveOrDeleteAddressLabel(io.meeds.wallet.model.WalletAddressLabel label, String currentUser) voidsavePrivateKeyByTypeAndId(String type, String remoteId, String content, String currentUser) io.meeds.wallet.model.WalletsaveWallet(io.meeds.wallet.model.Wallet wallet, boolean isNew) voidsaveWalletAddress(io.meeds.wallet.model.Wallet wallet, String currentUser) io.meeds.wallet.model.WalletsaveWalletBackupState(String currentUser, long identityId, boolean backupState) voidsaveWalletBlockchainState(io.meeds.wallet.model.Wallet wallet, String contractAddress) voidsetInitializationStatus(String address, io.meeds.wallet.model.WalletState initializationState) voidsetInitializationStatus(String address, io.meeds.wallet.model.WalletState initializationState, String currentUser) voidsetListenerService(org.exoplatform.services.listener.ListenerService listenerService) voidsetTokenAdminService(io.meeds.wallet.service.WalletTokenAdminService tokenAdminService) voidswitchToInternalWallet(long identityId) voidswitchWalletProvider(long identityId, io.meeds.wallet.model.WalletProvider provider, String newAddress, String rawMessage, String signedMessage)
-
Constructor Details
-
WalletAccountServiceImpl
public WalletAccountServiceImpl(WalletStorage walletAccountStorage, AddressLabelStorage labelStorage, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams params)
-
-
Method Details
-
listWallets
- Specified by:
listWalletsin interfaceio.meeds.wallet.service.WalletAccountService
-
listWalletsByIdentityIds
- Specified by:
listWalletsByIdentityIdsin interfaceio.meeds.wallet.service.WalletAccountService
-
refreshWalletsFromBlockchain
- Specified by:
refreshWalletsFromBlockchainin interfaceio.meeds.wallet.service.WalletAccountService
-
refreshWalletFromBlockchain
public void refreshWalletFromBlockchain(io.meeds.wallet.model.Wallet wallet, io.meeds.wallet.model.ContractDetail contractDetail, Map<String, Set<String>> walletsModifications) - Specified by:
refreshWalletFromBlockchainin interfaceio.meeds.wallet.service.WalletAccountService
-
getWalletsCount
public long getWalletsCount()- Specified by:
getWalletsCountin interfaceio.meeds.wallet.service.WalletAccountService
-
getWalletByIdentityId
public io.meeds.wallet.model.Wallet getWalletByIdentityId(long identityId) - Specified by:
getWalletByIdentityIdin interfaceio.meeds.wallet.service.WalletAccountService
-
retrieveWalletBlockchainState
public void retrieveWalletBlockchainState(io.meeds.wallet.model.Wallet wallet) - Specified by:
retrieveWalletBlockchainStatein interfaceio.meeds.wallet.service.WalletAccountService
-
getWalletByTypeAndId
public io.meeds.wallet.model.Wallet getWalletByTypeAndId(String type, String remoteId, String currentUser) - Specified by:
getWalletByTypeAndIdin interfaceio.meeds.wallet.service.WalletAccountService
-
getWalletByTypeAndId
- Specified by:
getWalletByTypeAndIdin interfaceio.meeds.wallet.service.WalletAccountService
-
getAdminWallet
public io.meeds.wallet.model.Wallet getAdminWallet()- Specified by:
getAdminWalletin interfaceio.meeds.wallet.service.WalletAccountService
-
savePrivateKeyByTypeAndId
public void savePrivateKeyByTypeAndId(String type, String remoteId, String content, String currentUser) throws IllegalAccessException - Specified by:
savePrivateKeyByTypeAndIdin interfaceio.meeds.wallet.service.WalletAccountService- Throws:
IllegalAccessException
-
getPrivateKeyByTypeAndId
public String getPrivateKeyByTypeAndId(String type, String remoteId, String currentUser) throws IllegalAccessException - Specified by:
getPrivateKeyByTypeAndIdin interfaceio.meeds.wallet.service.WalletAccountService- Throws:
IllegalAccessException
-
getPrivateKeyByTypeAndId
- Specified by:
getPrivateKeyByTypeAndIdin interfaceio.meeds.wallet.service.WalletAccountService
-
removePrivateKeyByTypeAndId
public void removePrivateKeyByTypeAndId(String type, String remoteId, String currentUser) throws IllegalAccessException - Specified by:
removePrivateKeyByTypeAndIdin interfaceio.meeds.wallet.service.WalletAccountService- Throws:
IllegalAccessException
-
getWalletByAddress
- Specified by:
getWalletByAddressin interfaceio.meeds.wallet.service.WalletAccountService
-
getWalletByAddress
- Specified by:
getWalletByAddressin interfaceio.meeds.wallet.service.WalletAccountService
-
createAdminAccount
- Specified by:
createAdminAccountin interfaceio.meeds.wallet.service.WalletAccountService- Throws:
IllegalAccessException
-
saveWalletBlockchainState
- Specified by:
saveWalletBlockchainStatein interfaceio.meeds.wallet.service.WalletAccountService
-
saveWalletBackupState
public io.meeds.wallet.model.Wallet saveWalletBackupState(String currentUser, long identityId, boolean backupState) throws IllegalAccessException - Specified by:
saveWalletBackupStatein interfaceio.meeds.wallet.service.WalletAccountService- Throws:
IllegalAccessException
-
saveWalletAddress
public void saveWalletAddress(io.meeds.wallet.model.Wallet wallet, String currentUser) throws IllegalAccessException - Specified by:
saveWalletAddressin interfaceio.meeds.wallet.service.WalletAccountService- Throws:
IllegalAccessException
-
saveWallet
public io.meeds.wallet.model.Wallet saveWallet(io.meeds.wallet.model.Wallet wallet, boolean isNew) - Specified by:
saveWalletin interfaceio.meeds.wallet.service.WalletAccountService
-
switchToInternalWallet
public void switchToInternalWallet(long identityId) - Specified by:
switchToInternalWalletin interfaceio.meeds.wallet.service.WalletAccountService
-
switchWalletProvider
public void switchWalletProvider(long identityId, io.meeds.wallet.model.WalletProvider provider, String newAddress, String rawMessage, String signedMessage) - Specified by:
switchWalletProviderin interfaceio.meeds.wallet.service.WalletAccountService
-
createWalletInstance
public io.meeds.wallet.model.Wallet createWalletInstance(io.meeds.wallet.model.WalletProvider provider, String address, long identityId) - Specified by:
createWalletInstancein interfaceio.meeds.wallet.service.WalletAccountService
-
removeWalletByAddress
- Specified by:
removeWalletByAddressin interfaceio.meeds.wallet.service.WalletAccountService- Throws:
IllegalAccessException
-
removeWalletByTypeAndId
public void removeWalletByTypeAndId(String type, String remoteId, String currentUser) throws IllegalAccessException - Specified by:
removeWalletByTypeAndIdin interfaceio.meeds.wallet.service.WalletAccountService- Throws:
IllegalAccessException
-
enableWalletByAddress
public boolean enableWalletByAddress(String address, boolean enable, String currentUser) throws IllegalAccessException - Specified by:
enableWalletByAddressin interfaceio.meeds.wallet.service.WalletAccountService- Throws:
IllegalAccessException
-
setInitializationStatus
public void setInitializationStatus(String address, io.meeds.wallet.model.WalletState initializationState, String currentUser) throws IllegalAccessException - Specified by:
setInitializationStatusin interfaceio.meeds.wallet.service.WalletAccountService- Throws:
IllegalAccessException
-
setInitializationStatus
public void setInitializationStatus(String address, io.meeds.wallet.model.WalletState initializationState) - Specified by:
setInitializationStatusin interfaceio.meeds.wallet.service.WalletAccountService
-
isWalletOwner
- Specified by:
isWalletOwnerin interfaceio.meeds.wallet.service.WalletAccountService
-
saveOrDeleteAddressLabel
public io.meeds.wallet.model.WalletAddressLabel saveOrDeleteAddressLabel(io.meeds.wallet.model.WalletAddressLabel label, String currentUser) - Specified by:
saveOrDeleteAddressLabelin interfaceio.meeds.wallet.service.WalletAccountService
-
getAddressesLabelsVisibleBy
public Set<io.meeds.wallet.model.WalletAddressLabel> getAddressesLabelsVisibleBy(String currentUser) - Specified by:
getAddressesLabelsVisibleByin interfaceio.meeds.wallet.service.WalletAccountService
-
getAdminAccountPassword
- Specified by:
getAdminAccountPasswordin interfaceio.meeds.wallet.service.WalletAccountService
-
getStatisticParameters
public Map<String,Object> getStatisticParameters(String operation, Object result, Object... methodArgs) - Specified by:
getStatisticParametersin interfaceio.meeds.wallet.statistic.ExoWalletStatisticService
-
isAdminAccountEnabled
public boolean isAdminAccountEnabled()- Specified by:
isAdminAccountEnabledin interfaceio.meeds.wallet.service.WalletAccountService
-
setTokenAdminService
public void setTokenAdminService(io.meeds.wallet.service.WalletTokenAdminService tokenAdminService) -
setListenerService
public void setListenerService(org.exoplatform.services.listener.ListenerService listenerService)
-