[Building Sakai] Authorization of new tools

Hui Jin hj2168 at columbia.edu
Fri Oct 16 06:56:54 PDT 2009


I have tried both FunctionManager and the <function> tag in my xml file. But the it doesn't create any record in SAKAI_REALM_FUNCTION table. I can see my function is registered with the FunctionManager. What it does is that put the function in the list m_registeredFunctions. Did I miss anything? 

Thanks,

Hui
 

-----Original Message-----
From: Jon Gorrono [mailto:jpgorrono at ucdavis.edu] 
Sent: Thursday, October 08, 2009 8:24 PM
To: Steve Swinsburg
Cc: Hui Jin; sakai-dev at collab.sakaiproject.org
Subject: Re: [Building Sakai] Authorization of new tools

You can also use the tool registration xml file to register
functions... this is the xml file in the directory named 'tools' in
the web root of the tool:

<registration>
  <function name="user.message.via.sms"/>
.
.
.

</registration>

For obscure (to me) reasons, this method is considered less ideal than
programmatic registration.

On Thu, Oct 8, 2009 at 2:22 PM, Steve Swinsburg
<steve.swinsburg at gmail.com> wrote:
> Hi,
>
> You register the new permissions with the authz.api.FunctionManager.
>
> Rule of thumb: Don't insert anything manually into any database table
> that you don't control in your own tool. If you need to do it, there's
> an API.
>
> cheers,
> Steve
>
> On 09/10/2009, at 1:39 AM, Hui Jin wrote:
>
>> Hi,
>>
>> I'm developing a new tool in Sakai. I would like to use Sakai
>> authorization for the tool so I can assign permissions to users. I
>> guess
>> all the functions need to be put into table SAKAI_REALM_FUNCTION in
>> order to appear in the list when we assign permissions to roles in the
>> realm. But I couldn't find a tool to insert the tool function into
>> SAKAI_REALM_FUNCTION. It's not good doing this manually. Can somebody
>> guide me through this?
>>
>> Thanks,
>>
>> Hui
>> _______________________________________________
>> 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"
>
> _______________________________________________
> 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"
>



-- 
Jon Gorrono
PGP Key: 0x5434509D -
http{pgp.mit.edu:11371/pks/lookup?search=0x5434509D&op=index}
Thawte Notary - https{www.thawte.com/cgi/personal/wot/directory.exe?node=312}
GSWoT Introducer - {GSWoT:US75 5434509D Jon P. Gorrono <jpgorrono - gswot.org>}
http{ats.ucdavis.edu}

Sent from Davis, CA, United States


More information about the sakai-dev mailing list