Class RevisionCriteriaFactory


  • public class RevisionCriteriaFactory
    extends Object
    • 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