public class EthereumWalletService extends Object implements org.exoplatform.addon.ethereum.wallet.service.WalletService, org.picocontainer.Startable
| Constructor and Description |
|---|
EthereumWalletService(EthereumClientConnector clientConnector,
org.exoplatform.addon.ethereum.wallet.service.WalletContractService contractService,
org.exoplatform.addon.ethereum.wallet.service.WalletAccountService 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.PortalContainer container,
org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
org.exoplatform.addon.ethereum.wallet.model.GlobalSettings |
getSettings() |
org.exoplatform.addon.ethereum.wallet.model.GlobalSettings |
getSettings(Long networkId) |
org.exoplatform.addon.ethereum.wallet.model.GlobalSettings |
getSettings(Long networkId,
String spaceId,
String currentUser) |
boolean |
isFundRequestSent(String notificationId,
String currentUser) |
void |
markFundRequestAsSent(String notificationId,
String currentUser) |
void |
requestFunds(org.exoplatform.addon.ethereum.wallet.model.FundsRequest fundsRequest,
String currentUser) |
void |
saveSettings(org.exoplatform.addon.ethereum.wallet.model.GlobalSettings newGlobalSettings) |
void |
saveSettings(org.exoplatform.addon.ethereum.wallet.model.GlobalSettings newGlobalSettings,
Integer dataVersion) |
void |
saveUserPreferences(String currentUser,
org.exoplatform.addon.ethereum.wallet.model.WalletPreferences userPreferences) |
void |
start() |
void |
stop() |
public EthereumWalletService(EthereumClientConnector clientConnector, org.exoplatform.addon.ethereum.wallet.service.WalletContractService contractService, org.exoplatform.addon.ethereum.wallet.service.WalletAccountService 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.PortalContainer container, 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(org.exoplatform.addon.ethereum.wallet.model.GlobalSettings newGlobalSettings)
saveSettings in interface org.exoplatform.addon.ethereum.wallet.service.WalletServicepublic void saveSettings(org.exoplatform.addon.ethereum.wallet.model.GlobalSettings newGlobalSettings,
Integer dataVersion)
saveSettings in interface org.exoplatform.addon.ethereum.wallet.service.WalletServicepublic org.exoplatform.addon.ethereum.wallet.model.GlobalSettings getSettings()
getSettings in interface org.exoplatform.addon.ethereum.wallet.service.WalletServicepublic org.exoplatform.addon.ethereum.wallet.model.GlobalSettings getSettings(Long networkId)
getSettings in interface org.exoplatform.addon.ethereum.wallet.service.WalletServicepublic org.exoplatform.addon.ethereum.wallet.model.GlobalSettings getSettings(Long networkId, String spaceId, String currentUser)
getSettings in interface org.exoplatform.addon.ethereum.wallet.service.WalletServicepublic void saveUserPreferences(String currentUser, org.exoplatform.addon.ethereum.wallet.model.WalletPreferences userPreferences)
saveUserPreferences in interface org.exoplatform.addon.ethereum.wallet.service.WalletServicepublic void requestFunds(org.exoplatform.addon.ethereum.wallet.model.FundsRequest fundsRequest,
String currentUser)
throws IllegalAccessException
requestFunds in interface org.exoplatform.addon.ethereum.wallet.service.WalletServiceIllegalAccessExceptionpublic void markFundRequestAsSent(String notificationId, String currentUser) throws IllegalAccessException
markFundRequestAsSent in interface org.exoplatform.addon.ethereum.wallet.service.WalletServiceIllegalAccessExceptionpublic boolean isFundRequestSent(String notificationId, String currentUser) throws IllegalAccessException
isFundRequestSent in interface org.exoplatform.addon.ethereum.wallet.service.WalletServiceIllegalAccessExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.