com.xpn.xwiki.stats.impl
Class DocumentStats
java.lang.Object
com.xpn.xwiki.objects.BaseElement<R>
com.xpn.xwiki.objects.BaseCollection
com.xpn.xwiki.stats.impl.XWikiStats
com.xpn.xwiki.stats.impl.DocumentStats
- All Implemented Interfaces:
- ElementInterface, ObjectInterface, Serializable, Cloneable
public class DocumentStats
- extends XWikiStats
The document statistics database object.
- Version:
- $Id: cfec193cd11854f16088ed1007363b6721fda1d4 $
- See Also:
- Serialized Form
Methods inherited from class com.xpn.xwiki.objects.BaseCollection |
addField, addPropertyForRemoval, apply, clone, get, getClassName, getCustomMappingMap, getDateValue, getDiff, getDoubleValue, getField, getFieldList, getFieldsToRemove, getFloatValue, getIntValue, getIntValue, getLargeStringValue, getListValue, getLongValue, getNumber, getProperties, getPropertyList, getPropertyNames, getRelativeXClassReference, getSetValue, getSortedIterator, getStringValue, getXClass, getXClassReference, merge, merge, put, removeField, safeget, safeput, setClassName, setDateValue, setDBStringListValue, setDocumentReference, setDoubleValue, setFields, setFieldsToRemove, setFloatValue, setIntValue, setLargeStringValue, setLongValue, setName, setNumber, setSetValue, setStringListValue, setStringValue, setXClassReference, toString, toXMLString |
DocumentStats
public DocumentStats()
- Default
DocumentStats
constructor.
DocumentStats
public DocumentStats(String docName,
String action,
Date periodDate,
StatsUtil.PeriodType periodType)
- Parameters:
docName
- the name of the wiki/space/document.action
- the action made on the document ("view", "save", ...).periodDate
- the date of the period.periodType
- the type of the period.
getAction
public String getAction()
- Returns:
- the action made on the document ("view", "save", ...).
setAction
public void setAction(String action)
- Parameters:
action
- the action made on the document ("view", "save", ...).
getUniqueVisitors
public int getUniqueVisitors()
- Returns:
- the number of unique visitors.
setUniqueVisitors
public void setUniqueVisitors(int uniqueVisitors)
- Parameters:
uniqueVisitors
- the number of unique visitors.
incUniqueVisitors
public void incUniqueVisitors()
- Add 1 to the number of unique visitors.
getVisits
public int getVisits()
- Returns:
- the number of visits.
setVisits
public void setVisits(int visits)
- Parameters:
visits
- the number of visits.
incVisits
public void incVisits()
- Add 1 to the number of visits.
Copyright © 2004-2013 XWiki. All Rights Reserved.