public class XWikiStats extends BaseCollection
| Modifier and Type | Class and Description |
|---|---|
static class |
XWikiStats.Property
The properties of statistics object.
|
currentReferenceDocumentReferenceResolver, fields, fieldsToRemove, number, relativeEntityReferenceResolverdocumentReference, ownerDocument, referenceCache| Constructor and Description |
|---|
XWikiStats()
Default constructor.
|
XWikiStats(Date periodDate,
StatsUtil.PeriodType periodtype) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
fromXML(org.dom4j.Element oel)
Initialize statistics object from XML schema.
|
protected String |
getLocalKey() |
int |
getPageViews() |
int |
getPeriod() |
int |
hashCode() |
void |
incPageViews()
Add 1 to the counter of view action of this statistic.
|
void |
setPageViews(int pageViews) |
void |
setPeriod(int period) |
org.dom4j.Element |
toXML(BaseClass bclass) |
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, toXMLStringcreateReference, fromXML, getDocumentReference, getId, getLocalEntityReferenceSerializer, getLocalization, getLocalUidStringEntityReferenceSerializer, getMergeManager, getName, getOwnerDocument, getPrettyName, getReference, getXWikiContext, localizePlain, localizePlainOrKey, setId, setName, setPrettyName, toString, toXMLStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetDocumentReference, getName, getReference, setName, toStringpublic XWikiStats()
public XWikiStats(Date periodDate, StatsUtil.PeriodType periodtype)
periodDate - the period date.periodtype - the period type.public int getPeriod()
public void setPeriod(int period)
period - the time when statistic was stored.public int getPageViews()
public void setPageViews(int pageViews)
pageViews - the counter of view action of this statistic.public void incPageViews()
protected String getLocalKey()
getLocalKey in class BaseElementhashCode().public int hashCode()
hashCode in class BaseElementpublic boolean equals(Object obj)
equals in class BaseCollectionpublic org.dom4j.Element toXML(BaseClass bclass)
toXML in interface ObjectInterfacetoXML in class BaseCollectionpublic void fromXML(org.dom4j.Element oel)
throws XWikiException
fromXML in class BaseElementoel - the XML root node containing statistics datas.XWikiException - error when parsing XML schema.Copyright © 2004–2021 XWiki. All rights reserved.