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