|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.surfnet.coin.selfservice.dao.impl.StatisticDaoImpl
@Repository public class StatisticDaoImpl
SQL implementation for the statistic service
| Constructor Summary | |
|---|---|
StatisticDaoImpl()
|
|
| Method Summary | |
|---|---|
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. Input: 0:00:00 CEST Output: 2:00:00 CEST |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatisticDaoImpl()
| Method Detail |
|---|
public List<ChartSerie> getLoginsPerSpPerDay(String idpEntityId,
String spEntityId)
StatisticDao
getLoginsPerSpPerDay in interface StatisticDaoidpEntityId - unique identifier of the Identity providerspEntityId - unique identifier of the Service provider
StatResultpublic 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 static Calendar convertToGmt(Calendar cal)
cal - the original
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||