public class StatisticsLoader extends Object
| Constructor and Description |
|---|
StatisticsLoader() |
| Modifier and Type | Method and Description |
|---|---|
static File |
getAnalysisFor(String date)
Get the analysis file for a given date.
|
protected static Date[] |
getDatesFromMap(Map<String,org.dspace.app.statistics.StatisticsLoader.StatsFile> monthlyMap)
Convert the formatted dates that are the keys of the map into a date array.
|
static File |
getGeneralAnalysis()
Get the current general analysis file.
|
static File |
getGeneralReport()
Get the current general report file.
|
static Date[] |
getMonthlyAnalysisDates()
Get an array of the dates of the analysis files.
|
static Date[] |
getMonthlyReportDates()
Get an array of the dates of the report files.
|
static File |
getReportFor(String date)
Get the report file for a given date.
|
protected static Date[] |
sortDatesDescending(Date[] dates)
Sort the date array in descending (reverse chronological) order.
|
public static Date[] getMonthlyReportDates()
public static Date[] getMonthlyAnalysisDates()
protected static Date[] getDatesFromMap(Map<String,org.dspace.app.statistics.StatisticsLoader.StatsFile> monthlyMap)
monthlyMap - mapprotected static Date[] sortDatesDescending(Date[] dates)
dates - array of datespublic static File getAnalysisFor(String date)
date - datepublic static File getReportFor(String date)
date - datepublic static File getGeneralAnalysis()
public static File getGeneralReport()
Copyright © 2022 LYRASIS. All rights reserved.