Class PageView


  • public class PageView
    extends com.day.crx.statistics.Entry
    PageView provides an Entry for storing Page related statistics.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ROLLING_MONTH_COUNT
      Name of the property that contains the rolling month count
      static java.lang.String ROLLING_WEEK_COUNT
      Name of the property that contains the rolling week count
      static java.lang.String VIEWS
      Name of the property that contains the view count
    • Constructor Summary

      Constructors 
      Constructor Description
      PageView​(java.lang.String pathPrefix, Page page, WCMMode mode)
      Creates a new PageView instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(javax.jcr.Node node)
      Writes the statistics to the passed node.
      • Methods inherited from class com.day.crx.statistics.Entry

        getPath, getPathPrefix, getTimestamp, setPathPrefix, setTimestamp, write
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • VIEWS

        public static final java.lang.String VIEWS
        Name of the property that contains the view count
        See Also:
        Constant Field Values
      • ROLLING_WEEK_COUNT

        public static final java.lang.String ROLLING_WEEK_COUNT
        Name of the property that contains the rolling week count
        See Also:
        Constant Field Values
      • ROLLING_MONTH_COUNT

        public static final java.lang.String ROLLING_MONTH_COUNT
        Name of the property that contains the rolling month count
        See Also:
        Constant Field Values
    • Constructor Detail

      • PageView

        public PageView​(java.lang.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 Detail

      • write

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