nyuatlas/3akai-ux — pull request #10 by payten (2011-11-24 23:13:25+00:00)
Title: ATLASINT-120 Under Me/You menu create a place holder for Gradebook (Sakai OAE)

In response to JIRA issue: https://jira.nyu.edu/jira/browse/ATLASINT-120

Hi Chris,

To tackle this one I've added the "My Gradecenter" menu item to the sakai_config.Navigation structure, but with a extra property "pseudogroup".

This property is checked in top navigation.js and items with this property are only added to the menu if the current user is a member of this pseudogroup.

The following curl scripts complement the above changes by adding the psuedogroup and allowing addition of groups and users to the psuedogroup:

1. Create pseudogroup

curl --user admin:admin -F:name=g-gradecenter http://localhost:8080/system/userManager/group.create.html

2. Add members to this pseudogroup

-- a group
curl -u admin:admin -F ":member=/system/userManager/group/my-group" http://localhost:8080/system/userManager/group/g-gradecenter.update.html

-- a user
curl -u admin:admin -F ":member=/system/userManager/user/pg1025" http://localhost:8080/system/userManager/group/g-gradecenter.update.html

3. Can check if these psuedogroup is looking ok via:

curl http://localhost:8080//system/userManager/group/g-gradecenter.json | python -mjson.tool

Let me know what you think.

Cheers!
Payten