<?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: What is the best way to integrate or migrate users from client app? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62251#M21590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you adding the comment node? Are you calling the REST API or are you calling a web script that uses the Java API to create the comment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is the latter, you can just add an aspect to your content model that captures the data, then add the aspect to the comment node and set the data. In fact, you've already created two properties to capture updated by and updated date. Those could be defined in an aspect which would allow you to re-use the property definitions for both documents and comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, when the application invokes the web script, pass along not only the comment but also the application username. The web script can then add the aspect to the comment node.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2018 15:43:29 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2018-08-23T15:43:29Z</dc:date>
    <item>
      <title>What is the best way to integrate or migrate users from client app?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62250#M21589</link>
      <description>From our application, we integrate with Alfresco for document management. There are clients of our application, who has Oracle IP/M, Documentum and other content management systems. So our application has code to integrate with other repositories as well.Now, our application has its own user managem</description>
      <pubDate>Thu, 23 Aug 2018 02:44:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62250#M21589</guid>
      <dc:creator>sepgs2004</dc:creator>
      <dc:date>2018-08-23T02:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to integrate or migrate users from client app?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62251#M21590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you adding the comment node? Are you calling the REST API or are you calling a web script that uses the Java API to create the comment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is the latter, you can just add an aspect to your content model that captures the data, then add the aspect to the comment node and set the data. In fact, you've already created two properties to capture updated by and updated date. Those could be defined in an aspect which would allow you to re-use the property definitions for both documents and comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, when the application invokes the web script, pass along not only the comment but also the application username. The web script can then add the aspect to the comment node.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 15:43:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62251#M21590</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-08-23T15:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to integrate or migrate users from client app?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62252#M21591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For now, we are invoking the existing built in webscripts, that correspond to add/delete comments, through Rest API.&lt;/P&gt;&lt;P&gt;When you say the "latter", do you mean we should write our own webscript with JAVA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will explore along the lines of having aspects for the comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say "when the application invokes the web script"... what is this web script you are talking about.&lt;/P&gt;&lt;P&gt;I am using the ones that are built in...&lt;/P&gt;&lt;P&gt;Get all the comments&lt;BR /&gt;GET /alfresco/s/api/node/{store_type}/{store_id}/{id}/comments?reverse={reverse?}&amp;amp;startIndex={startIndex?}&amp;amp;pageSize={pageSize?}&lt;/P&gt;&lt;P&gt;Add comment&lt;BR /&gt;POST /alfresco/s/api/node/{store_type}/{store_id}/{id}/comments&lt;/P&gt;&lt;P&gt;Delete comment&lt;BR /&gt;DELETE /alfresco/s/api/comment/node/{store_type}/{store_id}/{id}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me some more tips to follow your recommendation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2018 14:28:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62252#M21591</guid>
      <dc:creator>sepgs2004</dc:creator>
      <dc:date>2018-08-24T14:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to integrate or migrate users from client app?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62253#M21592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff mentions that if you created a custom aspect&amp;nbsp;with a property called "updated by", you may add this aspect to your comment (not only to the document). Even, you can add the user in the text&amp;nbsp;of the comment for having a visual reference of the application user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other aprox. could&amp;nbsp;be&amp;nbsp;for example to integrate users in Alfresco, with a custom JDBC authentication subsystem, that enables to&amp;nbsp;login in Alfresco from&amp;nbsp;a database table. Then, users (with contributor role) could create&amp;nbsp;their own comments via webscript. Although this probably will change a lot your document structure permissions on the repo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2018 17:50:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62253#M21592</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2018-08-27T17:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to integrate or migrate users from client app?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62254#M21593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If we go with having a custom aspect with updated_by property, you mentioned that we can add this aspect to the comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can I still use the REST API (and version 5.1.0) to accomplish this (like described below)?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For the REST API that I use with version 5.1.0, to add a comment, I am using the following call.&lt;/P&gt;&lt;P&gt;It has a JSON argument. Are you saying we can add the aspect property into the JSON argument?&lt;/P&gt;&lt;P&gt;It's details are here.&lt;/P&gt;&lt;DIV&gt;&amp;lt;url&amp;gt;/api/comment/node/{store_type}/{store_id}/{id}&amp;lt;/url&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;format&amp;nbsp;default="json"&amp;gt;argument&amp;lt;/format&amp;gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;My code looks like this. I wonder how to pass the aspect value in here in this REST API call!&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: helvetica, arial, sans-serif;"&gt;JsonObject jobject = new JsonObject();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: helvetica, arial, sans-serif;"&gt; jobject.addProperty("content", commentContent);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: helvetica, arial, sans-serif;"&gt;StringEntity entity = new StringEntity(jobject.toString());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: helvetica, arial, sans-serif;"&gt; callFunction.setEntity(entity);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: helvetica, arial, sans-serif;"&gt; callFunction.setHeader("Accept", "application/json");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: helvetica, arial, sans-serif;"&gt; callFunction.setHeader("Content-type", "application/json");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: helvetica, arial, sans-serif;"&gt; response = httpClient.execute(callFunction);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Or should I use the Alfresco SDK API with features available in Alfresco 5.2 onward?&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 15:16:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62254#M21593</guid>
      <dc:creator>sepgs2004</dc:creator>
      <dc:date>2018-08-28T15:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to integrate or migrate users from client app?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62255#M21594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe with additional GET and PUT calls to /api/nodes/{nodeId} , where your nodeId is your comment id (check the notes about adding or removing aspects).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNode" title="https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNode" rel="nofollow noopener noreferrer"&gt;Alfresco Content Services REST API Explorer&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 16:27:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62255#M21594</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2018-08-28T16:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best way to integrate or migrate users from client app?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62256#M21595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To clarify, I meant that if you were already calling a custom web script, just modify it to add an aspect and set the property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not using a custom web script, why not write one? That way you can get this done in one REST call instead of multiple.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 21:52:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/what-is-the-best-way-to-integrate-or-migrate-users-from-client/m-p/62256#M21595</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-08-29T21:52:03Z</dc:date>
    </item>
  </channel>
</rss>

