Class LeaderboardBuilder

java.lang.Object
io.meeds.gamification.rest.builder.LeaderboardBuilder

public class LeaderboardBuilder extends Object
  • Method Details

    • buildLeaderboardInfos

      public static List<LeaderboardInfo> buildLeaderboardInfos(RealizationService realizationService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, int offset, List<StandardLeaderboard> standardLeaderboards, IdentityType identityType, Long identityId, Long programId, String period, boolean isAnonymous)
    • buildPiechartLeaderboards

      public static List<PiechartLeaderboard> buildPiechartLeaderboards(ProgramService programService, io.meeds.social.translation.service.TranslationService translationService, List<PiechartLeaderboard> userStats, String currentUser, Locale locale)
    • buildRank

      public static LeaderboardInfo buildRank(RealizationService realizationService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, List<LeaderboardInfo> leaderboardList, String period, Long programId, long identityId, boolean isAnonymous)
    • getCurrentPeriodStartDate

      public static Date getCurrentPeriodStartDate(String period)
    • toLeaderboardInfo

      public static LeaderboardInfo toLeaderboardInfo(org.exoplatform.social.core.space.spi.SpaceService spaceService, StandardLeaderboard element, org.exoplatform.social.core.identity.model.Identity identity, boolean isAnonymous, int index)