Package io.meeds.wallet.service
Class WalletServiceImpl
java.lang.Object
io.meeds.wallet.service.WalletServiceImpl
- All Implemented Interfaces:
io.meeds.wallet.service.WalletService,org.picocontainer.Startable
public class WalletServiceImpl
extends Object
implements io.meeds.wallet.service.WalletService, org.picocontainer.Startable
A storage service to save/load information used by users and spaces wallets
-
Constructor Summary
ConstructorsConstructorDescriptionWalletServiceImpl(io.meeds.wallet.service.WalletContractService contractService, io.meeds.wallet.service.WalletAccountService accountService, WalletWebSocketService webSocketService, org.exoplatform.commons.api.notification.service.storage.WebNotificationStorage webNotificationStorage, org.exoplatform.commons.api.settings.ExoFeatureService featureService, org.exoplatform.container.PortalContainer container, org.exoplatform.container.xml.InitParams params) -
Method Summary
Modifier and TypeMethodDescriptiondoubleio.meeds.wallet.model.InitialFundsSettingsio.meeds.wallet.model.GlobalSettingsio.meeds.wallet.model.UserSettingsgetUserSettings(String spaceId, String currentUser, boolean isAdministration) booleanbooleanisFundRequestSent(String notificationId, String currentUser) voidmarkFundRequestAsSent(String notificationId, String currentUser) voidrequestFunds(io.meeds.wallet.model.FundsRequest fundsRequest, String currentUser) voidsaveInitialFundsSettings(io.meeds.wallet.model.InitialFundsSettings initialFundsSettings) voidsaveUserPreferences(String currentUser, io.meeds.wallet.model.WalletSettings userPreferences) voidsetConfiguredContractDetail(io.meeds.wallet.model.ContractDetail contractDetail) voidsetGasPrice(double blockchainGasPrice) voidstart()voidstop()
-
Constructor Details
-
WalletServiceImpl
public WalletServiceImpl(io.meeds.wallet.service.WalletContractService contractService, io.meeds.wallet.service.WalletAccountService accountService, WalletWebSocketService webSocketService, org.exoplatform.commons.api.notification.service.storage.WebNotificationStorage webNotificationStorage, org.exoplatform.commons.api.settings.ExoFeatureService featureService, org.exoplatform.container.PortalContainer container, org.exoplatform.container.xml.InitParams params)
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()- Specified by:
stopin interfaceorg.picocontainer.Startable
-
setConfiguredContractDetail
public void setConfiguredContractDetail(io.meeds.wallet.model.ContractDetail contractDetail) - Specified by:
setConfiguredContractDetailin interfaceio.meeds.wallet.service.WalletService
-
getInitialFundsSettings
public io.meeds.wallet.model.InitialFundsSettings getInitialFundsSettings()- Specified by:
getInitialFundsSettingsin interfaceio.meeds.wallet.service.WalletService
-
saveInitialFundsSettings
public void saveInitialFundsSettings(io.meeds.wallet.model.InitialFundsSettings initialFundsSettings) - Specified by:
saveInitialFundsSettingsin interfaceio.meeds.wallet.service.WalletService
-
getSettings
public io.meeds.wallet.model.GlobalSettings getSettings()- Specified by:
getSettingsin interfaceio.meeds.wallet.service.WalletService
-
getUserSettings
public io.meeds.wallet.model.UserSettings getUserSettings(String spaceId, String currentUser, boolean isAdministration) - Specified by:
getUserSettingsin interfaceio.meeds.wallet.service.WalletService
-
saveUserPreferences
public void saveUserPreferences(String currentUser, io.meeds.wallet.model.WalletSettings userPreferences) - Specified by:
saveUserPreferencesin interfaceio.meeds.wallet.service.WalletService
-
requestFunds
public void requestFunds(io.meeds.wallet.model.FundsRequest fundsRequest, String currentUser) throws IllegalAccessException - Specified by:
requestFundsin interfaceio.meeds.wallet.service.WalletService- Throws:
IllegalAccessException
-
markFundRequestAsSent
public void markFundRequestAsSent(String notificationId, String currentUser) throws IllegalAccessException - Specified by:
markFundRequestAsSentin interfaceio.meeds.wallet.service.WalletService- Throws:
IllegalAccessException
-
isFundRequestSent
public boolean isFundRequestSent(String notificationId, String currentUser) throws IllegalAccessException - Specified by:
isFundRequestSentin interfaceio.meeds.wallet.service.WalletService- Throws:
IllegalAccessException
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceio.meeds.wallet.service.WalletService
-
getGasPrice
public double getGasPrice()- Specified by:
getGasPricein interfaceio.meeds.wallet.service.WalletService
-
setGasPrice
public void setGasPrice(double blockchainGasPrice) - Specified by:
setGasPricein interfaceio.meeds.wallet.service.WalletService
-