public class LoginHistoryServiceImpl extends Object implements LoginHistoryService
ALL_USERS, EXO_AUDIT_LOGIN_ENABLED| Constructor and Description |
|---|
LoginHistoryServiceImpl(LoginHistoryStorage loginHistoryStorage,
org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLoginHistoryEntry(String userId,
long loginTime)
Add an entry to user login history
|
long |
getBeforeLastLogin(String userId) |
long |
getLastLogin(String userId)
Get user's last login time
|
List<LastLoginBean> |
getLastLogins(int numItems,
String userIdFilter)
Get last logins
|
Set<String> |
getLastUsersLogin(long fromTime)
Get the list of all users who are logged after fromTime
|
List<LoginCounterBean> |
getLoginCountPerDaysInRange(String userId,
long fromDate,
long toDate)
Get user's login count per days in range [fromDate..toDate]
|
List<LoginCounterBean> |
getLoginCountPerDaysInWeek(String userId,
long week)
Get user login count per days in given week
|
List<LoginCounterBean> |
getLoginCountPerMonthsInYear(String userId,
long year)
Get user login count per months in given year
|
List<LoginCounterBean> |
getLoginCountPerWeeksInMonths(String userId,
long fromMonth,
int numOfMonths)
Get user login count per weeks in given month
|
List<LoginHistoryBean> |
getLoginHistory(String userId,
long fromTime,
long toTime)
Get user login history
|
boolean |
isEnabled() |
public LoginHistoryServiceImpl(LoginHistoryStorage loginHistoryStorage, org.exoplatform.container.xml.InitParams params)
public long getLastLogin(String userId) throws Exception
getLastLogin in interface LoginHistoryServiceExceptionpublic List<LastLoginBean> getLastLogins(int numItems, String userIdFilter) throws Exception
getLastLogins in interface LoginHistoryServicenumItems - Exceptionpublic void addLoginHistoryEntry(String userId, long loginTime) throws Exception
addLoginHistoryEntry in interface LoginHistoryServiceuserId - loginTime - Exceptionpublic List<LoginHistoryBean> getLoginHistory(String userId, long fromTime, long toTime) throws Exception
getLoginHistory in interface LoginHistoryServiceuserId - Exceptionpublic List<LoginCounterBean> getLoginCountPerDaysInRange(String userId, long fromDate, long toDate) throws Exception
Exceptionpublic List<LoginCounterBean> getLoginCountPerDaysInWeek(String userId, long week) throws Exception
getLoginCountPerDaysInWeek in interface LoginHistoryServiceExceptionpublic List<LoginCounterBean> getLoginCountPerWeeksInMonths(String userId, long fromMonth, int numOfMonths) throws Exception
getLoginCountPerWeeksInMonths in interface LoginHistoryServiceExceptionpublic List<LoginCounterBean> getLoginCountPerMonthsInYear(String userId, long year) throws Exception
getLoginCountPerMonthsInYear in interface LoginHistoryServiceExceptionpublic Set<String> getLastUsersLogin(long fromTime) throws Exception
getLastUsersLogin in interface LoginHistoryServicefromTime - Exceptionpublic long getBeforeLastLogin(String userId) throws Exception
getBeforeLastLogin in interface LoginHistoryServiceExceptionpublic boolean isEnabled()
isEnabled in interface LoginHistoryServiceCopyright © 2003–2019 eXo Platform SAS. All rights reserved.