Add authz methods to query multiple groups efficiently

Description

Add authz methods as described in the parent task to return (a) group sizes, and (b) members of multiple groups who have a given permission.

Environment

None

Test Plan

None

Activity

Stephen Marquard May 7, 2008 at 6:33 AM

Tested on trunk using webservices to test the authz methods, and full regression test on Section Info using an expanded version of the test plan on Confluence.

Pls merge to 2-5-x.

Stephen Marquard April 30, 2008 at 10:46 AM

Merged to trunk: 45953 (authz) and 45956 (sections)

Stephen Marquard April 28, 2008 at 5:38 AM

This is implemented in the branches for authz and sections, except for 2 methods which need implementing in the standalone Hibernate implementation (see r45848).

Stephen Marquard April 26, 2008 at 2:27 AM

Added 2 methods:

/**

  • Get the set of user ids per group of users who are allowed to perform the function in the named AuthzGroups.
    *
    * @param function
    * The function to check.
    * @param azGroups
    * A collection of the ids of AuthzGroups to consult.
    * @return A Set of String arrays (userid, realm) with user ids per group who are allowed to perform the function in the named AuthzGroups.
    */
    Set getUsersIsAllowedByGroup(String function, Collection azGroups);

/**

  • Get the number of users per group who are allowed to perform the function in the given AuthzGroups.
    *
    * @param function
    * The function to check.
    * @param azGroups
    * A collection of the ids of AuthzGroups to consult.
    * @return A Map (authzgroupid (String) -> user count (Integer) ) of the number of users who are allowed to perform the function in the given AuthzGroups.
    */
    Map getUserCountIsAllowed(String function, Collection azGroups);

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created April 25, 2008 at 9:37 AM
Updated March 27, 2012 at 7:01 AM
Resolved April 30, 2008 at 10:46 AM