use of org.orcid.jaxb.model.statistics.StatisticsSummary in project ORCID-Source by ORCID.
the class StatisticsController method getStatistics.
@RequestMapping
public ModelAndView getStatistics() {
ModelAndView mav = new ModelAndView("statistics");
Map<String, Long> statisticsMap = null;
StatisticsSummary statisticsSummary = statisticsCacheManager.retrieve();
if (statisticsSummary != null) {
statisticsMap = statisticsSummary.getStatistics();
mav.addObject("statistics_date", formatStatisticsDate(statisticsSummary.getDate()));
}
if (statisticsMap == null) {
statisticsMap = new HashMap<String, Long>();
}
mav.addObject("statistics", statisticsMap);
return mav;
}
Aggregations