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

Improved query API for UserManager

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.3
    • Component/s: Directory
    • Impact type:
      API change
    • Upgrade notes:
      Hide

      New UserManager query APIs using a QueryBuilder:

      • UserManager.searchUsers(QueryBuilder)
      • UserManager.searchGroups(QueryBuilder)

      New MultiTenantUserManager query APIs like above but with a context:

      • MultiTenantUserManager.searchUsers(QueryBuilder, context)
      • MultiTenantUserManager.searchGroups(QueryBuilder, context)

      New GroupComputer API using a QueryBuilder:

      • GroupComputer.searchGroups(QueryBuilder)
      Show
      New UserManager query APIs using a QueryBuilder : UserManager.searchUsers(QueryBuilder) UserManager.searchGroups(QueryBuilder) New MultiTenantUserManager query APIs like above but with a context: MultiTenantUserManager.searchUsers(QueryBuilder, context) MultiTenantUserManager.searchGroups(QueryBuilder, context) New GroupComputer API using a QueryBuilder : GroupComputer.searchGroups(QueryBuilder)
    • Sprint:
      nxFG 10.3.5, nxFG 10.3.6, nxFG 10.3.7, nxFG 10.3.8, nxFG 10.3.9
    • Story Points:
      3

      Description

      The UserManager search methods (searchUsers, searchGroups) must support paging, in order to efficiently return user or group lists to UI-based clients. Also note that when paging is used, an ordering must be done as well, probably based on the id.

      This also involves refactoring the searchUsers and searchGroups methods that take a pattern to use an improved API to do the underlying directory query in just one call (doing OR-based search) that does paging at the same time (see NXP-19262), instead of doing several queries and combining them together which then is a problem if paging needs to be done.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days
                  3d