Package com.xpn.xwiki.criteria.impl
Class RevisionCriteriaFactory
- java.lang.Object
-
- com.xpn.xwiki.criteria.impl.RevisionCriteriaFactory
-
public class RevisionCriteriaFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description RevisionCriteriaFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RevisionCriteria
createRevisionCriteria()
Creates a default RevisionCriteria, the default criteria matches the versions created by any author, from January 1, 1970, 00:00:00 GMT (epoch) to the current date, minor versions aren't included.RevisionCriteria
createRevisionCriteria(Period period)
Creates a revision criteria matching the revisions created by any author, during the given period.RevisionCriteria
createRevisionCriteria(Period period, boolean includeMinorVersions)
Creates a revision criteria matching the revisions created by any author, during the given period.RevisionCriteria
createRevisionCriteria(String author)
Creates a revision criteria matching all the revisions created by the given author.RevisionCriteria
createRevisionCriteria(String author, boolean includeMinorVersions)
Creates a revision criteria matching all the revisions created by the given author.RevisionCriteria
createRevisionCriteria(String author, Period period)
Creates a revision criteria matching the revisions created by the given author, during the given period.RevisionCriteria
createRevisionCriteria(String author, Period period, boolean includeMinorVersions)
Creates a revision criteria matching the revisions created by the given author, during the given period.
-
-
-
Method Detail
-
createRevisionCriteria
public RevisionCriteria createRevisionCriteria()
Creates a default RevisionCriteria, the default criteria matches the versions created by any author, from January 1, 1970, 00:00:00 GMT (epoch) to the current date, minor versions aren't included.
-
createRevisionCriteria
public RevisionCriteria createRevisionCriteria(String author)
Creates a revision criteria matching all the revisions created by the given author.- Parameters:
author
- the author of the result set- Returns:
- a new revision criteria
-
createRevisionCriteria
public RevisionCriteria createRevisionCriteria(String author, boolean includeMinorVersions)
Creates a revision criteria matching all the revisions created by the given author.- Parameters:
author
- the author of the result setincludeMinorVersions
- include minor versions in the set- Returns:
- a new revision criteria
-
createRevisionCriteria
public RevisionCriteria createRevisionCriteria(Period period)
Creates a revision criteria matching the revisions created by any author, during the given period.- Parameters:
period
- the time period during which the revisions has been created- Returns:
- a new revision criteria
-
createRevisionCriteria
public RevisionCriteria createRevisionCriteria(Period period, boolean includeMinorVersions)
Creates a revision criteria matching the revisions created by any author, during the given period.- Parameters:
period
- the time period during which the revisions has been createdincludeMinorVersions
- include minor versions in the set- Returns:
- a new revision criteria
-
createRevisionCriteria
public RevisionCriteria createRevisionCriteria(String author, Period period)
Creates a revision criteria matching the revisions created by the given author, during the given period.- Parameters:
author
- the author of the result setperiod
- the time period during which the revisions has been created- Returns:
- a new revision criteria
-
createRevisionCriteria
public RevisionCriteria createRevisionCriteria(String author, Period period, boolean includeMinorVersions)
Creates a revision criteria matching the revisions created by the given author, during the given period.- Parameters:
author
- the author of the result setperiod
- the time period during which the revisions has been createdincludeMinorVersions
- include minor versions in the set- Returns:
- a new revision criteria
-
-