Package com.day.cq.wcm.core.stats
Class PageViewReport
- java.lang.Object
-
- com.day.crx.statistics.Report
-
- com.day.cq.wcm.core.stats.PageViewReport
-
public class PageViewReport extends com.day.crx.statistics.ReportPageViewReportimplements a report that returns historical data aboutPageviews.
-
-
Constructor Summary
Constructors Constructor Description PageViewReport(java.lang.String dataPath, Page page, WCMMode mode)Creates a new report.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPeriod()java.util.Iterator<java.lang.Object[]>getResult(javax.jcr.Session session)Returns result rows with the following objects: PathString, which indicates the dayLongcount :how many times the page has been viewed on thath dayLongrollingCount: how many times the page has been viewed in the last 30daysvoidsetPeriod(int period)
-
-
-
Method Detail
-
getResult
public java.util.Iterator<java.lang.Object[]> getResult(javax.jcr.Session session) throws javax.jcr.RepositoryExceptionReturns 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 classcom.day.crx.statistics.Report- Throws:
javax.jcr.RepositoryException
- 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
-
-