Class SuperUserWalletService
java.lang.Object
dev.getelements.elements.service.blockchain.omni.SuperUserWalletService
- All Implemented Interfaces:
WalletService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWallet(String vaultId, CreateWalletRequest createWalletRequest) Creates a new Wallet.voiddeleteWallet(String walletId) Deletes theWalletwith the supplied wallet ID.voiddeleteWalletFromVault(String walletId, String vaultId) Deletes theWalletwith the supplied id, from the vault.Fetches a specificWalletinstance based on ID or name.getWalletInVault(String walletId, String vaultId) Fetches wallet from the supplied vault.getWallets(int offset, int count, String vaultId, String userId, BlockchainApi protocol, List<BlockchainNetwork> networks) Lists allWalletinstances, specifying a search query.voidsetUserDao(UserDao userDao) voidsetValidationHelper(ValidationHelper validationHelper) voidsetVaultDao(VaultDao vaultDao) voidsetWalletCryptoUtilities(WalletCryptoUtilities walletCryptoUtilities) voidsetWalletDao(WalletDao walletDao) voidsetWalletIdentityFactory(WalletAccountFactory walletAccountFactory) updateWallet(String vaultId, String walletId, UpdateWalletRequest walletUpdateRequest) Updates the suppliedWallet.
-
Constructor Details
-
SuperUserWalletService
public SuperUserWalletService()
-
-
Method Details
-
getWallets
public Pagination<Wallet> getWallets(int offset, int count, String vaultId, String userId, BlockchainApi protocol, List<BlockchainNetwork> networks) Description copied from interface:WalletServiceLists allWalletinstances, specifying a search query.- Specified by:
getWalletsin interfaceWalletService- Parameters:
offset- the offsetcount- the countvaultId-userId- the userId, or nullprotocol- the protocol, or null- Returns:
- a
PaginationofWalletinstances
-
getWallet
Description copied from interface:WalletServiceFetches a specificWalletinstance based on ID or name. If not found, an exception is raised.- Specified by:
getWalletin interfaceWalletService- Parameters:
walletId- the wallet Id or name- Returns:
- the
Wallet, never null
-
getWalletInVault
Description copied from interface:WalletServiceFetches wallet from the supplied vault.- Specified by:
getWalletInVaultin interfaceWalletService- Parameters:
walletId- the wallet idvaultId- the vault id- Returns:
-
updateWallet
public Wallet updateWallet(String vaultId, String walletId, UpdateWalletRequest walletUpdateRequest) Description copied from interface:WalletServiceUpdates the suppliedWallet.- Specified by:
updateWalletin interfaceWalletService- Parameters:
vaultId-walletId- the Id of the wallet to update.walletUpdateRequest- theUpdateWalletRequestwith the information to update- Returns:
- the
Walletas it was changed by the service.
-
createWallet
Description copied from interface:WalletServiceCreates a new Wallet.- Specified by:
createWalletin interfaceWalletService- Parameters:
createWalletRequest- theCreateWalletRequestwith the information to create- Returns:
- the
Walletas it was created by the service.
-
deleteWallet
Description copied from interface:WalletServiceDeletes theWalletwith the supplied wallet ID.- Specified by:
deleteWalletin interfaceWalletService- Parameters:
walletId- the wallet Id.
-
deleteWalletFromVault
Description copied from interface:WalletServiceDeletes theWalletwith the supplied id, from the vault.- Specified by:
deleteWalletFromVaultin interfaceWalletService- Parameters:
walletId- the wallet idvaultId- the vault id
-
getUserDao
-
setUserDao
-
getVaultDao
-
setVaultDao
-
getWalletDao
-
setWalletDao
-
getValidationHelper
-
setValidationHelper
-
getWalletCryptoUtilities
-
setWalletCryptoUtilities
-
getWalletIdentityFactory
-
setWalletIdentityFactory
-