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.void
deleteWallet
(String walletId) Deletes theWallet
with the supplied wallet ID.void
deleteWalletFromVault
(String walletId, String vaultId) Deletes theWallet
with the supplied id, from the vault.Fetches a specificWallet
instance 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 allWallet
instances, specifying a search query.void
setUserDao
(UserDao userDao) void
setValidationHelper
(ValidationHelper validationHelper) void
setVaultDao
(VaultDao vaultDao) void
setWalletCryptoUtilities
(WalletCryptoUtilities walletCryptoUtilities) void
setWalletDao
(WalletDao walletDao) void
setWalletIdentityFactory
(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:WalletService
Lists allWallet
instances, specifying a search query.- Specified by:
getWallets
in interfaceWalletService
- Parameters:
offset
- the offsetcount
- the countvaultId
-userId
- the userId, or nullprotocol
- the protocol, or null- Returns:
- a
Pagination
ofWallet
instances
-
getWallet
Description copied from interface:WalletService
Fetches a specificWallet
instance based on ID or name. If not found, an exception is raised.- Specified by:
getWallet
in interfaceWalletService
- Parameters:
walletId
- the wallet Id or name- Returns:
- the
Wallet
, never null
-
getWalletInVault
Description copied from interface:WalletService
Fetches wallet from the supplied vault.- Specified by:
getWalletInVault
in interfaceWalletService
- Parameters:
walletId
- the wallet idvaultId
- the vault id- Returns:
-
updateWallet
public Wallet updateWallet(String vaultId, String walletId, UpdateWalletRequest walletUpdateRequest) Description copied from interface:WalletService
Updates the suppliedWallet
.- Specified by:
updateWallet
in interfaceWalletService
- Parameters:
vaultId
-walletId
- the Id of the wallet to update.walletUpdateRequest
- theUpdateWalletRequest
with the information to update- Returns:
- the
Wallet
as it was changed by the service.
-
createWallet
Description copied from interface:WalletService
Creates a new Wallet.- Specified by:
createWallet
in interfaceWalletService
- Parameters:
createWalletRequest
- theCreateWalletRequest
with the information to create- Returns:
- the
Wallet
as it was created by the service.
-
deleteWallet
Description copied from interface:WalletService
Deletes theWallet
with the supplied wallet ID.- Specified by:
deleteWallet
in interfaceWalletService
- Parameters:
walletId
- the wallet Id.
-
deleteWalletFromVault
Description copied from interface:WalletService
Deletes theWallet
with the supplied id, from the vault.- Specified by:
deleteWalletFromVault
in interfaceWalletService
- Parameters:
walletId
- the wallet idvaultId
- the vault id
-
getUserDao
-
setUserDao
-
getVaultDao
-
setVaultDao
-
getWalletDao
-
setWalletDao
-
getValidationHelper
-
setValidationHelper
-
getWalletCryptoUtilities
-
setWalletCryptoUtilities
-
getWalletIdentityFactory
-
setWalletIdentityFactory
-