Class PageView

java.lang.Object
com.day.crx.statistics.Entry
com.day.cq.wcm.core.stats.PageView

public class PageView extends Entry
PageView provides an Entry for storing Page related statistics.
  • Field Details

    • VIEWS

      public static final String VIEWS
      Name of the property that contains the view count
      See Also:
    • ROLLING_WEEK_COUNT

      public static final String ROLLING_WEEK_COUNT
      Name of the property that contains the rolling week count
      See Also:
    • ROLLING_MONTH_COUNT

      public static final String ROLLING_MONTH_COUNT
      Name of the property that contains the rolling month count
      See Also:
  • Constructor Details

    • PageView

      public PageView(String pathPrefix, Page page, WCMMode mode)
      Creates a new PageView instance.
      Parameters:
      pathPrefix - the location where the entry information will be stored
      page - the page that was viewed
      mode - the WCM mode that was used to view the page
  • Method Details

    • write

      public void write(Node node) throws RepositoryException
      Writes the statistics to the passed node.
      Overrides:
      write in class Entry
      Parameters:
      node - the node where to write the statistics
      Throws:
      RepositoryException - if an error occurs while writing