public interface WalletService
| Modifier and Type | Method and Description |
|---|---|
GlobalSettings |
getSettings()
Retrieves global stored settings used for all users.
|
UserSettings |
getUserSettings(String spaceId,
String currentUser)
Retrieves user settings including global setting, network settings and
contract detail.
|
boolean |
isFundRequestSent(String notificationId,
String currentUser)
Get fund request status
|
void |
markFundRequestAsSent(String notificationId,
String currentUser)
Mark a fund request web notification as sent
|
void |
requestFunds(FundsRequest fundsRequest,
String currentUser)
Save funds request and send notifications
|
void |
saveInitialFundsSettings(InitialFundsSettings initialFundsSettings)
Save initial funds
|
void |
saveUserPreferences(String currentUser,
WalletSettings userPreferences)
Save user preferences of Wallet
|
void |
setConfiguredContractDetail(ContractDetail contractDetail)
Sets contract detail object in global settings
|
void saveInitialFundsSettings(InitialFundsSettings initialFundsSettings)
initialFundsSettings - initial funds to saveGlobalSettings getSettings()
GlobalSettings global settings of default watched
blockchain networkUserSettings getUserSettings(String spaceId, String currentUser)
spaceId - space pretty name to include its settingscurrentUser - username to include its preferencesUserSettings user settings with user and space preferences
included into itvoid saveUserPreferences(String currentUser, WalletSettings userPreferences)
currentUser - current user name to save its preferencesuserPreferences - user preferences to savevoid requestFunds(FundsRequest fundsRequest, String currentUser) throws IllegalAccessException
fundsRequest - funds request details to savecurrentUser - username of user sending requestIllegalAccessException - if request sender is not allowed to send
request to receiver walletvoid markFundRequestAsSent(String notificationId, String currentUser) throws IllegalAccessException
notificationId - web notification idcurrentUser - current username that is marking the notification as
sentIllegalAccessException - if current user is not the targetted user of
notificationboolean isFundRequestSent(String notificationId, String currentUser) throws IllegalAccessException
notificationId - web notification idcurrentUser - current usernameIllegalAccessException - if current user is not the targetted user of
notificationvoid setConfiguredContractDetail(ContractDetail contractDetail)
contractDetail - Copyright © 2003–2019 eXo Platform SAS. All rights reserved.