<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding Custom Script APIs in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-script-apis/m-p/218120#M171250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The value for &amp;lt;extensionName&amp;gt; is what you want to refer to your java class as from within javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if your java exposed a method called doTest() and you set &amp;lt;extensionName&amp;gt;test&amp;lt;/extensionName&amp;gt; then in javascript you would call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;test.doTest()&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;And your java class should probably go in a jar file on the classpath, eg /alfresco/tomcat/webapps/alfresco/WEB-INF/lib.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And of course the class attribute of the &amp;lt;bean&amp;gt; tag should point to your java class that contains the doTest() method and extends BaseProcessorExtension.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Mar 2010 20:46:01 GMT</pubDate>
    <dc:creator>tfrith</dc:creator>
    <dc:date>2010-03-02T20:46:01Z</dc:date>
    <item>
      <title>Adding Custom Script APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-script-apis/m-p/218119#M171249</link>
      <description>HI everybody &lt;IMG id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; I read the wiki on Adding Custom Script APIs&amp;nbsp; 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, li</description>
      <pubDate>Fri, 26 Feb 2010 15:27:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-script-apis/m-p/218119#M171249</guid>
      <dc:creator>_valerio_</dc:creator>
      <dc:date>2010-02-26T15:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Custom Script APIs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-custom-script-apis/m-p/218120#M171250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The value for &amp;lt;extensionName&amp;gt; is what you want to refer to your java class as from within javascript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if your java exposed a method called doTest() and you set &amp;lt;extensionName&amp;gt;test&amp;lt;/extensionName&amp;gt; then in javascript you would call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;test.doTest()&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;And your java class should probably go in a jar file on the classpath, eg /alfresco/tomcat/webapps/alfresco/WEB-INF/lib.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And of course the class attribute of the &amp;lt;bean&amp;gt; tag should point to your java class that contains the doTest() method and extends BaseProcessorExtension.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 20:46:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-custom-script-apis/m-p/218120#M171250</guid>
      <dc:creator>tfrith</dc:creator>
      <dc:date>2010-03-02T20:46:01Z</dc:date>
    </item>
  </channel>
</rss>

