public class LoginHistoryDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<LoginHistoryEntity,Long>
| Constructor and Description |
|---|
LoginHistoryDAO() |
| Modifier and Type | Method and Description |
|---|---|
List<LoginHistoryEntity> |
getAllLoginHistory(long fromTime,
long toTime)
returns a list of login history entries a given two dates, fromTime and
toTime.
|
long |
getBeforeLastLogin(String userId)
returns the just before last login entry date of a given user.
|
List<String> |
getLastLoggedUsers(int numLogins)
returns the last n user IDs set by a given limit number numLogins.
|
Long |
getLastLogin(String userId)
returns the last login entry date of a given user.
|
LoginHistoryEntity |
getLastLoginHistory()
returns the last login history entry.
|
LoginHistoryEntity |
getLastLoginOfUser(String userId)
returns the last history login entry of a given user.
|
Set<String> |
getLastLoginsAfterDate(long fromTime)
returns a list of user IDs that did log in from a given date till now.
|
List<LoginHistoryEntity> |
getLastLoginsOfUser(int numLogins,
String userId)
returns the last n history logins of a user set by a given limit number
numLogins.
|
Long |
getLoginCountPerDay(String userId,
Long fromDay,
Long toDay)
returns the count of logins per day for a given user.
|
List<LoginHistoryEntity> |
getLoginHistory(String userId,
long fromTime,
long toTime)
returns a list of login history entries of a given user between a given two
dates, fromTime and toTime.
|
Long |
getLoginsCountInDateRange(Long fromDay,
Long toDay)
returns the count per day of all users logins.
|
public Long getLoginCountPerDay(String userId, Long fromDay, Long toDay)
public Long getLoginsCountInDateRange(Long fromDay, Long toDay)
public Long getLastLogin(String userId)
userId - Stringpublic List<LoginHistoryEntity> getLastLoginsOfUser(int numLogins, String userId)
numLogins - intuserId - Stringpublic List<String> getLastLoggedUsers(int numLogins)
numLogins - intpublic LoginHistoryEntity getLastLoginOfUser(String userId)
userId - Stringpublic LoginHistoryEntity getLastLoginHistory()
public List<LoginHistoryEntity> getLoginHistory(String userId, long fromTime, long toTime)
userId - StringfromTime - longtoTime - longpublic List<LoginHistoryEntity> getAllLoginHistory(long fromTime, long toTime)
fromTime - longtoTime - longpublic Set<String> getLastLoginsAfterDate(long fromTime)
fromTime - longCopyright © 2003–2021 eXo Platform SAS. All rights reserved.