public interface StatisticsRepository
| Modifier and Type | Method and Description |
|---|---|
boolean |
aggregatedExists(String idpEntityId,
String spEntityId,
Date loginDate) |
List<SpStatistic> |
getActiveServices(String userid,
String idpEntityId)
retrieve a list of service for which the user has been active (a login
record must exist for this user)
|
List<LoginData> |
getLogins(org.joda.time.LocalDate start,
org.joda.time.LocalDate end,
String idpEntityId,
String spEntityId)
Return aggregated logins based on IDP or SP per day.
|
List<LoginEntry> |
getUnprocessedLoginEntries(int nrOfRecords)
Get a list of records that have to be aggregated yet.
|
void |
insertAggregated(LoginEntry le) |
void |
insertLastLogin(LoginEntry le) |
boolean |
lastLogonExists(String userId,
String idpEntityId) |
boolean |
lockForCrunching() |
void |
setLoginEntriesProcessed(List<LoginEntry> entries)
Mark login-log entries as processed by aggregation
|
void |
unlockForCrunching() |
void |
updateAggregated(String idpEntityId,
String spEntityId,
Date loginDate) |
void |
updateLastLogin(String userId,
String spEntityId,
Date loginDate) |
List<LoginData> getLogins(org.joda.time.LocalDate start, org.joda.time.LocalDate end, String idpEntityId, String spEntityId)
NOTE Either sp entity ID or idp entity ID is required!
start - start dateend - end datespEntityId - (optional) sp entity IDidpEntityId - (optional) idpEntity IDList<SpStatistic> getActiveServices(String userid, String idpEntityId)
userid - the user for the useridpEntityId - the idp for which the user is currently logged inList<LoginEntry> getUnprocessedLoginEntries(int nrOfRecords)
nrOfRecords - the number to getvoid setLoginEntriesProcessed(List<LoginEntry> entries)
entries - the entries to markvoid insertAggregated(LoginEntry le)
boolean lockForCrunching()
void unlockForCrunching()
void insertLastLogin(LoginEntry le)
Copyright © 2009-2013 SURFnet bv, The Netherlands. All Rights Reserved.