<?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 Alfresco Jscript Extensions in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-jscript-extensions/m-p/4077#M1713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;&lt;A class="anchor" href="#alfresco-jscript-extensions" rel="nofollow noopener noreferrer"&gt;&lt;SPAN class="octicon-link octicon"&gt;&lt;/SPAN&gt;&lt;/A&gt;alfresco-jscript-extensions&lt;/H1&gt;&lt;P&gt;Alfresco repository module with javascript root object extensions which are helpful in much scenarios. Following root objects are provided:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;auth&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;to change the authentication to another user during the javascript execution&lt;/LI&gt;&lt;LI&gt;to get the current executing authenticated user&lt;/LI&gt;&lt;LI&gt;example: tbd&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;batch&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;to provide a simple batch processing for javascript without any native functions&lt;/LI&gt;&lt;LI&gt;example: &lt;A href="https://gist.github.com/jgoldhammer/6941273" rel="nofollow noopener noreferrer"&gt;https://gist.github.com/jgoldhammer/6941273&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;database&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;to provide access to datasources (contributed by Florian Maul)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;policies&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;to temporarly disable or enable policy behavours during javascript extecution&lt;/LI&gt;&lt;LI&gt;policy behaviours can be enabled or disabled on a specific node or a certain aspect/type&lt;/LI&gt;&lt;LI&gt;example: &lt;A href="https://gist.github.com/jgoldhammer/6941414" rel="nofollow noopener noreferrer"&gt;https://gist.github.com/jgoldhammer/6941414&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;jmxClient&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;to provide access to the alfresco global properties and system properties of the system&lt;/LI&gt;&lt;LI&gt;list all propertiy values or get a specific property value&lt;/LI&gt;&lt;LI&gt;example: &lt;A href="https://gist.github.com/jgoldhammer/6941512" rel="nofollow noopener noreferrer"&gt;https://gist.github.com/jgoldhammer/6941512&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;jobs&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;list all alfresco repo background jobs&lt;/LI&gt;&lt;LI&gt;start jobs in javascript via JMX&lt;/LI&gt;&lt;LI&gt;example: &lt;A href="https://gist.github.com/jgoldhammer/6941374" rel="nofollow noopener noreferrer"&gt;https://gist.github.com/jgoldhammer/6941374&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;repoAdmin&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;uses the repo admin interpreter from the repo admin console&lt;/LI&gt;&lt;LI&gt;write your commands and get back the result in the js-console&lt;/LI&gt;&lt;LI&gt;example 1: &lt;CODE&gt;print(repoAdmin.exec('help'))&lt;/CODE&gt; - show the help&lt;/LI&gt;&lt;LI&gt;example 2: &lt;CODE&gt;print(reopAdmin.exec('show models'));&lt;/CODE&gt; - show all additional datamodels&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;solr&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;currently get the index state of a node (currently not working due to a bug in the SolrIndexService)&lt;/LI&gt;&lt;LI&gt;example: tbd&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;tenantAdmin&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;uses the repo admin interpreter from the repo admin console&lt;/LI&gt;&lt;LI&gt;write your commands and get back the result in the js-console&lt;/LI&gt;&lt;LI&gt;example 1: &lt;CODE&gt;print(tenantAdmin.exec('help'))&lt;/CODE&gt; - show the help&lt;/LI&gt;&lt;LI&gt;example 2: &lt;CODE&gt;print(tenantAdmin.exec('show tenants'));&lt;/CODE&gt; - show all tenants (if you create one before!)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;trans&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create a new transaction&lt;/LI&gt;&lt;LI&gt;start, commit and rollback (database) transactions during the javascript execution&lt;/LI&gt;&lt;LI&gt;example: tbd&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;workflowAdmin&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;uses the workflowinterpreter from the workflow console&lt;/LI&gt;&lt;LI&gt;write your commands and get back the result in the js-console&lt;/LI&gt;&lt;LI&gt;example 1: &lt;CODE&gt;print(workflowAdmin.exec('help'))&lt;/CODE&gt; - show the help&lt;/LI&gt;&lt;LI&gt;example 2: &lt;CODE&gt;print(workflowAdmin.exec('show definitions'));&lt;/CODE&gt; - show all workflow definitions&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;&lt;A class="anchor" href="#building" rel="nofollow noopener noreferrer"&gt;&lt;SPAN class="octicon-link octicon"&gt;&lt;/SPAN&gt;&lt;/A&gt;Building&lt;/H2&gt;&lt;P&gt;To build the module and its AMP / JAR files, run the following command from the base project directory:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;mvn install &lt;/CODE&gt;&lt;/PRE&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH style="width: 19.5066%;"&gt;&lt;/TH&gt;&lt;TH style="width: 78.7972%;"&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 19.5066%;"&gt;Owner&lt;/TD&gt;&lt;TD style="width: 78.7972%;"&gt;&lt;B&gt;Jens Goldhammer&lt;/B&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19.5066%;"&gt;Versions&lt;/TD&gt;&lt;TD style="width: 78.7972%;"&gt;&lt;P&gt;Community 4.0.x&lt;/P&gt;&lt;P&gt;Community 4.2.x&lt;/P&gt;&lt;P&gt;Community 5.0.x&lt;/P&gt;&lt;P&gt;Enterprise 4.0.x&lt;/P&gt;&lt;P&gt;Enterprise 4.1.x&lt;/P&gt;&lt;P&gt;Enterprise 4.2.x&lt;/P&gt;&lt;P&gt;Enterprise 5.0.x&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19.5066%;"&gt;License Type&lt;/TD&gt;&lt;TD style="width: 78.7972%;"&gt;Apache&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19.5066%;"&gt;Project Page&lt;/TD&gt;&lt;TD style="width: 78.7972%;"&gt;&lt;A class="link-titled" href="https://github.com/jgoldhammer/alfresco-jscript-extensions" title="https://github.com/jgoldhammer/alfresco-jscript-extensions" rel="nofollow noopener noreferrer"&gt;GitHub - jgoldhammer/alfresco-jscript-extensions: Alfresco repository module with helpful javascript root object extensi…&lt;/A&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19.5066%;"&gt;Download Page&lt;/TD&gt;&lt;TD style="width: 78.7972%;"&gt;&lt;A class="link-titled" href="https://github.com/jgoldhammer/alfresco-jscript-extensions/releases/tag/1.0beta" title="https://github.com/jgoldhammer/alfresco-jscript-extensions/releases/tag/1.0beta" rel="nofollow noopener noreferrer"&gt;Release 1.0beta (Alfresco 4 and 5) · jgoldhammer/alfresco-jscript-extensions · GitHub&lt;/A&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19.5066%;"&gt;Tags&lt;/TD&gt;&lt;TD style="width: 78.7972%;"&gt;rootobjects&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19.5066%;"&gt;Component Type&lt;/TD&gt;&lt;TD style="width: 78.7972%;"&gt;Admin Console&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19.5066%;"&gt;Extension Points&lt;/TD&gt;&lt;TD style="width: 78.7972%;"&gt;Javascript Root Scope Object&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19.5066%;"&gt;Installation&lt;/TD&gt;&lt;TD style="width: 78.7972%;"&gt;AMP, JAR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19.5066%;"&gt;Products&lt;/TD&gt;&lt;TD style="width: 78.7972%;"&gt;Repository&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2018 02:34:56 GMT</pubDate>
    <dc:creator>alfresco</dc:creator>
    <dc:date>2018-06-20T02:34:56Z</dc:date>
    <item>
      <title>Alfresco Jscript Extensions</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-jscript-extensions/m-p/4077#M1713</link>
      <description>alfresco-jscript-extensionsAlfresco repository module with javascript root object extensions which are helpful in much scenarios. Following root objects are provided:authto change the authentication to another user during the javascript executionto get the current executing authenticated userexample</description>
      <pubDate>Wed, 20 Jun 2018 02:34:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-jscript-extensions/m-p/4077#M1713</guid>
      <dc:creator>alfresco</dc:creator>
      <dc:date>2018-06-20T02:34:56Z</dc:date>
    </item>
  </channel>
</rss>

