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.Report
PageViewReport implements a report that returns historical data
about Page views.
- Author:
- asaar
|
Method Summary |
protected WCMMode |
getMode()
|
protected Page |
getPage()
|
int |
getPeriod()
|
Iterator<Object[]> |
getResult(Session session)
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 day
Long rollingCount: how many times the page has been viewed in the last 30days
|
void |
setPeriod(int period)
|
| Methods inherited from class com.day.crx.statistics.Report |
getDataNode, getDataPath |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageViewReport
public PageViewReport(String dataPath,
Page page,
WCMMode mode)
- 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
getResult
public Iterator<Object[]> getResult(Session session)
throws RepositoryException
- 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 day
Long rollingCount: how many times the page has been viewed in the last 30days
- Specified by:
getResult in class com.day.crx.statistics.Report
- Throws:
RepositoryException
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
getPage
protected Page getPage()
getMode
protected WCMMode getMode()
Copyright © 2009 Day Management AG. All Rights Reserved.