Package com.day.cq.wcm.core.stats
Class PageViewReport
- java.lang.Object
-
- com.day.crx.statistics.Report
-
- com.day.cq.wcm.core.stats.PageViewReport
-
-
Constructor Summary
Constructors Constructor Description PageViewReport(String dataPath, Page page, WCMMode mode)
Creates a new report.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPeriod()
Iterator<Object[]>
getResult(Session session)
Runs the report and returns a result iterator overObject[]
instances.void
setPeriod(int period)
-
-
-
Method Detail
-
getResult
public Iterator<Object[]> 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 day Long
count :how many times the page has been viewed on thath dayLong
rollingCount: how many times the page has been viewed in the last 30days
- Specified by:
getResult
in classReport
- Parameters:
session
- the session giving access to the workspace.- Returns:
- Iterator over
Object
results. - 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
-
-