@Repository public class StatisticDaoImpl extends Object implements StatisticDao
| Constructor and Description |
|---|
StatisticDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<ChartSerie> |
convertStatResultsToChartSeries(List<StatResult> statResults)
The SQL query returns a single row per date/Service provider combination.
|
static Calendar |
convertToGmt(Calendar cal)
Get a converted Calendar in which the timezone difference has been added.
|
List<ChartSerie> |
getLoginsPerSpPerDay(String idpEntityId,
String spEntityId)
Makes a List of login data for a specific Service Provider got the Identity Provider
|
org.springframework.jdbc.core.RowMapper<StatResult> |
mapRowsToStatResult() |
public List<ChartSerie> getLoginsPerSpPerDay(String idpEntityId, String spEntityId)
StatisticDaogetLoginsPerSpPerDay in interface StatisticDaoidpEntityId - unique identifier of the Identity providerspEntityId - unique identifier of the Service providerStatResultpublic org.springframework.jdbc.core.RowMapper<StatResult> mapRowsToStatResult()
public List<ChartSerie> convertStatResultsToChartSeries(List<StatResult> statResults)
ChartSerie
we need one object per Service Provider with a list of dates.
If on a day no logins were done for an SP, the SQL query returns no row. We need to insert a zero hits
entry into the list of logins.statResults - List of StatResult's (SQL row)ChartSerie (HighChart input)Copyright © 2012 SURFnet bv, The Netherlands. All Rights Reserved.