<?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 WebScripts  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/webscripts/m-p/50637#M19364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can successfully write a (e.g. MyWebScript1), which extends from AbstractWebScript.&lt;/P&gt;&lt;P&gt;However, my goal is to define another webscript (e.g. MyWebScript2), which will extend from MyWebScript1 (and MyWebScript1 will extend from AbstractWebScript).&lt;/P&gt;&lt;P&gt;The goal is to define MyWebScript1 as a base web script with some boiler plate/common code inside execute, which MyWebScript2, MyWebScript3 etc. can inherit (by calling super, without having to duplicate them in MyWebScript2, MyWebScript3).&lt;BR /&gt;MyWebScript1 will just serve as a superclass.&lt;BR /&gt;This is what I am not able to accomplish.&lt;/P&gt;&lt;P&gt;My questions:&lt;BR /&gt;1. Do I still need to define a XML for the common/base MyWebScript1? However, MyWebScript1 is not associated with any get, post etc.&lt;BR /&gt;2. Do I still need to define MyWebScript1 inside webscripts-context.xml?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am only seen the examples where a given WebScript extends from AbstractWebScript, but seen a hirerachy like the way I am trying to accomplish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2018 23:18:35 GMT</pubDate>
    <dc:creator>raghav</dc:creator>
    <dc:date>2018-02-22T23:18:35Z</dc:date>
    <item>
      <title>WebScripts</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscripts/m-p/50637#M19364</link>
      <description>I can successfully write a (e.g. MyWebScript1), which extends from AbstractWebScript.However, my goal is to define another webscript (e.g. MyWebScript2), which will extend from MyWebScript1 (and MyWebScript1 will extend from AbstractWebScript).The goal is to define MyWebScript1 as a base web script</description>
      <pubDate>Thu, 22 Feb 2018 23:18:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscripts/m-p/50637#M19364</guid>
      <dc:creator>raghav</dc:creator>
      <dc:date>2018-02-22T23:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: WebScripts</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscripts/m-p/50638#M19365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You do not need any XML for any web script base class that is only used for others to extend from. If the base class defines a few setters for common&amp;nbsp;members, you can define an abstract bean to be used as a "parent" for your specific web scripts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 07:52:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscripts/m-p/50638#M19365</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-02-23T07:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: WebScripts</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscripts/m-p/50639#M19366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tq very much Axel. Could you please provide any examples of code-snippets of parent declaration of parent in the webscript-context xml. Throughout my search, I can only find examples where all the webscripts only extend from AbstractWebScript, but do not find any example of two level of extending.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 16:06:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscripts/m-p/50639#M19366</guid>
      <dc:creator>raghav</dc:creator>
      <dc:date>2018-02-23T16:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: WebScripts</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscripts/m-p/50640#M19367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really? All Java-backed webscripts typically have to use a parent to inherit key configuration. &lt;A href="https://github.com/Alfresco/alfresco-remote-api/blob/master/src/main/resources/alfresco/web-scripts-application-context.xml#L232" rel="nofollow noopener noreferrer"&gt;This pattern&lt;/A&gt; can simply be extended to use your base class as a (intermediary) parent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Feb 2018 10:07:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscripts/m-p/50640#M19367</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-02-24T10:07:13Z</dc:date>
    </item>
  </channel>
</rss>

