cancel
Showing results for 
Search instead for 
Did you mean: 

Dictionary service

jsjsjs
Champ in-the-making
Champ in-the-making
Just wondering when (if ever) things like the dictionary service (specifically aspects, property definitions, etc) will be accessable from Web Scripts?
Will you be exposing a lot more of the Java stuff as JavaScript? Is there a sneaky way I can access more of the Java objects today, from the JavaScript API?
1 REPLY 1

jbarmash
Champ in-the-making
Champ in-the-making
Yes.  You can expose additional Java code to JavaScript as Custom JavaScript Root object.   It's pretty easy.

Here is the wiki:

http://wiki.alfresco.com/wiki/JavaScript_API#Adding_Custom_Script_APIs

You can expose any of dictionary service's functionality that you need this way. 

As far as future - we are always enhancing our APIs, though through this easy extensibility mechanism, even if we don't expose the functionality you need, you can easily add it.