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

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3 RC1
    • Fix Version/s: 1.4 M1
    • Labels:
      None
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: