public class JCRLoginHistoryStorageImpl extends Object implements LoginHistoryStorage
ALL_USERS| Constructor and Description |
|---|
JCRLoginHistoryStorageImpl(org.exoplatform.services.jcr.RepositoryService repositoryService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLoginHistoryEntry(String userId,
long loginTime) |
long |
countGlobalLoginHistoryCountersNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
returns the count of all the All Users Login History Counters Nodes
|
long |
countLoginHistoryCountersNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
returns the count of All Login History Counters Nodes
|
long |
countLoginHistoryNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
returns the count of all Login History Entries nodes
|
protected void |
createHomeNode()
Create exo:LoginHistoryHome node.
|
javax.jcr.NodeIterator |
getAllUserLoginCountersNodes(javax.jcr.Node userProfileNode)
returns the node iterator which contains All User Login Counters Nodes
|
javax.jcr.NodeIterator |
getAllUserLoginHistoryNodes(javax.jcr.Node userProfileNode)
returns the node iterator which contains All User Login History Nodes
|
javax.jcr.NodeIterator |
getAllUsersLoginCountersNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
long offset,
long size)
returns the node iterator which contains a given number of All Users Login
Counters nodes after a given offset
|
javax.jcr.NodeIterator |
getAllUsersProfilesNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
returns the node iterator which contains All Users Profiles Nodes
|
long |
getBeforeLastLogin(String userId) |
long |
getLastLogin(String userId) |
List<LastLoginBean> |
getLastLogins(int numLogins,
String userIdFilter) |
Set<String> |
getLastUsersLogin(long fromTime) |
List<LoginCounterBean> |
getLoginCountPerDaysInRange(String userId,
long fromDate,
long toDate) |
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) |
javax.jcr.NodeIterator |
getLoginHistoryNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
long offset,
long size)
returns the node iterator which contains a given number of Login History
nodes after a given offset
|
javax.jcr.NodeIterator |
getUsersProfilesNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
long offset,
long size)
returns the node iterator which contains a given number of Users Profiles
nodes after a given offset
|
void |
removeAllUsersProfileNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
removes the All Users Profile Node
|
void |
removeLoginHistoryHomeNode()
used at the end of the migration process, it removes the JCR root node for
Login History service
|
void |
removeLoginHistoryNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
javax.jcr.Node loginHistoryNode)
removes the given Login History node
|
void |
removeLoginHistoryUserProfileChildNodes(javax.jcr.Session session,
String userId)
removes the given Login History User Profile child nodes
|
public JCRLoginHistoryStorageImpl(org.exoplatform.services.jcr.RepositoryService repositoryService)
protected void createHomeNode()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic List<LoginCounterBean> getLoginCountPerDaysInRange(String userId, long fromDate, long toDate) throws Exception
Exceptionpublic long getLastLogin(String userId) throws Exception
getLastLogin in interface LoginHistoryStorageExceptionpublic List<LastLoginBean> getLastLogins(int numLogins, String userIdFilter) throws Exception
getLastLogins in interface LoginHistoryStorageExceptionpublic void addLoginHistoryEntry(String userId, long loginTime) throws Exception
addLoginHistoryEntry in interface LoginHistoryStorageExceptionpublic List<LoginHistoryBean> getLoginHistory(String userId, long fromTime, long toTime) throws Exception
getLoginHistory in interface LoginHistoryStorageExceptionpublic Set<String> getLastUsersLogin(long fromTime) throws Exception
getLastUsersLogin in interface LoginHistoryStorageExceptionpublic List<LoginCounterBean> getLoginCountPerDaysInWeek(String userId, long week) throws Exception
getLoginCountPerDaysInWeek in interface LoginHistoryStorageExceptionpublic List<LoginCounterBean> getLoginCountPerWeeksInMonths(String userId, long fromMonth, int numOfMonths) throws Exception
getLoginCountPerWeeksInMonths in interface LoginHistoryStorageExceptionpublic List<LoginCounterBean> getLoginCountPerMonthsInYear(String userId, long year) throws Exception
getLoginCountPerMonthsInYear in interface LoginHistoryStorageExceptionpublic long getBeforeLastLogin(String userId) throws Exception
getBeforeLastLogin in interface LoginHistoryStorageExceptionpublic long countLoginHistoryNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
sProvider - SessionProviderpublic long countGlobalLoginHistoryCountersNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
sProvider - SessionProviderpublic long countLoginHistoryCountersNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
sProvider - SessionProviderpublic javax.jcr.NodeIterator getUsersProfilesNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
long offset,
long size)
sProvider - SessionProvideroffset - longsize - longpublic javax.jcr.NodeIterator getLoginHistoryNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
long offset,
long size)
sProvider - SessionProvideroffset - longsize - longpublic javax.jcr.NodeIterator getAllUsersLoginCountersNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
long offset,
long size)
sProvider - SessionProvideroffset - longsize - longpublic javax.jcr.NodeIterator getAllUsersProfilesNodes(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
sProvider - SessionProviderpublic javax.jcr.NodeIterator getAllUserLoginHistoryNodes(javax.jcr.Node userProfileNode)
userProfileNode - Nodepublic javax.jcr.NodeIterator getAllUserLoginCountersNodes(javax.jcr.Node userProfileNode)
userProfileNode - Nodepublic void removeLoginHistoryNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
javax.jcr.Node loginHistoryNode)
sProvider - SessionProviderloginHistoryNode - Nodepublic void removeAllUsersProfileNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
sProvider - SessionProviderpublic void removeLoginHistoryUserProfileChildNodes(javax.jcr.Session session,
String userId)
session - SessionuserId - StringCopyright © 2003–2020 eXo Platform SAS. All rights reserved.