public class GamificationHistoryDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<GamificationActionsHistory,Long>
| Constructor and Description |
|---|
GamificationHistoryDAO(org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
List<GamificationActionsHistory> |
findActionHistoryByDateBySocialId(Date date,
String socialId)
Get The last ActionHistory record
|
List<StandardLeaderboard> |
findActionsHistoryByDate(Date date,
boolean isGlobalContext,
int loadCapacity) |
List<StandardLeaderboard> |
findActionsHistoryByDateByDomain(Date date,
String domain,
boolean isGlobalContext,
int loadCapacity)
Find actionsHistory by data and domain
|
List<GamificationActionsHistory> |
findActionsHistoryByUserId(String socialUserId)
Get an ActionHistory record based on userId
|
List<StandardLeaderboard> |
findAllActionsHistory(boolean isGlobalContext,
int loadCapacity)
Get all ActionHistory records paginated
|
List<StandardLeaderboard> |
findAllActionsHistoryAgnostic()
Get all ActionHistory records and convert them to list of type StandardLeaderboard
|
List<StandardLeaderboard> |
findAllActionsHistoryByDate(Date date)
Find all gamification entries by date
|
List<StandardLeaderboard> |
findAllActionsHistoryByDateByDomain(Date date,
String domain)
Find all gamification entries by domain and by type
|
List<StandardLeaderboard> |
findAllActionsHistoryByDomain(String domain)
Find all gamification entries by domain
|
List<StandardLeaderboard> |
findAllActionsHistoryByDomain(String domain,
boolean isGlobalContext,
int loadCapacity)
Get all ActionHistory records by a given domain
|
List<ProfileReputation> |
findDomainScoreByUserId(String userSocialId)
Compute for a given user the score earned for each doman
|
List<PiechartLeaderboard> |
findStatsByUserId(String userSocialId)
Get user stats
|
long |
findUserReputationScoreBetweenDate(String userSocialId,
Date fromDate,
Date toDate) |
long |
findUserReputationScoreByDomainBetweenDate(String userSocialId,
String domain,
Date fromDate,
Date toDate) |
public GamificationHistoryDAO(org.exoplatform.container.xml.InitParams params)
public List<StandardLeaderboard> findAllActionsHistoryAgnostic() throws javax.persistence.PersistenceException
javax.persistence.PersistenceExceptionpublic List<StandardLeaderboard> findAllActionsHistoryByDateByDomain(Date date, String domain) throws javax.persistence.PersistenceException
date - : date from when we load gamification entriesdomain - : domain filterjavax.persistence.PersistenceExceptionpublic List<StandardLeaderboard> findAllActionsHistoryByDomain(String domain) throws javax.persistence.PersistenceException
domain - : domain filterjavax.persistence.PersistenceExceptionpublic List<StandardLeaderboard> findAllActionsHistoryByDate(Date date) throws javax.persistence.PersistenceException
date - : date from when entries are loadedjavax.persistence.PersistenceExceptionpublic List<GamificationActionsHistory> findActionsHistoryByUserId(String socialUserId) throws javax.persistence.PersistenceException
socialUserId - : the userId used in projectionjavax.persistence.PersistenceExceptionpublic List<StandardLeaderboard> findAllActionsHistory(boolean isGlobalContext, int loadCapacity) throws javax.persistence.PersistenceException
isGlobalContext - : true if call is made in a global context false elseloadCapacity - : how many records we load from DBjavax.persistence.PersistenceExceptionpublic List<StandardLeaderboard> findAllActionsHistoryByDomain(String domain, boolean isGlobalContext, int loadCapacity) throws javax.persistence.PersistenceException
domain - : domain name used to filter returned recordsisGlobalContext - : false when records are filtered based on space true elseloadCapacity - : how many records we load from DBjavax.persistence.PersistenceExceptionpublic List<GamificationActionsHistory> findActionHistoryByDateBySocialId(Date date, String socialId) throws javax.persistence.PersistenceException
date - : date from when we aim to track the usersocialId - javax.persistence.PersistenceExceptionpublic List<StandardLeaderboard> findActionsHistoryByDate(Date date, boolean isGlobalContext, int loadCapacity) throws javax.persistence.PersistenceException
date - : date from when we aim to track leadersisGlobalContext - : true if call is made in a global context false elseloadCapacity - : how many records we load from DBjavax.persistence.PersistenceExceptionpublic List<StandardLeaderboard> findActionsHistoryByDateByDomain(Date date, String domain, boolean isGlobalContext, int loadCapacity) throws javax.persistence.PersistenceException
date - : date from when we aim to track userdomain - : domain we aim to trackisGlobalContext - : true if call is made in a global context false elseloadCapacity - : how many records we should load from DBjavax.persistence.PersistenceExceptionpublic List<PiechartLeaderboard> findStatsByUserId(String userSocialId) throws javax.persistence.PersistenceException
userSocialId - javax.persistence.PersistenceExceptionpublic List<ProfileReputation> findDomainScoreByUserId(String userSocialId) throws javax.persistence.PersistenceException
userSocialId - ProfileReputationjavax.persistence.PersistenceExceptionpublic long findUserReputationScoreBetweenDate(String userSocialId, Date fromDate, Date toDate) throws javax.persistence.PersistenceException
javax.persistence.PersistenceExceptionCopyright © 2003–2018 eXo Platform SAS. All rights reserved.