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

Provide an Iterator to iterate over all the members of groups

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 6.4.2, 7.0-milestone-2
    • 6.4
    • Old Core
    • None
    • Unit
    • Unknown
    • N/A

    Description

      This is about adding a new API in RightsManager to be able to iterate with an Iterator. Right now the API that exists is resolveUsers() and it returns a Collection. Thus if you have 1000 members of a group you'll have to wait till the 1000 docs are loaded before returning. Some code may want to break this into small step and an iterator will allow this (for example if you wish to have a progress bar or in my case to be able to send emails to all users of a group and be able to see the status for each mail before all have been sent).

      See also http://markmail.org/message/7e4e6brinqbq3lzc

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: