com.xpn.xwiki.criteria.impl
Class RevisionCriteriaFactory

java.lang.Object
  extended by com.xpn.xwiki.criteria.impl.RevisionCriteriaFactory

public class RevisionCriteriaFactory
extends Object


Constructor Summary
RevisionCriteriaFactory()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevisionCriteriaFactory

public RevisionCriteriaFactory()
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 set
includeMinorVersions - 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 created
includeMinorVersions - 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 set
period - 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 set
period - the time period during which the revisions has been created
includeMinorVersions - include minor versions in the set
Returns:
a new revision criteria


Copyright © 2004-2013 XWiki. All Rights Reserved.