public interface WalletService
| Modifier and Type | Method and Description |
|---|---|
GlobalSettings |
getSettings()
Retrieves global stored settings used for all users.
|
GlobalSettings |
getSettings(Long networkId)
Retrieves global stored settings.
|
GlobalSettings |
getSettings(Long networkId,
String spaceId,
String currentUser)
Retrieves global stored settings.
|
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 |
saveSettings(GlobalSettings newGlobalSettings)
Save global settings
|
void |
saveSettings(GlobalSettings newGlobalSettings,
Integer dataVersion)
Save global settings with new dataversion
|
void |
saveUserPreferences(String currentUser,
WalletPreferences userPreferences)
Save user preferences of Wallet
|
void saveSettings(GlobalSettings newGlobalSettings)
newGlobalSettings - global settings to savevoid saveSettings(GlobalSettings newGlobalSettings, Integer dataVersion)
newGlobalSettings - global settings to savedataVersion - new data version of global settings to saveGlobalSettings getSettings()
GlobalSettings global settings of default watched
blockchain network without user preferencesGlobalSettings getSettings(Long networkId)
networkId - blockchain network id to retrieve its settingsGlobalSettings global settings of blockchain network id
without user preferencesGlobalSettings getSettings(Long networkId, String spaceId, String currentUser)
networkId - blockchain network id to retrieve its settingsspaceId - space pretty name to include its settingscurrentUser - username to include its preferencesGlobalSettings global settings with user and space
preferences included into itvoid saveUserPreferences(String currentUser, WalletPreferences 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
notificationCopyright © 2003–2019 eXo Platform SAS. All rights reserved.