[Building Sakai] How to register a new function and make it effective?
Shun Zhang
aaashun at gmail.com
Fri Jun 17 01:28:06 PDT 2011
I'm now developing an app based on sakai 2.8.0. I want to make my tool
hidden to student and visiable to teacher, so I do the following
steps, but it doesn't work:
1. register new fuctions in registration xml (I don't want to use the
existed "content.new" function).
<registration>
<tool id="aid201105.questionpool" title="Question Pool" description="">
<category name="course" />
<configuration name="functions.require"
value="aid201105.questionpool.new" />
</tool>
<function name="aid201105.questionpool.new" />
<function name="aid201105.questionpool.read" />
<function name="aid201105.questionpool.revise" />
<function name="aid201105.questionpool.delete" />
</registration>
2. authorize
Admin's workspace --> Reams --> Edit: Realm !site.template.course -->
Set the Functions for Role "Instructor" --> check
"aid201105.questionpool.new"
3. then I login and enter a course site as an instructor, but I can
not see "Question Pool" tool on the left hand menu.
And securityService.unlock(userId, "aid201105.questionpool.new",
siteService.siteReference(siteId)) returns false.
I'm confused now.
Thanks!
More information about the sakai-dev
mailing list