AnsweredAssumed Answered

Adding Custom Script APIs

Question asked by _valerio_ on Feb 26, 2010
Latest reply on Mar 2, 2010 by tfrith
HI everybody :D
I read the wiki on Adding Custom Script APIs  on http://wiki.alfresco.com/wiki/3.0_JavaScript_API#How_is_Scripting_integrated_into_Alfresco.3F, but I didn't understand how to create a new java object to implement new methods (for extending the methods still availables in alfresco, like default document.content, and so on) that later will be availables as root objects.
I understood that in the  file script-services-context.xml I should create a bean with the name of my java object (with the methods I want to use), like
<bean id="MY_OBJECT_NAME" parent="baseJavaScriptExtension" class="org.alfresco.repo.jscript.ScriptLogger">
    <property name="extensionName">
        <value>????????</value>
    </property>
</bean>
but I didn't understand how to fill the field ?????? and, specially, in which folder suould I create my new java object.

thanks to all that will answer this question :D

Outcomes