|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xpn.xwiki.criteria.impl.RevisionCriteria
public class RevisionCriteria
information about document versions used to retreive a set of document versions.
XWikiDocument.getRevisions(RevisionCriteria, com.xpn.xwiki.XWikiContext)
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RevisionCriteria()
public RevisionCriteria(String author, Period period, Range range, boolean includeMinorVersions)
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |