public class GamificationHistoryDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<GamificationActionsHistory,Long>
| Constructor and Description |
|---|
GamificationHistoryDAO() |
public List<StandardLeaderboard> findAllActionsHistoryAgnostic(IdentityType earnerType)
earnerType - : IdentityType USER or SPACEpublic List<StandardLeaderboard> findAllActionsHistoryByDateByDomain(IdentityType earnerType, Date date, String domain)
earnerType - : IdentityType USER or SPACEdate - : date from when we load gamification entriesdomain - : domain filterpublic List<StandardLeaderboard> findAllActionsHistoryByDomain(IdentityType earnerType, String domain)
earnerType - : IdentityType USER or SPACEdomain - : domain filterpublic List<StandardLeaderboard> findAllActionsHistoryByDomain(String domain, IdentityType earnerType, int limit)
domain - : domain filterearnerType - : IdentityType USER or SPACElimit - : limit of the querypublic List<StandardLeaderboard> findAllActionsHistoryByDate(IdentityType earnerType, Date date)
date - : date from when entries are loadedearnerType - : IdentityType USER or SPACEpublic List<StandardLeaderboard> findAllActionsHistoryByDate(Date date, IdentityType earnerType, int limit)
date - : date from when entries are loadedearnerType - : IdentityType USER or SPACElimit - : limit of the querypublic List<GamificationActionsHistory> findActionsHistoryByEarnerId(String earnerId, int limit)
earnerId - : the userId used in projectionlimit - : limit of the querypublic List<StandardLeaderboard> findAllActionsHistory(IdentityType earnerType, int limit)
earnerType - : IdentityType USER or SPACElimit - : limit of the querypublic List<GamificationActionsHistory> findActionHistoryByDateByEarnerId(Date date, String earnerId)
date - : date from when we aim to track the userearnerId - identity id of earnerpublic List<StandardLeaderboard> findActionsHistoryByDateByDomain(Date date, IdentityType earnerType, String domain, int limit)
date - : date from when we aim to track userearnerType - : IdentityType USER or SPACEdomain - : domain we aim to tracklimit - : how many records we should load from DBpublic List<PiechartLeaderboard> findStatsByUserId(String earnerId, Date fromDate, Date toDate)
earnerId - identity id of earnerfromDate - toDate - public List<ProfileReputation> findDomainScoreByIdentityId(String earnerId)
earnerId - ProfileReputationpublic long findUserReputationScoreBetweenDate(String earnerId, Date fromDate, Date toDate)
public long findUserReputationScoreByMonth(String earnerId, Date currentMonth)
public long findUserReputationScoreByDomainBetweenDate(String earnerId, String domain, Date fromDate, Date toDate)
public List<StandardLeaderboard> findAllLeaderboardBetweenDate(IdentityType earnedType, Date fromDate, Date toDate)
public List<GamificationActionsHistory> findActionsHistoryByEarnerIdSortedByDate(String earnerId, int limit)
earnerId - : earner identity idlimit - : how many records we should load from DBpublic long getTotalScore(String earnerId)
public List<GamificationActionsHistory> getAllPointsByDomain(String domain)
public List<GamificationActionsHistory> getAllPointsWithNullDomain()
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.