public class DocumentStats extends XWikiStats
Modifier and Type | Class and Description |
---|---|
static class |
DocumentStats.Property
The properties of document statistics object.
|
currentReferenceDocumentReferenceResolver, fields, fieldsToRemove, number, relativeEntityReferenceResolver
documentReference, ownerDocument, referenceCache
Constructor and Description |
---|
DocumentStats()
Default
DocumentStats constructor. |
DocumentStats(String docName,
String action,
Date periodDate,
StatsUtil.PeriodType periodType) |
Modifier and Type | Method and Description |
---|---|
String |
getAction() |
int |
getUniqueVisitors() |
int |
getVisits() |
void |
incUniqueVisitors()
Add 1 to the number of unique visitors.
|
void |
incVisits()
Add 1 to the number of visits.
|
void |
setAction(String action) |
void |
setUniqueVisitors(int uniqueVisitors) |
void |
setVisits(int visits) |
equals, fromXML, getLocalKey, getPageViews, getPeriod, hashCode, incPageViews, setPageViews, setPeriod, toXML
addField, addPropertyForRemoval, apply, clone, get, getClassName, getCurrentReferenceDocumentReferenceResolver, getCustomMappingMap, getDateValue, getDiff, getDoubleValue, getField, getFieldList, getFieldsToRemove, getFloatValue, getIntValue, getIntValue, getLargeStringValue, getListValue, getLongValue, getNumber, getProperties, getPropertyList, getPropertyNames, getRelativeEntityReferenceResolver, getRelativeXClassReference, getSetValue, getSortedIterator, getStringValue, getXClass, getXClassReference, merge, merge, mergeField, put, removeField, safeget, safeput, setClassName, setDateValue, setDBStringListValue, setDocumentReference, setDoubleValue, setFields, setFieldsToRemove, setFloatValue, setIntValue, setLargeStringValue, setLongValue, setNumber, setOwnerDocument, setSetValue, setStringListValue, setStringValue, setXClassReference, toXML, toXMLString
createReference, fromXML, getDocumentReference, getId, getLocalEntityReferenceSerializer, getLocalization, getLocalUidStringEntityReferenceSerializer, getMergeManager, getName, getOwnerDocument, getPrettyName, getReference, getXWikiContext, localizePlain, localizePlainOrKey, setId, setName, setPrettyName, toString, toXMLString
finalize, getClass, notify, notifyAll, wait, wait, wait
getDocumentReference, getName, getReference, setName, toString
public DocumentStats()
DocumentStats
constructor.public DocumentStats(String docName, String action, Date periodDate, StatsUtil.PeriodType periodType)
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.public String getAction()
public void setAction(String action)
action
- the action made on the document ("view", "save", ...).public int getUniqueVisitors()
public void setUniqueVisitors(int uniqueVisitors)
uniqueVisitors
- the number of unique visitors.public void incUniqueVisitors()
public int getVisits()
public void setVisits(int visits)
visits
- the number of visits.public void incVisits()
Copyright © 2004–2022 XWiki. All rights reserved.