Class WalletRewardReportService

java.lang.Object
org.exoplatform.wallet.reward.service.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 Details

    • WalletRewardReportService

      public WalletRewardReportService(org.exoplatform.wallet.service.WalletAccountService walletAccountService, org.exoplatform.wallet.reward.service.RewardSettingsService rewardSettingsService, org.exoplatform.wallet.reward.service.RewardTeamService rewardTeamService, WalletRewardReportStorage rewardReportStorage)
  • Method Details

    • sendRewards

      public void sendRewards(LocalDate date, String username) throws Exception
      Specified by:
      sendRewards in interface org.exoplatform.wallet.reward.service.RewardReportService
      Throws:
      Exception
    • isRewardSendingInProgress

      public boolean isRewardSendingInProgress()
      Specified by:
      isRewardSendingInProgress in interface org.exoplatform.wallet.reward.service.RewardReportService
    • computeRewards

      public org.exoplatform.wallet.model.reward.RewardReport computeRewards(LocalDate date)
      Specified by:
      computeRewards in interface org.exoplatform.wallet.reward.service.RewardReportService
    • computeRewardsByUser

      public org.exoplatform.wallet.model.reward.RewardReport computeRewardsByUser(LocalDate date, long userIdentityId)
      Specified by:
      computeRewardsByUser in interface org.exoplatform.wallet.reward.service.RewardReportService
    • getRewardReportByPeriodId

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

      public org.exoplatform.wallet.model.reward.RewardReport getRewardReport(LocalDate date)
      Specified by:
      getRewardReport in interface org.exoplatform.wallet.reward.service.RewardReportService
    • getRewardPeriod

      public org.exoplatform.wallet.model.reward.RewardPeriod getRewardPeriod(org.exoplatform.wallet.model.reward.RewardPeriodType periodType, LocalDate date)
      Specified by:
      getRewardPeriod 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
    • findRewardReportPeriods

      public List<org.exoplatform.wallet.model.reward.RewardPeriod> findRewardReportPeriods(int offset, int limit)
      Specified by:
      findRewardReportPeriods 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