Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] gsh permissionAssignments

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] gsh permissionAssignments


Chronological Thread 
  • From: Gagné Sébastien <>
  • To: "mohan shamachar" <>, <>
  • Subject: RE: [grouper-users] gsh permissionAssignments
  • Date: Mon, 11 Feb 2013 14:12:37 -0500
  • Authentication-results: sfpop-ironport04.merit.edu; dkim=neutral (message not signed) header.i=none

You used a string instead of the Role object
FROM :
gsh 3%
userRole.getPermissionRoleDelegate().assignRolePermission("report",permission,
PermissionAllowed.ALLOWED);

TO :
gsh 3%
userRole.getPermissionRoleDelegate().assignRolePermission(userRole,permission,
PermissionAllowed.ALLOWED);


-----Message d'origine-----
De :


[mailto:]
De la part de mohan shamachar
Envoyé : 11 février 2013 14:11
À :

Objet : 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



Archive powered by MHonArc 2.6.16.

Top of Page