public class JPALoginHistoryStorageImpl extends Object implements LoginHistoryStorage
| Constructor and Description |
|---|
JPALoginHistoryStorageImpl(LoginHistoryDAO loginHistoryDAO) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLoginHistoryEntry(String userId,
long loginTime) |
long |
getBeforeLastLogin(String userId) |
long |
getLastLogin(String userId) |
List<LastLoginBean> |
getLastLogins(int numLogins,
String userIdFilter)
if the userIdFilter is set to all users (%), returns a list of n last login
beans that contains for each user: the user id, the user's name, user's last
and before last login.
|
Set<String> |
getLastUsersLogin(long fromTime) |
List<LoginCounterBean> |
getLoginCountPerDaysInRange(String userId,
long fromDate,
long toDate)
returns a list of login counter bean that contains for each day the number of
logins between two given dates for a given user.
|
List<LoginCounterBean> |
getLoginCountPerDaysInWeek(String userId,
long week) |
List<LoginCounterBean> |
getLoginCountPerMonthsInYear(String userId,
long year) |
List<LoginCounterBean> |
getLoginCountPerWeeksInMonths(String userId,
long fromMonth,
int numOfMonths) |
List<LoginHistoryBean> |
getLoginHistory(String userId,
long fromTime,
long toTime)
if the user id is set to "AllUsers" it returns a list of login history beans
between two given dates that contains for each user: the user id, the user's
name and the login date.
|
public JPALoginHistoryStorageImpl(LoginHistoryDAO loginHistoryDAO)
public List<LoginCounterBean> getLoginCountPerDaysInRange(String userId, long fromDate, long toDate)
userId - StringfromDate - longtoDate - longpublic long getLastLogin(String userId)
getLastLogin in interface LoginHistoryStoragepublic List<LastLoginBean> getLastLogins(int numLogins, String userIdFilter)
getLastLogins in interface LoginHistoryStoragenumLogins - intuserIdFilter - Stringpublic void addLoginHistoryEntry(String userId, long loginTime)
addLoginHistoryEntry in interface LoginHistoryStoragepublic List<LoginHistoryBean> getLoginHistory(String userId, long fromTime, long toTime)
getLoginHistory in interface LoginHistoryStorageuserId - StringfromTime - longtoTime - longpublic Set<String> getLastUsersLogin(long fromTime) throws Exception
getLastUsersLogin in interface LoginHistoryStorageExceptionpublic List<LoginCounterBean> getLoginCountPerDaysInWeek(String userId, long week)
getLoginCountPerDaysInWeek in interface LoginHistoryStoragepublic List<LoginCounterBean> getLoginCountPerWeeksInMonths(String userId, long fromMonth, int numOfMonths)
getLoginCountPerWeeksInMonths in interface LoginHistoryStoragepublic List<LoginCounterBean> getLoginCountPerMonthsInYear(String userId, long year)
getLoginCountPerMonthsInYear in interface LoginHistoryStoragepublic long getBeforeLastLogin(String userId) throws Exception
getBeforeLastLogin in interface LoginHistoryStorageExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.