Class UserVaultService
java.lang.Object
dev.getelements.elements.service.blockchain.omni.UserVaultService
- All Implemented Interfaces:
VaultService
-
Field Summary
Fields inherited from interface dev.getelements.elements.sdk.service.blockchain.VaultService
DEFAULT_VAULT_ALGORITHM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateVault
(CreateVaultRequest request) Creates a newVault
.void
deleteVault
(String vaultId) Deletes aVault
.getUser()
Gets a specific vault wiht the supplied id.Gets all vaults, optionally filtered by user IDvoid
setSuperUserVaultService
(SuperUserVaultService superUserVaultService) void
void
setVaultDao
(VaultDao vaultDao) updateVault
(String vaultId, UpdateVaultRequest request) Updates an existingVault
.
-
Constructor Details
-
UserVaultService
public UserVaultService()
-
-
Method Details
-
getVaults
Description copied from interface:VaultService
Gets all vaults, optionally filtered by user ID- Specified by:
getVaults
in interfaceVaultService
- Parameters:
offset
- the offsetcount
- the countuserId
- the user id- Returns:
- a
Pagination<Vault>
-
getVault
Description copied from interface:VaultService
Gets a specific vault wiht the supplied id.- Specified by:
getVault
in interfaceVaultService
- Parameters:
vaultId
- the vault's id- Returns:
- the
Vault
-
createVault
Description copied from interface:VaultService
Creates a newVault
.- Specified by:
createVault
in interfaceVaultService
- Parameters:
request
- theCreateWalletRequest
- Returns:
- the
Vault
as was written to the database
-
updateVault
Description copied from interface:VaultService
Updates an existingVault
.- Specified by:
updateVault
in interfaceVaultService
- Parameters:
request
- theCreateWalletRequest
- Returns:
- the
Vault
as was written to the database
-
deleteVault
Description copied from interface:VaultService
Deletes aVault
.- Specified by:
deleteVault
in interfaceVaultService
- Parameters:
vaultId
- the vault's id
-
getUser
-
setUser
-
getVaultDao
-
setVaultDao
-
getSuperUserVaultService
-
setSuperUserVaultService
-