public class XWikiStats extends BaseCollection
Modifier and Type | Class and Description |
---|---|
static class |
XWikiStats.Property
The properties of statistics object.
|
currentReferenceDocumentReferenceResolver, fields, fieldsToRemove, number, relativeEntityReferenceResolver
documentReference, 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, 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 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 BaseElement
hashCode()
.public int hashCode()
hashCode
in class BaseElement
public boolean equals(Object obj)
equals
in class BaseCollection
public org.dom4j.Element toXML(BaseClass bclass)
toXML
in interface ObjectInterface
toXML
in class BaseCollection
public void fromXML(org.dom4j.Element oel) throws XWikiException
fromXML
in class BaseElement
oel
- the XML root node containing statistics datas.XWikiException
- error when parsing XML schema.Copyright © 2004–2022 XWiki. All rights reserved.