<?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 Add Content: how modify the code in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/add-content-how-modify-the-code/m-p/129214#M90790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like understand the steps and witch classes are called to add a document with Alfresco Webclient. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example If I want modify the 'add content' flow when I press 'OK', witch classes I have to modify ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at the page jsp where is the 'OK' buttom to upload file (add-content-dialog.jsp), I see that this buttom has the submit action="/alfresco/faces/jsp/content/add-content-dialog.jsp' but I don't see all the classes that this process call; is there a mapping ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that the class AddContentDialog add a document, When this class is called ? Where this class is called ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot everybody.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2007 15:51:54 GMT</pubDate>
    <dc:creator>angeand</dc:creator>
    <dc:date>2007-10-02T15:51:54Z</dc:date>
    <item>
      <title>Add Content: how modify the code</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-content-how-modify-the-code/m-p/129214#M90790</link>
      <description>Hi,I would like understand the steps and witch classes are called to add a document with Alfresco Webclient. For example If I want modify the 'add content' flow when I press 'OK', witch classes I have to modify ? Looking at the page jsp where is the 'OK' buttom to upload file (add-content-dialog.jsp</description>
      <pubDate>Tue, 02 Oct 2007 15:51:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-content-how-modify-the-code/m-p/129214#M90790</guid>
      <dc:creator>angeand</dc:creator>
      <dc:date>2007-10-02T15:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add Content: how modify the code</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-content-how-modify-the-code/m-p/129215#M90791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have found where I have to modify the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the Jsp add-content-dialog when I press 'OK' call the method AddContentDialog.finish (ovveride finishImpl). In this method, finishImpl, at end of code there is the calling to method saveContent. Here it insert the document into repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is: if I want insert the document into repository and more I want insert a record in my custom table, Have to add my code at end of method saveContent ? And, If one of two operation failed how can I do rollback ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 08:50:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-content-how-modify-the-code/m-p/129215#M90791</guid>
      <dc:creator>angeand</dc:creator>
      <dc:date>2007-10-08T08:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add Content: how modify the code</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-content-how-modify-the-code/m-p/129216#M90792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe open a transaction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this if you can :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;tx = Repository.getUserTransaction(context,true);&lt;BR /&gt;tx.begin();&lt;BR /&gt;&amp;lt;your code&amp;gt;&lt;BR /&gt;tx.commit;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Test it,&amp;nbsp; i dont know if this kind of transaction is available to saveContent() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that this is used for search on repository but i don't know for save content if that can work also.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2007 11:47:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-content-how-modify-the-code/m-p/129216#M90792</guid>
      <dc:creator>ribz33</dc:creator>
      <dc:date>2007-10-11T11:47:40Z</dc:date>
    </item>
  </channel>
</rss>

