com.xpn.xwiki.stats.impl.xwiki
Class DocumentStatsStoreItem
java.lang.Object
com.xpn.xwiki.stats.impl.xwiki.AbstractStatsStoreItem
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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-2013 XWiki. All Rights Reserved.