Class UserRankService
java.lang.Object
dev.getelements.elements.service.leaderboard.UserRankService
- All Implemented Interfaces:
RankService
- Direct Known Subclasses:
SuperUserRankService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRanksForFriends(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboard.getId()relative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfilegetRanksForFriendsRelative(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboard.getId()relative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfilegetRanksForGlobal(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboard.getId()getRanksForGlobalRelative(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) getRanksForGlobalTabular(String leaderboardNameOrId, long leaderboardEpoch) Gets the global ranks for tabular data.getRanksForMutualFollowers(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboard.getId()relative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfilegetRanksForMutualFollowersRelative(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboardrelative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfilegetUser()voidsetCdnUtils(LargeObjectCdnUtils cdnUtils) voidsetProfileSupplier(Supplier<Profile> profileSupplier) voidsetRankDao(RankDao rankDao) void
-
Constructor Details
-
UserRankService
public UserRankService()
-
-
Method Details
-
getRanksForGlobal
public Pagination<Rank> getRanksForGlobal(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Description copied from interface:RankServiceGets allRankinstances for the suppliedLeaderboard.getId()- Specified by:
getRanksForGlobalin interfaceRankService- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()offset- the offsetcount- the countleaderboardEpoch- the epoch timestamp- Returns:
- the
Pagination<Rank>
-
getRanksForGlobalRelative
public Pagination<Rank> getRanksForGlobalRelative(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) Description copied from interface:RankService- Specified by:
getRanksForGlobalRelativein interfaceRankService- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()profileId- the value ofProfile.getId()offset-count- the countleaderboardEpoch- the epoch timestamp- Returns:
- the
Pagination<Rank>
-
getRanksForFriends
public Pagination<Rank> getRanksForFriends(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Description copied from interface:RankServiceGets allRankinstances for the suppliedLeaderboard.getId()relative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfile- Specified by:
getRanksForFriendsin interfaceRankService- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()offset- the offsetcount- the countleaderboardEpoch- the epoch timestamp- Returns:
- the
Pagination<Rank>
-
getRanksForFriendsRelative
public Pagination<Rank> getRanksForFriendsRelative(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Description copied from interface:RankServiceGets allRankinstances for the suppliedLeaderboard.getId()relative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfile- Specified by:
getRanksForFriendsRelativein interfaceRankService- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()offset- the offsetcount- the countleaderboardEpoch- the epoch timestamp- Returns:
- the
Pagination<Rank>
-
getRanksForMutualFollowers
public Pagination<Rank> getRanksForMutualFollowers(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Description copied from interface:RankServiceGets allRankinstances for the suppliedLeaderboard.getId()relative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfile- Specified by:
getRanksForMutualFollowersin interfaceRankService- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()offset- the offsetcount- the countleaderboardEpoch- the epoch timestamp- Returns:
- the
Pagination<Rank>
-
getRanksForMutualFollowersRelative
public Pagination<Rank> getRanksForMutualFollowersRelative(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Description copied from interface:RankServiceGets allRankinstances for the suppliedLeaderboardrelative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfile- Specified by:
getRanksForMutualFollowersRelativein interfaceRankService- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()offset- the offsetcount- the countleaderboardEpoch- the epoch timestamp- Returns:
- the
Pagination<Rank>
-
getRanksForGlobalTabular
public Tabulation<RankRow> getRanksForGlobalTabular(String leaderboardNameOrId, long leaderboardEpoch) Description copied from interface:RankServiceGets the global ranks for tabular data.- Specified by:
getRanksForGlobalTabularin interfaceRankService- Returns:
- the tabular ranks
-
getUser
-
setUser
-
getRankDao
-
setRankDao
-
getProfileSupplier
-
setProfileSupplier
-
getCdnUtils
-
setCdnUtils
-