[Building Sakai] In which sakai table names of available tools are stored

Matthew Jones matthew at longsight.com
Wed Jan 18 10:33:06 PST 2012


Like Steve said, all tool registration is done dynamically, the only real
way to do this is using the ToolManager api

ToolManager.findTools(categories, null);

If you call it like this it will call return all tools not stealthed or
hidden, if the category is null it will return all tools, even hidden ones.
ToolManager.findTools(Collections.emptySet(), null);

http://www2.caret.cam.ac.uk/sakaikernel/apidocs/org/sakaiproject/tool/api/ToolManager.html#findTools(java.util.Set,
java.util.Set)

If you run something like this in your tomcat webapps folder,  you should
be able to start to filter out the tool ids that could be available.
find . -name "*.xml" -path "*tools*" | xargs grep -h "tool id"
You'd probably want to clean that up with a regex for *tool id="(.*?)"*though.

On Wed, Jan 18, 2012 at 12:35 PM, Jehan Badshah <jehan.badshah at nu.edu.pk>wrote:

> Thanks!
>
>  how to query/get id (.e.g sakai.announcement etc) and name of registered
> tools which are not stealth.
>
> Thanks
>
>
> On Wed, Jan 18, 2012 at 3:59 PM, Steve Swinsburg <
> steve.swinsburg at gmail.com> wrote:
>
>> Hi,
>>
>> The list of tools are those that are registered with the system, this is
>> dynamic and depends what apps are deployed and in any are stealthed. The
>> names of the tools can be changed though, is this what you are after?
>>
>> cheers,
>> Steve
>>
>>
>>
>>
>>
>> On 18/01/2012, at 6:05 PM, Jehan Badshah wrote:
>>
>> Dear All
>>
>> A user can create new project site using
>>
>> "Worksite Setup" -> New -> Project Site -> *select tools (list of tools
>> are displayed)*
>>
>> In which table name of available tools are stored.
>>
>>
>>
>>
>> Regards
>> ----------------------------------------------------
>> Jehan Badshah | Sr. Software Engineer
>> FAST - National University of Computer and Emerging Sciences
>> A.K. Brohi Road, H-11/4, Islamabad
>> UAN: +92 (0)51 - 111 128 128 ext 344
>>
>>
>>  _______________________________________________
>> 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"
>>
>>
>>
>
>
> --
>
> Regards
> ----------------------------------------------------
> Jehan Badshah | Sr. Software Engineer
> FAST - National University of Computer and Emerging Sciences
> A.K. Brohi Road, H-11/4, Islamabad
> UAN: +92 (0)51 - 111 128 128 ext 344
>
>
>
> _______________________________________________
> 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"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20120118/d8f2a9bd/attachment.html 


More information about the sakai-dev mailing list