<?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 WebScript declaration using Spring Annotations in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/webscript-declaration-using-spring-annotations/m-p/51738#M19597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to use annotations to declare webscripts. I found these 2 projects:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/andreacomo/alfresco-annotations" title="https://github.com/andreacomo/alfresco-annotations" rel="nofollow noopener noreferrer"&gt;GitHub - andreacomo/alfresco-annotations: Spring stereotype annotations for simplifying Alfresco development&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/xenit-eu/dynamic-extensions-for-alfresco" title="https://github.com/xenit-eu/dynamic-extensions-for-alfresco" rel="nofollow noopener noreferrer"&gt;GitHub - xenit-eu/dynamic-extensions-for-alfresco: Rapid development of Alfresco repository extensions in Java. Deploy y…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Official Alfresco documentation (&amp;nbsp;&lt;A class="link-titled" href="https://docs.alfresco.com/5.2/concepts/ws-Java-spring.html" title="https://docs.alfresco.com/5.2/concepts/ws-Java-spring.html" rel="nofollow noopener noreferrer"&gt;Registering a Java-backed web script | Alfresco Documentation&lt;/A&gt;&amp;nbsp; ), says that&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;all web script bean declarations must have the parent &lt;SAMP class=""&gt;'webscript'&lt;/SAMP&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Looking in the Spring configurations, 'webscript' bean it's only an alias.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it only a convention, or are there other logics that risk to be ignored using the projects that I found?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Feb 2019 09:53:54 GMT</pubDate>
    <dc:creator>ruudg</dc:creator>
    <dc:date>2019-02-11T09:53:54Z</dc:date>
    <item>
      <title>WebScript declaration using Spring Annotations</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-declaration-using-spring-annotations/m-p/51738#M19597</link>
      <description>Hello everybody,I'd like to use annotations to declare webscripts. I found these 2 projects:GitHub - andreacomo/alfresco-annotations: Spring stereotype annotations for simplifying Alfresco development&amp;nbsp;GitHub - xenit-eu/dynamic-extensions-for-alfresco: Rapid development of Alfresco repository extensi</description>
      <pubDate>Mon, 11 Feb 2019 09:53:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-declaration-using-spring-annotations/m-p/51738#M19597</guid>
      <dc:creator>ruudg</dc:creator>
      <dc:date>2019-02-11T09:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: WebScript declaration using Spring Annotations</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-declaration-using-spring-annotations/m-p/51739#M19598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The parent "webscript" is only convention to simply writing your own web scripts without actually knowing&amp;nbsp;how everything is actually wired up at runtime. The two projects you have linked basically just add their specific take on different sets of conventions to follow, and take care of the plumbing for you, just as the parent "webscript" takes care of (some of) the plumbing for you in the default convention.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 21:32:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-declaration-using-spring-annotations/m-p/51739#M19598</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2019-02-11T21:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: WebScript declaration using Spring Annotations</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-declaration-using-spring-annotations/m-p/51740#M19599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer of Axel is right, but if you need to use annotations of spring anyway i suggest to you the project:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/dgradecak/alfresco-mvc" title="https://github.com/dgradecak/alfresco-mvc" rel="nofollow noopener noreferrer"&gt;GitHub - dgradecak/alfresco-mvc: Glue between SpringMVC and Alfresco&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;of dgradecak like alternative to the other two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the docuemntation you can find some example with the webscripts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; @Bean(name = { "webscript.alfresco-mvc.mvc.post", "webscript.alfresco-mvc.mvc.get", "webscript.alfresco-mvc.mvc.delete", "webscript.alfresco-mvc.mvc.put" })&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; public DispatcherWebscript dispatcherWebscript() {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; DispatcherWebscript dispatcherWebscript = new DispatcherWebscript();&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; dispatcherWebscript.setContextClass(org.springframework.web.context.support.AnnotationConfigWebApplicationContext.class);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; dispatcherWebscript.setContextConfigLocation(AlfrescoMvcHateoasConfig.class.getName());&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; return dispatcherWebscript;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; }&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 09:26:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-declaration-using-spring-annotations/m-p/51740#M19599</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2019-02-12T09:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: WebScript declaration using Spring Annotations</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-declaration-using-spring-annotations/m-p/51741#M19600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your suggestion. I will check this project for sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 12:53:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-declaration-using-spring-annotations/m-p/51741#M19600</guid>
      <dc:creator>ruudg</dc:creator>
      <dc:date>2019-02-14T12:53:28Z</dc:date>
    </item>
  </channel>
</rss>

