|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.statistics.StatisticsLoader
public class StatisticsLoader
Helper class for loading the analysis / report files from the reports directory
| Constructor Summary | |
|---|---|
StatisticsLoader()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatisticsLoader()
| Method Detail |
|---|
public static Date[] getMonthlyReportDates()
public static Date[] getMonthlyAnalysisDates()
protected static Date[] getDatesFromMap(Map<String,org.dspace.app.statistics.StatisticsLoader.StatsFile> monthlyMap)
monthlyMap - protected static Date[] sortDatesDescending(Date[] dates)
dates -
public static File getAnalysisFor(String date)
date - public static File getReportFor(String date)
date - public static File getGeneralAnalysis()
public static File getGeneralReport()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||