Class UIAdminStatisticsService
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.ria.web.services.UIAdminStatisticsService
-
@Component public class UIAdminStatisticsService extends java.lang.Object
A utility class for formatting responses for the admin statistics page UI.
-
-
Constructor Summary
Constructors Constructor Description UIAdminStatisticsService(ProjectService projectService, UserService userService, SampleService sampleService, AnalysisSubmissionService analysisSubmissionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatisticsResponse
getAdminAnalysesStatistics(java.lang.Integer timePeriod)
Returns a dto with a list ofGenericStatModel
s which contains the analyses ran counts and labelsStatisticsResponse
getAdminProjectStatistics(java.lang.Integer timePeriod)
Returns a dto with a list ofGenericStatModel
s which contains the projects created counts and labelsStatisticsResponse
getAdminSampleStatistics(java.lang.Integer timePeriod)
Returns a dto with a list ofGenericStatModel
s which contains the samples created counts and labelsBasicStatsResponse
getAdminStatistics(java.lang.Integer timePeriod)
Returns a dto with basic stats (counts) for analyses, projects, users, and samples.java.lang.Long
getAdminUserLoggedInStatistics(java.lang.Integer timePeriod)
Returns the number of users logged in for the time periodStatisticsResponse
getAdminUserStatistics(java.lang.Integer timePeriod)
Returns a dto with a list ofGenericStatModel
s which contains the users created counts and labels
-
-
-
Constructor Detail
-
UIAdminStatisticsService
public UIAdminStatisticsService(ProjectService projectService, UserService userService, SampleService sampleService, AnalysisSubmissionService analysisSubmissionService)
-
-
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 ofGenericStatModel
s 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 ofGenericStatModel
s 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 ofGenericStatModel
s 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 ofGenericStatModel
s 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
-
-