Class DocumentStatsStoreItem

  • All Implemented Interfaces:
    XWikiStatsStoreItem

    public class DocumentStatsStoreItem
    extends AbstractStatsStoreItem
    Store document statistics into the database.
    Since:
    1.4M2
    Version:
    $Id: 1679b897e27f224e91cec737297ae1c0f2ad552b $
    • Constructor Detail

      • DocumentStatsStoreItem

        public DocumentStatsStoreItem​(String name,
                                      Date periodDate,
                                      StatsUtil.PeriodType periodType,
                                      String action,
                                      boolean isVisit,
                                      XWikiContext context)
        Create new instance of DocumentStatsStoreItem.
        Parameters:
        name - can be:
        • "" for the entire wiki.
        • the space name.
        • the full document name.
        periodDate - the period date.
        periodType - the period type.
        action - the action made on provided wiki/space/document.
        isVisit - is this part of a user visit.
        context - the XWiki context.
    • Method Detail

      • getId

        public String getId()
        Returns:
        identifier for this type of store item. This value is used to merge same statistics in one database query.