Package com.day.cq.wcm.core.stats
Class PageViewReport
java.lang.Object
com.day.crx.statistics.Report
com.day.cq.wcm.core.stats.PageViewReport
PageViewReport implements a report that returns historical data
about Page views.-
Constructor Summary
ConstructorsConstructorDescriptionPageViewReport(String dataPath, Page page, WCMMode mode) Creates a new report. -
Method Summary
-
Constructor Details
-
PageViewReport
Creates a new report.- Parameters:
dataPath- the location where the result statistics are stored.page- the page that was viewedmode- the WCM mode that was used to view the page
-
-
Method Details
-
getResult
Runs the report and returns a result iterator overObject[]instances. Returns result rows with the following objects:- Path
String, which indicates the day Longcount :how many times the page has been viewed on thath dayLongrollingCount: how many times the page has been viewed in the last 30days
- 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
-