Package com.day.crx.statistics.result
Class ResultHistoryReport
- java.lang.Object
-
- com.day.crx.statistics.Report
-
- com.day.crx.statistics.result.ResultHistoryReport
-
public class ResultHistoryReport extends Report
ResultHistoryReportimplements a report that returns historical data about a given result.
-
-
Constructor Summary
Constructors Constructor Description ResultHistoryReport(java.lang.String dataPath, java.lang.String path)Creates a new report.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPeriod()java.util.IteratorgetResult(Session session)Runs the report and returns a result iterator overObject[]instances.voidsetPeriod(int period)
-
-
-
Method Detail
-
getResult
public java.util.Iterator getResult(Session session) throws RepositoryException
Runs the report and returns a result iterator overObject[]instances. Returns result rows with the following objects:- Path
String, which indicates the month Longcount (how many times the result was selected)
- Specified by:
getResultin classReport- Parameters:
session- the session giving access to the workspace.- Returns:
- Iterator over
Objectresults. - Throws:
RepositoryException- if an error occurs while reading from the repository.
- Path
-
getPeriod
public int getPeriod()
- Returns:
- the report period in number of days.
-
setPeriod
public void setPeriod(int period)
- Parameters:
period- the report period in number of days.
-
-