Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2159

Make revision querying easier by adding getRevisions(RevisionCriteria) method to Document, add a CriteriaService to XWiki

    XMLWordPrintable

Details

    Description

      • Move the Criteria classes defined for the stats (Period, Scope, Interval, Duration) and their factories to a new com.xpn.xwiki.criteria package
      • Rename Interval into Range as it's badly named I think
      • Move the get*Factory() methods from com.xpn.api.StatsService into a com.xpn.api.CriteriaService class
      • Add a getCriteriaService() method in XWiki
      • Create a com.xpn.xwiki.criteria.RevisionCriteria class with createRevisionCriteria(author, Period, Range, isMinorEdit) + all other signatures without the parameters. For example: CreateRevisionCriteria() for all revisions for all authords, all periods, all range, etc.
      • have Document.getRevisions use those criteria: getRevisions(RevisionCriteria)

      Attachments

        Issue Links

          Activity

            People

              jvdrean Jean-Vincent Drean
              jvdrean Jean-Vincent Drean
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: