|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.platform.gadget.services.LoginHistory.LoginHistoryServiceImpl
public class LoginHistoryServiceImpl
Created by The eXo Platform SARL Author : Tung Vu Minh tungvm@exoplatform.com Apr 21, 2011 6:19:21 PM
| Field Summary |
|---|
| Fields inherited from interface org.exoplatform.platform.gadget.services.LoginHistory.LoginHistoryService |
|---|
ALL_USERS |
| Constructor Summary | |
|---|---|
LoginHistoryServiceImpl(org.exoplatform.services.jcr.RepositoryService repoService)
Constructor: Init LoginHistoryServiceImpl with RepositoryService from the container and create JCR node "exo:loginHistoryHome" under root if necessary. |
|
| Method Summary | |
|---|---|
void |
addConfiguration(LoginHistoryPlugin plugin)
Apply configurations from service's xml |
void |
addLoginHistoryEntry(String userId,
long loginTime)
Add an entry to user login history |
long |
getLastLogin(String userId)
Get user's last login time |
List<LastLoginBean> |
getLastLogins(int numItems,
String userIdFilter)
Get last logins |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoginHistoryServiceImpl(org.exoplatform.services.jcr.RepositoryService repoService)
throws Exception
repoService -
Exception| Method Detail |
|---|
public void addConfiguration(LoginHistoryPlugin plugin)
public long getLastLogin(String userId)
throws Exception
getLastLogin in interface LoginHistoryServiceException
public List<LastLoginBean> getLastLogins(int numItems,
String userIdFilter)
throws Exception
getLastLogins in interface LoginHistoryServicenumItems -
Exception
public void addLoginHistoryEntry(String userId,
long loginTime)
throws Exception
addLoginHistoryEntry in interface LoginHistoryServiceuserId - loginTime -
Exception
public List<LoginHistoryBean> getLoginHistory(String userId,
long fromTime,
long toTime)
throws Exception
getLoginHistory in interface LoginHistoryServiceuserId -
Exception
public List<LoginCounterBean> getLoginCountPerDaysInRange(String userId,
long fromDate,
long toDate)
throws Exception
Exception
public List<LoginCounterBean> getLoginCountPerDaysInWeek(String userId,
long week)
throws Exception
getLoginCountPerDaysInWeek in interface LoginHistoryServiceException
public List<LoginCounterBean> getLoginCountPerWeeksInMonths(String userId,
long fromMonth,
int numOfMonths)
throws Exception
getLoginCountPerWeeksInMonths in interface LoginHistoryServiceException
public List<LoginCounterBean> getLoginCountPerMonthsInYear(String userId,
long year)
throws Exception
getLoginCountPerMonthsInYear in interface LoginHistoryServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||