<?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: What's it about: com.vmware.scripting.javascript.allow-native-object in vCenter Orchestrator Plug-in SDK Discussions</title>
    <link>https://communities.vmware.com/t5/vCenter-Orchestrator-Plug-in-SDK/What-s-it-about-com-vmware-scripting-javascript-allow-native/m-p/2633704#M715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Updated link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www-archive.mozilla.org/rhino/apidocs/org/mozilla/javascript/ClassShutter.html"&gt;https://www-archive.mozilla.org/rhino/apidocs/org/mozilla/javascript/ClassShutter.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2018 15:13:31 GMT</pubDate>
    <dc:creator>iiliev</dc:creator>
    <dc:date>2018-11-26T15:13:31Z</dc:date>
    <item>
      <title>What's it about: com.vmware.scripting.javascript.allow-native-object</title>
      <link>https://communities.vmware.com/t5/vCenter-Orchestrator-Plug-in-SDK/What-s-it-about-com-vmware-scripting-javascript-allow-native/m-p/2633700#M711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When playing around with java.util.*-classes (see &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://communities.vmware.com/message/1808053#1808053"&gt;http://communities.vmware.com/message/1808053#1808053&lt;/A&gt;&lt;SPAN&gt; ), I recognized following log entry in server.log (server set to loglevel "ALL"):&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;2011-08-09 12:22:35.532+0200 DEBUG [MainScriptingObject] Found 'com.vmware.scripting.javascript.allow-native-object' property to false, java class usage removed from scripting&lt;/PRE&gt;&lt;P lang="de"&gt;&lt;/P&gt;&lt;P lang="de" style="margin:0in;font-family:Calibri;font-size:11.0pt"&gt;Any ideas, what this means?&lt;/P&gt;&lt;P lang="de"&gt;&lt;/P&gt;&lt;P lang="de" style="margin:0in;font-family:Calibri;font-size:11.0pt"&gt;BTW: If you set it to true in vmo.properties, the log-entry changes&amp;nbsp; correspondingly, but the only change in behaviour I found when working with java.io.File-Objects.&lt;/P&gt;&lt;P lang="de"&gt;&lt;/P&gt;&lt;P lang="de" style="margin:0in;font-family:Calibri;font-size:11.0pt"&gt;Thanks in advance!&lt;/P&gt;&lt;P lang="de" style="margin:0in;font-family:Calibri;font-size:11.0pt"&gt;Regards,&lt;/P&gt;&lt;P lang="de" style="margin:0in;font-family:Calibri;font-size:11.0pt"&gt;Joerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 10:38:22 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vCenter-Orchestrator-Plug-in-SDK/What-s-it-about-com-vmware-scripting-javascript-allow-native/m-p/2633700#M711</guid>
      <dc:creator>tschoergez</dc:creator>
      <dc:date>2011-08-09T10:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: What's it about: com.vmware.scripting.javascript.allow-native-object</title>
      <link>https://communities.vmware.com/t5/vCenter-Orchestrator-Plug-in-SDK/What-s-it-about-com-vmware-scripting-javascript-allow-native/m-p/2633701#M712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This property is used to filter Java classes that are visible to scripts. For more information, try googling for ClassShutter (for example, the javadoc for this interface is listed here &lt;A href="http://www.jarvana.com/jarvana/view/rhino/js/1.6R6-candidate2/js-1.6R6-candidate2-javadoc.jar!/org/mozilla/javascript/ClassShutter.html"&gt;http://www.jarvana.com/jarvana/view/rhino/js/1.6R6-candidate2/js-1.6R6-candidate2-javadoc.jar!/org/mozilla/javascript/ClassShutter.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic in our code is the following:&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;if (property "com.vmware.scripting.javascript.allow-native-object" is false)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (property "com.vmware.scripting.rhino-class-shutter-file" defines a valid file name) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load shutters from this file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load shutters from file 'PatternClassShutter.list' // currently, this file contains one line - java.util.*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Context.getCurrentContext().setClassShutter(shutters loaded above);&lt;/P&gt;&lt;P&gt;} else {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // no shutters defined&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Ilian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 08:13:30 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vCenter-Orchestrator-Plug-in-SDK/What-s-it-about-com-vmware-scripting-javascript-allow-native/m-p/2633701#M712</guid>
      <dc:creator>iiliev</dc:creator>
      <dc:date>2011-08-11T08:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: What's it about: com.vmware.scripting.javascript.allow-native-object</title>
      <link>https://communities.vmware.com/t5/vCenter-Orchestrator-Plug-in-SDK/What-s-it-about-com-vmware-scripting-javascript-allow-native/m-p/2633702#M713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, this helps a lot!&lt;/P&gt;&lt;P&gt;Thanks for the explanation, it absolutley makes sense now...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 20:25:44 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vCenter-Orchestrator-Plug-in-SDK/What-s-it-about-com-vmware-scripting-javascript-allow-native/m-p/2633702#M713</guid>
      <dc:creator>tschoergez</dc:creator>
      <dc:date>2011-08-12T20:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: What's it about: com.vmware.scripting.javascript.allow-native-object</title>
      <link>https://communities.vmware.com/t5/vCenter-Orchestrator-Plug-in-SDK/What-s-it-about-com-vmware-scripting-javascript-allow-native/m-p/2633703#M714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The jarvana website is off-loaded now. If possible, update the link.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 12:05:29 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vCenter-Orchestrator-Plug-in-SDK/What-s-it-about-com-vmware-scripting-javascript-allow-native/m-p/2633703#M714</guid>
      <dc:creator>imtrinity94</dc:creator>
      <dc:date>2018-11-26T12:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: What's it about: com.vmware.scripting.javascript.allow-native-object</title>
      <link>https://communities.vmware.com/t5/vCenter-Orchestrator-Plug-in-SDK/What-s-it-about-com-vmware-scripting-javascript-allow-native/m-p/2633704#M715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Updated link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www-archive.mozilla.org/rhino/apidocs/org/mozilla/javascript/ClassShutter.html"&gt;https://www-archive.mozilla.org/rhino/apidocs/org/mozilla/javascript/ClassShutter.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 15:13:31 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vCenter-Orchestrator-Plug-in-SDK/What-s-it-about-com-vmware-scripting-javascript-allow-native/m-p/2633704#M715</guid>
      <dc:creator>iiliev</dc:creator>
      <dc:date>2018-11-26T15:13:31Z</dc:date>
    </item>
  </channel>
</rss>

