com.day.cq.wcm.core.stats.PageViewStatistics Maven / Gradle / Ivy
/*
* Copyright 1997-2008 Day Management AG
* Barfuesserplatz 6, 4001 Basel, Switzerland
* All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Day Management AG, ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Day.
*/
package com.day.cq.wcm.core.stats;
import java.net.URI;
import java.net.URL;
import com.day.cq.wcm.api.Page;
import com.day.cq.wcm.api.WCMException;
/**
* Utility to access configuration and shortcut Page-report
*/
public interface PageViewStatistics {
/**
* Get the URL that is supposed to receive tracking data from this instance
*
* @return or null
if none configured
*/
URL getTrackingURL();
/**
* Get the URI that is supposed to receive tracking data from this instance.
*
* @return or null
if none configured
*/
URI getTrackingURI();
/**
* Run a report for the given page
* @param page to report
* @return report or null
if none at all
* @throws com.day.cq.wcm.api.WCMException in case of error running report
*/
Object[] report(Page page) throws WCMException;
}