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) |
List<StandardLeaderboard> |
findActionsHistoryByDateByDomain(Date date,
String domain,
boolean isGlobalContext)
Find actionsHistory by data and domain
|
List<GamificationActionsHistory> |
findActionsHistoryByUserId(String socialUserId)
Get an ActionHistory record based on userId
|
List<StandardLeaderboard> |
findAllActionsHistory(boolean isGlobalContext)
Get all ActionHistory records paginated
|
List<StandardLeaderboard> |
findAllActionsHistoryAgnostic()
Get all ActionHistory records and convert them to list of type StandardLeaderboard
|
List<StandardLeaderboard> |
findAllActionsHistoryByDomain(String domain,
boolean isGlobalContext)
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<GamificationActionsHistory> findActionsHistoryByUserId(String socialUserId) throws javax.persistence.PersistenceException
socialUserId - : the userId used in projectionjavax.persistence.PersistenceExceptionpublic List<StandardLeaderboard> findAllActionsHistory(boolean isGlobalContext) throws javax.persistence.PersistenceException
isGlobalContext - : : true if call is made in a global context false elsejavax.persistence.PersistenceExceptionpublic List<StandardLeaderboard> findAllActionsHistoryByDomain(String domain, boolean isGlobalContext) throws javax.persistence.PersistenceException
domain - javax.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) throws javax.persistence.PersistenceException
date - : date from when we aim to track leadersisGlobalContext - : true if call is made in a global context false elsejavax.persistence.PersistenceExceptionpublic List<StandardLeaderboard> findActionsHistoryByDateByDomain(Date date, String domain, boolean isGlobalContext) 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 elsejavax.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.