Class WalletServiceImpl

  • All Implemented Interfaces:
    org.exoplatform.wallet.service.WalletService, org.picocontainer.Startable

    public class WalletServiceImpl
    extends Object
    implements org.exoplatform.wallet.service.WalletService, org.picocontainer.Startable
    A storage service to save/load information used by users and spaces wallets
    • Constructor Detail

      • WalletServiceImpl

        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)
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface org.picocontainer.Startable
      • stop

        public void stop()
        Specified by:
        stop in interface org.picocontainer.Startable
      • setConfiguredContractDetail

        public void setConfiguredContractDetail​(org.exoplatform.wallet.model.ContractDetail contractDetail)
        Specified by:
        setConfiguredContractDetail in interface org.exoplatform.wallet.service.WalletService
      • getInitialFundsSettings

        public org.exoplatform.wallet.model.settings.InitialFundsSettings getInitialFundsSettings()
        Specified by:
        getInitialFundsSettings in interface org.exoplatform.wallet.service.WalletService
      • saveInitialFundsSettings

        public void saveInitialFundsSettings​(org.exoplatform.wallet.model.settings.InitialFundsSettings initialFundsSettings)
        Specified by:
        saveInitialFundsSettings in interface org.exoplatform.wallet.service.WalletService
      • getSettings

        public org.exoplatform.wallet.model.settings.GlobalSettings getSettings()
        Specified by:
        getSettings in interface org.exoplatform.wallet.service.WalletService
      • getUserSettings

        public org.exoplatform.wallet.model.settings.UserSettings getUserSettings​(String spaceId,
                                                                                  String currentUser,
                                                                                  boolean isAdministration)
        Specified by:
        getUserSettings in interface org.exoplatform.wallet.service.WalletService
      • saveUserPreferences

        public void saveUserPreferences​(String currentUser,
                                        org.exoplatform.wallet.model.settings.WalletSettings userPreferences)
        Specified by:
        saveUserPreferences in interface org.exoplatform.wallet.service.WalletService
      • requestFunds

        public void requestFunds​(org.exoplatform.wallet.model.transaction.FundsRequest fundsRequest,
                                 String currentUser)
                          throws IllegalAccessException
        Specified by:
        requestFunds in interface org.exoplatform.wallet.service.WalletService
        Throws:
        IllegalAccessException
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface org.exoplatform.wallet.service.WalletService
      • isUseDynamicGasPrice

        public boolean isUseDynamicGasPrice()
        Specified by:
        isUseDynamicGasPrice in interface org.exoplatform.wallet.service.WalletService
      • getDynamicGasPrice

        public long getDynamicGasPrice()
        Specified by:
        getDynamicGasPrice in interface org.exoplatform.wallet.service.WalletService
      • setDynamicGasPrice

        public void setDynamicGasPrice​(long blockchainGasPrice)
        Specified by:
        setDynamicGasPrice in interface org.exoplatform.wallet.service.WalletService