com.xpn.xwiki.stats.impl.xwiki
Class RefererStatsStoreItem

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

public class RefererStatsStoreItem
extends AbstractStatsStoreItem

Store referer statistics into the database.

Since:
1.4M2
Version:
$Id: e0b3852d147a6df9f5e019b0daa48ae1fb75ff8c $

Field Summary
 
Fields inherited from class com.xpn.xwiki.stats.impl.xwiki.AbstractStatsStoreItem
context, name, period, periodDate, periodType
 
Constructor Summary
RefererStatsStoreItem(String name, Date periodDate, StatsUtil.PeriodType periodType, String referer, XWikiContext context)
          Create new instance of RefererStatsStoreItem.
 
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

RefererStatsStoreItem

public RefererStatsStoreItem(String name,
                             Date periodDate,
                             StatsUtil.PeriodType periodType,
                             String referer,
                             XWikiContext context)
Create new instance of RefererStatsStoreItem.

Parameters:
name - the full name of the document.
periodDate - the period date.
periodType - the period type.
referer - the referer.
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-2013 XWiki. All Rights Reserved.