|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StatisticsRepository
| Method Summary | |
|---|---|
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)
|
| Method Detail |
|---|
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 ID
List<SpStatistic> getActiveServices(String userid,
String idpEntityId)
userid - the user for the useridpEntityId - the idp for which the user is currently logged in
List<LoginEntry> getUnprocessedLoginEntries(int nrOfRecords)
nrOfRecords - the number to getvoid setLoginEntriesProcessed(List<LoginEntry> entries)
entries - the entries to mark
void updateAggregated(String idpEntityId,
String spEntityId,
Date loginDate)
void insertAggregated(LoginEntry le)
boolean aggregatedExists(String idpEntityId,
String spEntityId,
Date loginDate)
boolean lockForCrunching()
void unlockForCrunching()
boolean lastLogonExists(String userId,
String idpEntityId)
void insertLastLogin(LoginEntry le)
void updateLastLogin(String userId,
String spEntityId,
Date loginDate)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||