com.xpn.xwiki.stats.impl.xwiki
Class DocumentStatsStoreItem

java.lang.Object
  extended by com.xpn.xwiki.stats.impl.xwiki.AbstractStatsStoreItem
      extended by com.xpn.xwiki.stats.impl.xwiki.DocumentStatsStoreItem
All Implemented Interfaces:
XWikiStatsStoreItem

public class DocumentStatsStoreItem
extends AbstractStatsStoreItem

Store document statistics into the database.

Since:
1.4M2
Version:
$Id: 9ffaf6dd65e1c075d6df111c9181eb4adbfb23c9 $

Field Summary
 
Fields inherited from class com.xpn.xwiki.stats.impl.xwiki.AbstractStatsStoreItem
context, name, period, periodDate, periodType
 
Constructor Summary
DocumentStatsStoreItem(String name, Date periodDate, StatsUtil.PeriodType periodType, String action, boolean isVisit, XWikiContext context)
          Create new instance of DocumentStatsStoreItem.
 
Method Summary
 String getId()
           
 void storeInternal(List<XWikiStatsStoreItem> stats)
          Store provided statistics into the database.
 
Methods inherited from class com.xpn.xwiki.stats.impl.xwiki.AbstractStatsStoreItem
store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

storeInternal

public void storeInternal(List<XWikiStatsStoreItem> stats)
Description copied from class: AbstractStatsStoreItem
Store provided statistics into the database.

Specified by:
storeInternal in class AbstractStatsStoreItem
Parameters:
stats - the list of statistics item to store.


Copyright © 2004–2014 XWiki. All rights reserved.