directory-fortress mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Pike <clp...@psu.edu>
Subject Re: Load Admin Permissions
Date Mon, 15 May 2017 19:52:12 GMT
Won't reviewMgr.findPermissions only find permissions that are already loaded into ldap?



----- Original Message -----
From: "Shawn McKinney" <smckinney@apache.org>
To: fortress@directory.apache.org
Sent: Monday, May 15, 2017 3:42:31 PM
Subject: Re: Load Admin Permissions

> On May 15, 2017, at 2:31 PM, Shawn McKinney <smckinney@apache.org> wrote:
> 
> Chris, the list of all admin permissions is returned by calling this api:
> http://directory.apache.org/fortress/gen-docs/latest/apidocs/org/apache/directory/fortress/core/DelReviewMgr.html#findRoles-java.lang.String-

er, let’s try again.  This is the API you would call:

perm.setAdmin( isAdmin );
permsList = reviewMgr.findPermissions( perm );

which is to say use the reviewmgr.findpermissions but set the admin flag on the perm entity.

Thinking about this a bit, it should be implemented in the delreviewmgr, even if it just wraps
the reveiwmgr call as this is confusing to the user.

Hope this helps.

Shawn

Mime
View raw message