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

Provide an Iterator to iterate over all the members of groups

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.4
    • Fix Version/s: 6.4.2, 7.0-milestone-2
    • Component/s: Old Core
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: