@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.
|
List<ChartSerie> |
getLoginsPerSpPerDay(String idpEntityId)
Makes a List of login data for a specific Service Provider got the Identity Provider
|
org.springframework.jdbc.core.RowMapper<StatResult> |
mapRowsToStatResult() |
void |
setEbJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate ebJdbcTemplate) |
public List<ChartSerie> getLoginsPerSpPerDay(String idpEntityId)
StatisticDaogetLoginsPerSpPerDay in interface StatisticDaoidpEntityId - unique identifier of the Identity 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)public void setEbJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate ebJdbcTemplate)
Copyright © 2012 SURFnet bv, The Netherlands. All Rights Reserved.