<?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: Fetch the size of node through Alfresco UI link in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-size-of-node-through-alfresco-ui-link/m-p/13268#M5860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you intend to write a Java-backed web script that is meant to run in the repository tier. You are going to call that web script from Share. That is an acceptable approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But your code needs work. Your Java class claims to be a web script but it looks more like a rule action. Web Scripts have an executeImpl method that accepts a WebScriptRequest and a Status object. Go look at this web script for an example: &lt;A class="link-titled" href="https://github.com/jpotts/alfresco-developer-series/blob/master/webscripts/webscripts-tutorial-repo/src/main/java/com/someco/scripts/PostRating.java" title="https://github.com/jpotts/alfresco-developer-series/blob/master/webscripts/webscripts-tutorial-repo/src/main/java/com/someco/scripts/PostRating.java" rel="nofollow noopener noreferrer"&gt;alfresco-developer-series/PostRating.java at master · jpotts/alfresco-developer-series · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does a post and yours does a get, but it is still relevant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to use curl to invoke your web script until it is working. Don't worry about Share until then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Dec 2017 17:53:05 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2017-12-28T17:53:05Z</dc:date>
    <item>
      <title>Fetch the size of node through Alfresco UI link</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-size-of-node-through-alfresco-ui-link/m-p/13266#M5858</link>
      <description>I created an option of get size in folder-browse and folder-details actiongroup. Whenever I click on Get Size option, I want the size of node to print on logger. I have created a class for finding the size of node using NodeService api. But, I am facinf problem in calling that java class from Alfres</description>
      <pubDate>Tue, 12 Dec 2017 12:46:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-size-of-node-through-alfresco-ui-link/m-p/13266#M5858</guid>
      <dc:creator>ankit00raj</dc:creator>
      <dc:date>2017-12-12T12:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the size of node through Alfresco UI link</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-size-of-node-through-alfresco-ui-link/m-p/13267#M5859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to execute a Java code from Share, you have to create a repository action, and then use it to execute the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 14:18:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-size-of-node-through-alfresco-ui-link/m-p/13267#M5859</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-12-15T14:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the size of node through Alfresco UI link</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-size-of-node-through-alfresco-ui-link/m-p/13268#M5860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you intend to write a Java-backed web script that is meant to run in the repository tier. You are going to call that web script from Share. That is an acceptable approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But your code needs work. Your Java class claims to be a web script but it looks more like a rule action. Web Scripts have an executeImpl method that accepts a WebScriptRequest and a Status object. Go look at this web script for an example: &lt;A class="link-titled" href="https://github.com/jpotts/alfresco-developer-series/blob/master/webscripts/webscripts-tutorial-repo/src/main/java/com/someco/scripts/PostRating.java" title="https://github.com/jpotts/alfresco-developer-series/blob/master/webscripts/webscripts-tutorial-repo/src/main/java/com/someco/scripts/PostRating.java" rel="nofollow noopener noreferrer"&gt;alfresco-developer-series/PostRating.java at master · jpotts/alfresco-developer-series · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does a post and yours does a get, but it is still relevant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to use curl to invoke your web script until it is working. Don't worry about Share until then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 17:53:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-size-of-node-through-alfresco-ui-link/m-p/13268#M5860</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-12-28T17:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the size of node through Alfresco UI link</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/fetch-the-size-of-node-through-alfresco-ui-link/m-p/13269#M5861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jeff. Could you please tell me how to write correct &amp;lt;url&amp;gt;...&amp;lt;url&amp;gt; path in custom action file to call script in AlfrescoRepo from AlfrescoShare.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jan 2018 18:40:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/fetch-the-size-of-node-through-alfresco-ui-link/m-p/13269#M5861</guid>
      <dc:creator>ankit00raj</dc:creator>
      <dc:date>2018-01-14T18:40:38Z</dc:date>
    </item>
  </channel>
</rss>

