Class WalletRewardReportService

  • All Implemented Interfaces:
    org.exoplatform.wallet.reward.service.RewardReportService

    public class WalletRewardReportService
    extends Object
    implements org.exoplatform.wallet.reward.service.RewardReportService
    A service to manage reward reports
    • Constructor Detail

      • WalletRewardReportService

        public WalletRewardReportService​(org.exoplatform.wallet.service.WalletAccountService walletAccountService,
                                         org.exoplatform.wallet.reward.service.RewardSettingsService rewardSettingsService,
                                         org.exoplatform.wallet.reward.service.RewardTeamService rewardTeamService,
                                         org.exoplatform.wallet.reward.storage.RewardReportStorage rewardReportStorage)
    • Method Detail

      • sendRewards

        public void sendRewards​(long periodDateInSeconds,
                                String username)
                         throws Exception
        Specified by:
        sendRewards in interface org.exoplatform.wallet.reward.service.RewardReportService
        Throws:
        Exception
      • computeRewards

        public org.exoplatform.wallet.model.reward.RewardReport computeRewards​(long periodDateInSeconds)
        Specified by:
        computeRewards in interface org.exoplatform.wallet.reward.service.RewardReportService
      • getRewardReport

        public org.exoplatform.wallet.model.reward.RewardReport getRewardReport​(long periodTimeInSeconds)
        Specified by:
        getRewardReport in interface org.exoplatform.wallet.reward.service.RewardReportService
      • saveRewardReport

        public void saveRewardReport​(org.exoplatform.wallet.model.reward.RewardReport rewardReport)
        Specified by:
        saveRewardReport in interface org.exoplatform.wallet.reward.service.RewardReportService
      • getRewardPeriodsInProgress

        public List<org.exoplatform.wallet.model.reward.RewardPeriod> getRewardPeriodsInProgress()
        Specified by:
        getRewardPeriodsInProgress in interface org.exoplatform.wallet.reward.service.RewardReportService
      • getRewardPeriodsNotSent

        public List<org.exoplatform.wallet.model.reward.RewardPeriod> getRewardPeriodsNotSent()
        Specified by:
        getRewardPeriodsNotSent in interface org.exoplatform.wallet.reward.service.RewardReportService
      • listRewards

        public List<org.exoplatform.wallet.model.reward.WalletReward> listRewards​(String currentUser,
                                                                                  int limit)
        Specified by:
        listRewards in interface org.exoplatform.wallet.reward.service.RewardReportService
      • countRewards

        public double countRewards​(String currentUser)
        Specified by:
        countRewards in interface org.exoplatform.wallet.reward.service.RewardReportService
      • replaceRewardTransactions

        public void replaceRewardTransactions​(String oldHash,
                                              String newHash)
        Specified by:
        replaceRewardTransactions in interface org.exoplatform.wallet.reward.service.RewardReportService