Class RealizationStorage

java.lang.Object
io.meeds.gamification.storage.RealizationStorage
Direct Known Subclasses:
RealizationCachedStorage

public class RealizationStorage extends Object
  • Constructor Details

  • Method Details

    • getRealizationsByFilter

      public List<RealizationDTO> getRealizationsByFilter(RealizationFilter realizationFilter, int offset, int limit)
    • countRealizationsByFilter

      public int countRealizationsByFilter(RealizationFilter realizationFilter)
    • getRealizationById

      public RealizationDTO getRealizationById(long id)
    • updateRealization

      public RealizationDTO updateRealization(RealizationDTO realization)
    • createRealization

      public RealizationDTO createRealization(RealizationDTO realization)
    • findRealizationsByObjectIdAndObjectType

      public List<RealizationDTO> findRealizationsByObjectIdAndObjectType(String objectId, String objectType)
    • hasPendingRealization

      public boolean hasPendingRealization(long ruleId, String earnerIdentityId)
    • getLeaderboardRankByDates

      public int getLeaderboardRankByDates(IdentityType identityType, long earnerIdentityId, Date fromDate, Date toDate)
    • getLeaderboardRankByDatesAndProgramIds

      public int getLeaderboardRankByDatesAndProgramIds(IdentityType identityType, long earnerIdentityId, Date fromDate, Date toDate, Long... programIds)
    • getLeaderboardRank

      public int getLeaderboardRank(IdentityType identityType, long earnerIdentityId)
    • getLeaderboardRankByProgramIds

      public int getLeaderboardRankByProgramIds(IdentityType identityType, long earnerIdentityId, Long... programIds)
    • getLeaderboardByDates

      public List<StandardLeaderboard> getLeaderboardByDates(Date fromDate, Date toDate, IdentityType identityType, int offset, int limit)
    • getLeaderboard

      public List<StandardLeaderboard> getLeaderboard(IdentityType identityType, int offset, int limit)
    • getLeaderboardByDatesByProgramIds

      public List<StandardLeaderboard> getLeaderboardByDatesByProgramIds(Date fromDate, Date toDate, IdentityType identityType, int offset, int limit, Long... programIds)
    • getLeaderboardByProgramIds

      public List<StandardLeaderboard> getLeaderboardByProgramIds(IdentityType identityType, int offset, int limit, Long... programIds)
    • getScorePerProgramByIdentityId

      public List<ProfileReputation> getScorePerProgramByIdentityId(String earnerIdentityId)
    • getLeaderboardStatsByIdentityIdAndDates

      public List<PiechartLeaderboard> getLeaderboardStatsByIdentityIdAndDates(String earnerIdentityId, Long spaceId, Date startDate, Date endDate)
    • getLeaderboardStatsByIdentityId

      public List<PiechartLeaderboard> getLeaderboardStatsByIdentityId(String earnerIdentityId, Long spaceId)
    • getScoreByIdentityIdAndBetweenDates

      public long getScoreByIdentityIdAndBetweenDates(String earnerIdentityId, Date fromDate, Date toDate, Long... programIds)
    • getScoreByIdentityId

      public long getScoreByIdentityId(String earnerIdentityId)
    • getScoresByIdentityIdsAndBetweenDates

      public Map<Long,Long> getScoresByIdentityIdsAndBetweenDates(List<String> earnersId, Date fromDate, Date toDate)
    • findLastRealizationByRuleIdAndEarnerIdAndReceiverAndObjectId

      public RealizationDTO findLastRealizationByRuleIdAndEarnerIdAndReceiverAndObjectId(long ruleId, String earnerId, String receiverId, String objectId, String objectType)
    • countRealizationsByRuleIdAndEarnerId

      public int countRealizationsByRuleIdAndEarnerId(long earnerIdentityId, long ruleId)
    • countRealizationsInPeriod

      public int countRealizationsInPeriod(long earnerIdentityId, long ruleId, Date sinceDate)
    • getParticipantsBetweenDates

      public List<Long> getParticipantsBetweenDates(Date fromDate, Date toDate)
    • countParticipantsBetweenDates

      public long countParticipantsBetweenDates(Date fromDate, Date toDate)