Class DocumentStats

    • Constructor Detail

      • DocumentStats

        public DocumentStats()
        Default DocumentStats constructor.
      • DocumentStats

        public DocumentStats​(String docName,
                             String action,
                             Date periodDate,
                             StatsUtil.PeriodType periodType)
        Parameters:
        docName - the name of the wiki/space/document.
        action - the action made on the document ("view", "save", ...).
        periodDate - the date of the period.
        periodType - the type of the period.
    • Method Detail

      • getAction

        public String getAction()
        Returns:
        the action made on the document ("view", "save", ...).
      • setAction

        public void setAction​(String action)
        Parameters:
        action - the action made on the document ("view", "save", ...).
      • getUniqueVisitors

        public int getUniqueVisitors()
        Returns:
        the number of unique visitors.
      • setUniqueVisitors

        public void setUniqueVisitors​(int uniqueVisitors)
        Parameters:
        uniqueVisitors - the number of unique visitors.
      • incUniqueVisitors

        public void incUniqueVisitors()
        Add 1 to the number of unique visitors.
      • getVisits

        public int getVisits()
        Returns:
        the number of visits.
      • setVisits

        public void setVisits​(int visits)
        Parameters:
        visits - the number of visits.
      • incVisits

        public void incVisits()
        Add 1 to the number of visits.