Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-7367

Make default page providers handle next page when results count is unknown

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4.2
    • Fix Version/s: 5.5
    • Component/s: Query & PageProvider
    • Tags:
    • Impact type:
      API added
    • Upgrade notes:
      Hide

      New interface methods: PageProvider#isLastPageAvailable, and PageProvider#setCurrentPageOffset have been added and added to the default abstract implementation.

      Show
      New interface methods: PageProvider#isLastPageAvailable, and PageProvider#setCurrentPageOffset have been added and added to the default abstract implementation.

      Description

      Sometimes, page providers cannot provide the total number of results for a given query (or won't, for performance reasons).
      Default page providers should handle this case gracefully, providing a "next page" link even if results count is unknown, and stopping after a number of "tries" without getting any result.

        Attachments

          Activity

            People

            • Assignee:
              atchertchian Anahide Tchertchian
              Reporter:
              atchertchian Anahide Tchertchian
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: