[Building Sakai] How to create and define tools custom roles
Steve Swinsburg
steve.swinsburg at gmail.com
Wed Oct 21 18:27:59 PDT 2009
Hi,
Your tool can define its own permissions and then a user in a site
with those permissions can be granted access to certain functions of
your tool. The roles aren't system wide, they are site-wide, so this
should sort you out. The only thing that is system wide are user
types, but once in a site, a user is assigned a role.
For your tool to register it's own permissions, check out
authz.api.FunctionManager.
Then, if you go to the Admin Realms tool, find a site then find the
roles in that site you can set the permissions for the roles. You'd
then add these updated permissions to the realm templates for new
sites (and backfill them to existing sites, but thats a separate issue).
You can also see here for some more info about roles in sites:
http://steve-on-sakai.blogspot.com/2009/05/roles-in-sakai-sites.html
cheers,
Steve
On 22/10/2009, at 11:36 AM, Tiago Gaspar wrote:
> Hi Guys,
>
> I'm working on a tool for Sakai that requires specific roles. Not
> system-wide roles, but specific tool roles. I couldn't find any
> documentation regarding that. I could implement my own solution to the
> problem, but I would like to follow the Sakai way of doing it. Is
> there a Sakai for doing it? :-)
>
> Appreciate,
> Tiago.
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org
> with a subject of "unsubscribe"
More information about the sakai-dev
mailing list