org.exoplatform.platform.gadget.services.LoginHistory
Class LoginHistoryRestService

java.lang.Object
  extended by org.exoplatform.platform.gadget.services.LoginHistory.LoginHistoryRestService
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class LoginHistoryRestService
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer

Created by The eXo Platform SARL Author : Tung Vu Minh tungvm@exoplatform.com Apr 21, 2011 6:19:21 PM


Nested Class Summary
 class LoginHistoryRestService.MessageBean
           
 
Constructor Summary
LoginHistoryRestService()
           
 
Method Summary
 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}
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginHistoryRestService

public LoginHistoryRestService()
Method Detail

loginhistory

public javax.ws.rs.core.Response loginhistory(String userId,
                                              Long fromTime,
                                              Long toTime)
                                       throws Exception
Get user login history REST service URL: /loginhistory/{userId}/{fromTime}/{toTime}

Throws:
Exception

weekstats

public javax.ws.rs.core.Response weekstats(String userId,
                                           String week)
                                    throws Exception
Get login count statistic in a week REST service URL: /loginhistory/weekstats/{userId}/{week}

Throws:
Exception

monthstats

public javax.ws.rs.core.Response monthstats(String userId,
                                            String fromMonth,
                                            int numOfMonths)
                                     throws Exception
Get login count statistic in months REST service URL: /loginhistory/monthstats/{userId}/{fromMonth/{numOfMonth}}

Throws:
Exception

yearstats

public javax.ws.rs.core.Response yearstats(String userId,
                                           String year)
                                    throws Exception
Get login count statistic in a year REST service URL: /loginhistory/yearstats/{userId}/{year}

Throws:
Exception

lastlogins

public javax.ws.rs.core.Response lastlogins(int numItems,
                                            String userIdFilter)
                                     throws Exception
Get last {numItems} login history entries REST service URL: /loginhistory/lastlogins/{numItems}/{userIdFilter}

Throws:
Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.