public class RevisionCriteria extends Object
XWikiDocument.getRevisions(RevisionCriteria, com.xpn.xwiki.XWikiContext)
Constructor and Description |
---|
RevisionCriteria()
Default constructor, the default query match the versions created by any author, from January 1, 1970, 00:00:00
GMT (epoch) to the maximum possible date (Long.MAX_VALUE), minor versions aren't included
|
RevisionCriteria(String author,
Period period,
Range range,
boolean includeMinorVersions)
Fully featured constructor, allow to set all the query parameters, null arguments are ignored
|
Modifier and Type | Method and Description |
---|---|
String |
getAuthor() |
boolean |
getIncludeMinorVersions()
include minor versions in the set.
|
Date |
getMaxDate() |
Date |
getMinDate() |
Period |
getPeriod() |
Range |
getRange() |
void |
setAuthor(String author) |
void |
setIncludeMinorVersions(boolean includeMinorVersions) |
void |
setPeriod(Period period)
Set the Period (time limits) desired for the results
|
void |
setRange(Range range)
Set the Range (size limits) desired for the results
|
public RevisionCriteria()
public String getAuthor()
public void setAuthor(String author)
author
- the author of version set.public Period getPeriod()
public void setPeriod(Period period)
period
- public Range getRange()
public void setRange(Range range)
range
- desired range @see Rangepublic Date getMinDate()
public Date getMaxDate()
public boolean getIncludeMinorVersions()
public void setIncludeMinorVersions(boolean includeMinorVersions)
includeMinorVersions
- true to include minor versions in the set, false to ignore them.Copyright © 2004–2022 XWiki. All rights reserved.