public class WalletServiceImpl extends Object implements org.exoplatform.wallet.service.WalletService, org.picocontainer.Startable
| Constructor and Description |
|---|
WalletServiceImpl(org.exoplatform.wallet.service.WalletContractService contractService,
org.exoplatform.wallet.service.WalletAccountService accountService,
WalletWebSocketService webSocketService,
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 |
|---|---|
long |
getDynamicGasPrice() |
org.exoplatform.wallet.model.settings.InitialFundsSettings |
getInitialFundsSettings() |
org.exoplatform.wallet.model.settings.GlobalSettings |
getSettings() |
org.exoplatform.wallet.model.settings.UserSettings |
getUserSettings(String spaceId,
String currentUser,
boolean isAdministration) |
boolean |
isEnabled() |
boolean |
isFundRequestSent(String notificationId,
String currentUser) |
boolean |
isUseDynamicGasPrice() |
void |
markFundRequestAsSent(String notificationId,
String currentUser) |
void |
requestFunds(org.exoplatform.wallet.model.transaction.FundsRequest fundsRequest,
String currentUser) |
void |
saveInitialFundsSettings(org.exoplatform.wallet.model.settings.InitialFundsSettings initialFundsSettings) |
void |
saveUserPreferences(String currentUser,
org.exoplatform.wallet.model.settings.WalletSettings userPreferences) |
void |
setConfiguredContractDetail(org.exoplatform.wallet.model.ContractDetail contractDetail) |
void |
setDynamicGasPrice(long blockchainGasPrice) |
void |
start() |
void |
stop() |
public WalletServiceImpl(org.exoplatform.wallet.service.WalletContractService contractService,
org.exoplatform.wallet.service.WalletAccountService accountService,
WalletWebSocketService webSocketService,
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 setConfiguredContractDetail(org.exoplatform.wallet.model.ContractDetail contractDetail)
setConfiguredContractDetail in interface org.exoplatform.wallet.service.WalletServicepublic org.exoplatform.wallet.model.settings.InitialFundsSettings getInitialFundsSettings()
getInitialFundsSettings in interface org.exoplatform.wallet.service.WalletServicepublic void saveInitialFundsSettings(org.exoplatform.wallet.model.settings.InitialFundsSettings initialFundsSettings)
saveInitialFundsSettings in interface org.exoplatform.wallet.service.WalletServicepublic org.exoplatform.wallet.model.settings.GlobalSettings getSettings()
getSettings in interface org.exoplatform.wallet.service.WalletServicepublic org.exoplatform.wallet.model.settings.UserSettings getUserSettings(String spaceId, String currentUser, boolean isAdministration)
getUserSettings in interface org.exoplatform.wallet.service.WalletServicepublic void saveUserPreferences(String currentUser, org.exoplatform.wallet.model.settings.WalletSettings userPreferences)
saveUserPreferences in interface org.exoplatform.wallet.service.WalletServicepublic void requestFunds(org.exoplatform.wallet.model.transaction.FundsRequest fundsRequest,
String currentUser)
throws IllegalAccessException
requestFunds in interface org.exoplatform.wallet.service.WalletServiceIllegalAccessExceptionpublic void markFundRequestAsSent(String notificationId, String currentUser) throws IllegalAccessException
markFundRequestAsSent in interface org.exoplatform.wallet.service.WalletServiceIllegalAccessExceptionpublic boolean isFundRequestSent(String notificationId, String currentUser) throws IllegalAccessException
isFundRequestSent in interface org.exoplatform.wallet.service.WalletServiceIllegalAccessExceptionpublic boolean isEnabled()
isEnabled in interface org.exoplatform.wallet.service.WalletServicepublic boolean isUseDynamicGasPrice()
isUseDynamicGasPrice in interface org.exoplatform.wallet.service.WalletServicepublic long getDynamicGasPrice()
getDynamicGasPrice in interface org.exoplatform.wallet.service.WalletServicepublic void setDynamicGasPrice(long blockchainGasPrice)
setDynamicGasPrice in interface org.exoplatform.wallet.service.WalletServiceCopyright © 2003–2019 eXo Platform SAS. All rights reserved.