public class EthereumWalletService extends Object implements org.picocontainer.Startable
| Constructor and Description |
|---|
EthereumWalletService(EthereumWalletContractService contractService,
EthereumWalletAccountService accountService,
org.exoplatform.commons.api.settings.SettingService settingService,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.commons.api.notification.service.storage.WebNotificationStorage webNotificationStorage,
org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLastWatchedBlockNumber(long networkId)
Returns last watched block
|
org.exoplatform.services.listener.ListenerService |
getListenerService() |
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 username)
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)
Request funds
|
void |
saveLastWatchedBlockNumber(long networkId,
long lastWatchedBlockNumber)
Save last watched block
|
void |
saveSettings(GlobalSettings newGlobalSettings)
Save global settings
|
void |
saveSettings(GlobalSettings newGlobalSettings,
Integer dataVersion) |
void |
saveUserPreferences(String userId,
WalletPreferences userPreferences)
Save user preferences of Wallet
|
void |
start() |
void |
stop() |
public EthereumWalletService(EthereumWalletContractService contractService, EthereumWalletAccountService accountService, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.commons.api.notification.service.storage.WebNotificationStorage webNotificationStorage, org.exoplatform.container.xml.InitParams params)
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic void saveSettings(GlobalSettings newGlobalSettings)
newGlobalSettings - public void saveSettings(GlobalSettings newGlobalSettings, Integer dataVersion)
public GlobalSettings getSettings()
public GlobalSettings getSettings(Long networkId)
networkId - public GlobalSettings getSettings(Long networkId, String spaceId, String username) throws IllegalAccessException
networkId - spaceId - username - IllegalAccessExceptionpublic void saveUserPreferences(String userId, WalletPreferences userPreferences)
userPreferences - public long getLastWatchedBlockNumber(long networkId)
networkId - public void saveLastWatchedBlockNumber(long networkId,
long lastWatchedBlockNumber)
networkId - lastWatchedBlockNumber - public void requestFunds(FundsRequest fundsRequest) throws IllegalAccessException
fundsRequest - IllegalAccessExceptionpublic void markFundRequestAsSent(String notificationId, String currentUser) throws IllegalAccessException
notificationId - currentUser - IllegalAccessException - if current user is not the targetted user of
notificationpublic boolean isFundRequestSent(String notificationId, String currentUser) throws IllegalAccessException
notificationId - currentUser - IllegalAccessException - if current user is not the targetted user of
notificationpublic org.exoplatform.services.listener.ListenerService getListenerService()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.