Class LeaderboardBuilder
java.lang.Object
io.meeds.gamification.rest.builder.LeaderboardBuilder
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 spaceId, Long programId, String period, long dateInSeconds, boolean isAnonymous) static List<PiechartLeaderboard> buildPiechartLeaderboards(ProgramService programService, io.meeds.social.translation.service.TranslationService translationService, List<PiechartLeaderboard> userStats, String currentUser, Locale locale) static LeaderboardInfobuildRank(RealizationService realizationService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, List<LeaderboardInfo> leaderboardList, String period, long dateInSeconds, Long spaceId, Long programId, long identityId, boolean isAnonymous) static LeaderboardInfotoLeaderboardInfo(org.exoplatform.social.core.space.spi.SpaceService spaceService, StandardLeaderboard element, org.exoplatform.social.core.identity.model.Identity identity, boolean isAnonymous, int index)
-
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 spaceId, Long programId, String period, long dateInSeconds, 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 dateInSeconds, Long spaceId, Long programId, long identityId, boolean isAnonymous) -
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)
-