public class LoginHistoryRestService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Class and Description |
|---|---|
class |
LoginHistoryRestService.MessageBean |
| Modifier and Type | Field and Description |
|---|---|
protected LoginHistoryService |
loginHistoryService |
| Constructor and Description |
|---|
LoginHistoryRestService(LoginHistoryService loginHistoryService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
lastlogins(int numItems,
String userIdFilter)
Get last {numItems} login history entries
REST service URL: /loginhistory/lastlogins/{numItems}/{userIdFilter} |
javax.ws.rs.core.Response |
loginhistory(String userId,
Long fromTime,
Long toTime)
Get user login history
REST service URL: /loginhistory/{userId}/{fromTime}/{toTime} |
javax.ws.rs.core.Response |
monthstats(String userId,
String fromMonth,
int numOfMonths)
Get login count statistic in months
REST service URL: /loginhistory/monthstats/{userId}/{fromMonth/{numOfMonth}} |
javax.ws.rs.core.Response |
weekstats(String userId,
String week)
Get login count statistic in a week
REST service URL: /loginhistory/weekstats/{userId}/{week} |
javax.ws.rs.core.Response |
yearstats(String userId,
String year)
Get login count statistic in a year
REST service URL: /loginhistory/yearstats/{userId}/{year} |
protected final LoginHistoryService loginHistoryService
public LoginHistoryRestService(LoginHistoryService loginHistoryService)
public javax.ws.rs.core.Response loginhistory(String userId, Long fromTime, Long toTime) throws Exception
Exceptionpublic javax.ws.rs.core.Response weekstats(String userId, String week) throws Exception
Exceptionpublic javax.ws.rs.core.Response monthstats(String userId, String fromMonth, int numOfMonths) throws Exception
Exceptionpublic javax.ws.rs.core.Response yearstats(String userId, String year) throws Exception
ExceptionCopyright © 2003–2021 eXo Platform SAS. All rights reserved.