grouper-users - RE: [grouper-users] gsh permissionAssignments
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: mohan shamachar <>, "" <>
- Subject: RE: [grouper-users] gsh permissionAssignments
- Date: Mon, 11 Feb 2013 20:07:05 +0000
- Accept-language: en-US
- Authentication-results: sfpop-ironport03.merit.edu; dkim=neutral (message not signed) header.i=none
There are two parts to an attribute or a permission. The definition, and the
name.
In this case, when you assign permissions, you are assigning the name, not
the definition.
This is how you find a definition: AttributeDefFinder.findByName
This is how you find a name: AttributeDefNameFinder.findByName
In this case, you need the AttributeDefNameFinder, instead of attribute def
finder. Might not want to name them the same to avoid confusion :)
Thanks,
Chris
-----Original Message-----
From:
[mailto:]
On Behalf Of mohan shamachar
Sent: Monday, February 11, 2013 2:11 PM
To:
Subject: Re: [grouper-users] gsh permissionAssignments
Hi Chris,
ok. I tried the following on the GSH prompt. The first three calls worked.
The assignmentRolePermission call gave me an error:
gsh 0% grouperSession = GrouperSession.startRootSession();
gsh 1% userRole = GroupFinder.findByName(grouperSession,
"AOMS:roles:reporter", true);
gsh 2% permission =
AttributeDefFinder.findByName("AOMS.permissions:level1permission", true);
gsh 3% userRole.getPermissionRoleDelegate().assignRolePermission("report",
permission, PermissionAllowed.ALLOWED);
// Error: unable to evaluate command: Sourced file: inline evaluation of:
``user
Role.getPermissionRoleDelegate().assignRolePermission("report", permission, .
.
. '' : Error in method invocation: Method assignRolePermission(
java.lang.Strin
g, edu.internet2.middleware.grouper.attr.AttributeDef,
edu.internet2.middleware.
grouper.permissions.PermissionAllowed$1 ) not found in
class'edu.internet2.middl
eware.grouper.permissions.PermissionRoleDelegate'
Thanks.
best,
mohan
- [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
- Re: [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
- RE: [grouper-users] gsh permissionAssignments, Gagné Sébastien, 02/11/2013
- Re: RE: [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
- RE: [grouper-users] gsh permissionAssignments, Chris Hyzer, 02/11/2013
- Re: RE: [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
- RE: RE: [grouper-users] gsh permissionAssignments, Chris Hyzer, 02/11/2013
- Re: RE: RE: [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
- RE: RE: [grouper-users] gsh permissionAssignments, Chris Hyzer, 02/11/2013
- Re: RE: [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
- RE: [grouper-users] gsh permissionAssignments, Chris Hyzer, 02/11/2013
- RE: [grouper-users] gsh permissionAssignments, Gagné Sébastien, 02/11/2013
- RE: [grouper-users] gsh permissionAssignments, Chris Hyzer, 02/11/2013
- Re: [grouper-users] gsh permissionAssignments, mohan shamachar, 02/11/2013
Archive powered by MHonArc 2.6.16.