<?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 How is the script layer implemented in alfresco ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-is-the-script-layer-implemented-in-alfresco/m-p/234743#M187873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a javascript layer (web script) in alfresco, which can expose the java service to javascript, and it can still make use of javascript's grammar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know how alfresco implement this script layer, and make it support javascript grammar ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any references ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Oct 2010 10:17:05 GMT</pubDate>
    <dc:creator>zengqingyi12</dc:creator>
    <dc:date>2010-10-16T10:17:05Z</dc:date>
    <item>
      <title>How is the script layer implemented in alfresco ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-is-the-script-layer-implemented-in-alfresco/m-p/234743#M187873</link>
      <description>There is a javascript layer (web script) in alfresco, which can expose the java service to javascript, and it can still make use of javascript's grammar.I want to know how alfresco implement this script layer, and make it support javascript grammar ?Any references ?Thanks in advance !</description>
      <pubDate>Sat, 16 Oct 2010 10:17:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-is-the-script-layer-implemented-in-alfresco/m-p/234743#M187873</guid>
      <dc:creator>zengqingyi12</dc:creator>
      <dc:date>2010-10-16T10:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: How is the script layer implemented in alfresco ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-is-the-script-layer-implemented-in-alfresco/m-p/234744#M187874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alfresco uses Mozzila Rhino that provides the Java Script engine that exposes Java Objects through Java Script.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition there's an adapter layer that takes some of the Java APIs and simplifies and converts the Java API into something suitable for Java Script.&amp;nbsp;&amp;nbsp; The primary example of this is the ScriptNode which among other things exposes properties in a java script freindly manner.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Oct 2010 11:38:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-is-the-script-layer-implemented-in-alfresco/m-p/234744#M187874</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-10-16T11:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: How is the script layer implemented in alfresco ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-is-the-script-layer-implemented-in-alfresco/m-p/234745#M187875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Alfresco uses Mozzila Rhino that provides the Java Script engine that exposes Java Objects through Java Script.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;In addition there's an adapter layer that takes some of the Java APIs and simplifies and converts the Java API into something suitable for Java Script.&amp;nbsp;&amp;nbsp; The primary example of this is the ScriptNode which among other things exposes properties in a java script freindly manner.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much ,I just see a Rhino example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;$ cat test.js&lt;BR /&gt;java.lang.System.out.println("hi, mom!");&lt;BR /&gt;$ java org.mozilla.javascript.tools.jsc.Main test.js&lt;BR /&gt;$ ls *.class&lt;BR /&gt;test.class&lt;BR /&gt;$ java test&lt;BR /&gt;hi, mom!&lt;BR /&gt;$ java org.mozilla.javascript.tools.jsc.Main -extends java.applet.Applet&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -implements java.lang.Runnable NervousText.js&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;It seems that are java code inside test.js, it seems we just need to javac test.js(rename to .java)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where can I see more deeply examples or references ?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Oct 2010 12:23:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-is-the-script-layer-implemented-in-alfresco/m-p/234745#M187875</guid>
      <dc:creator>zengqingyi12</dc:creator>
      <dc:date>2010-10-16T12:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: How is the script layer implemented in alfresco ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-is-the-script-layer-implemented-in-alfresco/m-p/234746#M187876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Oct 2010 16:44:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-is-the-script-layer-implemented-in-alfresco/m-p/234746#M187876</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-10-16T16:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: How is the script layer implemented in alfresco ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-is-the-script-layer-implemented-in-alfresco/m-p/234747#M187877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Thanks, I am sorry that I overlooked this page. &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Oct 2010 03:08:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-is-the-script-layer-implemented-in-alfresco/m-p/234747#M187877</guid>
      <dc:creator>zengqingyi12</dc:creator>
      <dc:date>2010-10-17T03:08:05Z</dc:date>
    </item>
  </channel>
</rss>

