Package 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: 1679b897e27f224e91cec737297ae1c0f2ad552b $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.stats.impl.xwiki.AbstractStatsStoreItem
context, name, period, periodDate, periodType
-
-
Constructor Summary
Constructors Constructor Description DocumentStatsStoreItem(String name, Date periodDate, StatsUtil.PeriodType periodType, String action, boolean isVisit, XWikiContext context)
Create new instance ofDocumentStatsStoreItem
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
DocumentStatsStoreItem
public DocumentStatsStoreItem(String name, Date periodDate, StatsUtil.PeriodType periodType, String action, boolean isVisit, XWikiContext context)
Create new instance ofDocumentStatsStoreItem
.- 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 classAbstractStatsStoreItem
- Parameters:
stats
- the list of statistics item to store.
-
-