Class UIAdminStatisticsService


  • @Component
    public class UIAdminStatisticsService
    extends java.lang.Object
    A utility class for formatting responses for the admin statistics page UI.
    • Method Detail

      • getAdminStatistics

        public BasicStatsResponse getAdminStatistics​(java.lang.Integer timePeriod)
        Returns a dto with basic stats (counts) for analyses, projects, users, and samples.
        Parameters:
        timePeriod - - The default time period for which to get the stats for
        Returns:
        a BasicStatsResponse containing the counts for the time period.
      • getAdminAnalysesStatistics

        public StatisticsResponse getAdminAnalysesStatistics​(java.lang.Integer timePeriod)
        Returns a dto with a list of GenericStatModels which contains the analyses ran counts and labels
        Parameters:
        timePeriod - - The time period for which to get the stats for
        Returns:
        a StatisticsResponse containing the counts and labels for the time period.
      • getAdminProjectStatistics

        public StatisticsResponse getAdminProjectStatistics​(java.lang.Integer timePeriod)
        Returns a dto with a list of GenericStatModels which contains the projects created counts and labels
        Parameters:
        timePeriod - - The time period for which to get the stats for
        Returns:
        a StatisticsResponse containing the counts and labels for the time period.
      • getAdminSampleStatistics

        public StatisticsResponse getAdminSampleStatistics​(java.lang.Integer timePeriod)
        Returns a dto with a list of GenericStatModels which contains the samples created counts and labels
        Parameters:
        timePeriod - - The time period for which to get the stats for
        Returns:
        a StatisticsResponse containing the counts and labels for the time period.
      • getAdminUserStatistics

        public StatisticsResponse getAdminUserStatistics​(java.lang.Integer timePeriod)
        Returns a dto with a list of GenericStatModels which contains the users created counts and labels
        Parameters:
        timePeriod - - The time period for which to get the stats for
        Returns:
        a StatisticsResponse containing the counts and labels for the time period.
      • getAdminUserLoggedInStatistics

        public java.lang.Long getAdminUserLoggedInStatistics​(java.lang.Integer timePeriod)
        Returns the number of users logged in for the time period
        Parameters:
        timePeriod - - The time period for which to get the stats for
        Returns:
        Long number of users logged in during time period