Class AdminStatisticsAjaxController


  • @RestController
    @RequestMapping("/ajax/statistics")
    public class AdminStatisticsAjaxController
    extends java.lang.Object
    Controller to handle ajax requests for the Admin Panel statistics page.
    • Constructor Detail

      • AdminStatisticsAjaxController

        @Autowired
        public AdminStatisticsAjaxController​(UIAdminStatisticsService uiAdminStatisticsService)
    • Method Detail

      • getAdminStatistics

        @GetMapping("/basic")
        public org.springframework.http.ResponseEntity<BasicStatsResponse> getAdminStatistics​(@RequestParam
                                                                                              int timePeriod)
        Get basic usage statistics for projects, samples, analyses, and users for the provided time period
        Parameters:
        timePeriod - The time period for which to retrieve usage stats for
        Returns:
        dto with basic usage stats
      • getAdminProjectStatistics

        @GetMapping("/projects")
        public org.springframework.http.ResponseEntity<StatisticsResponse> getAdminProjectStatistics​(@RequestParam
                                                                                                     int timePeriod)
        Get updated usage statistics for projects for the provided time period
        Parameters:
        timePeriod - The time period for which to retrieve updated project usage stats for
        Returns:
        dto with updated project usage stats
      • getAdminUserStatistics

        @GetMapping("/users")
        public org.springframework.http.ResponseEntity<StatisticsResponse> getAdminUserStatistics​(@RequestParam
                                                                                                  int timePeriod)
        Get updated usage statistics for users for the provided time period
        Parameters:
        timePeriod - The time period for which to retrieve updated user usage stats for
        Returns:
        dto with updated user usage stats
      • getAdminAnalysesStatistics

        @GetMapping("/analyses")
        public org.springframework.http.ResponseEntity<StatisticsResponse> getAdminAnalysesStatistics​(@RequestParam
                                                                                                      int timePeriod)
        Get updated usage statistics for analyses for the provided time period
        Parameters:
        timePeriod - The time period for which to retrieve updated analyses usage stats for
        Returns:
        dto with updated analyses usage stats
      • getAdminSampleStatistics

        @GetMapping("/samples")
        public org.springframework.http.ResponseEntity<StatisticsResponse> getAdminSampleStatistics​(@RequestParam
                                                                                                    int timePeriod)
        Get updated usage statistics for samples for the provided time period
        Parameters:
        timePeriod - The time period for which to retrieve updated sample usage stats for
        Returns:
        dto with updated sample usage stats