<?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 Shall we access the comments of a node from CMIS object Id? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/shall-we-access-the-comments-of-a-node-from-cmis-object-id/m-p/46768#M18575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my application, we connect/access Alfresco repository using CMIS api.&lt;/P&gt;&lt;P&gt;There is a recent requirement - I have to access and manage the comments on a node (document).&lt;/P&gt;&lt;P&gt;I chose to use Rest API to access the comments through (existing) web scripts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the following in the web scripts...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GET /alfresco/s/api/comment/node/{store_type}/{store_id}/{id}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us say I am accessing a document with object id&amp;nbsp;&lt;STRONG&gt;faa9214a-7d03-4ffd-9fd4-97e6ce8748f3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I get the objectId from the CMIS object, I get it this way. Please note the version number appended in the end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;faa9214a-7d03-4ffd-9fd4-97e6ce8748f3;1.0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I access the comments of a node through&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;server-host/alfresco/service/api/node/workspace/SpacesStore/faa9214a-7d03-4ffd-9fd4-97e6ce8748f3/comments?reverse=reverse&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that I have to give the object id without the version number to this url call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have experience in getting the id without the version number.&lt;/P&gt;&lt;P&gt;I also do not know if there is any difference between object id, node id, version id, version series id?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can I strip the version number in code, from the cmis.objectid and use it to access the comments using the webscript?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I would like to confirm this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or should I get or find the node id in a different better way.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I access the node in CMIS workbench, I see the following properties that are related to the id.&lt;/P&gt;&lt;P&gt;Can I use any of these property values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="unlinked"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I see the following properties with their values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cmis:versionSeriesId&lt;/STRONG&gt;=Property [id=cmis:versionSeriesId, display Name=Version series id, local name=versionSeriesId, query name=doc.cmis:versionSeriesId, values=[faa9214a-7d03-4ffd-9fd4-97e6ce8748f3]][extensions=null]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId&lt;/STRONG&gt;=Property [id=cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId, display Name=Object Id, local name=objectId, query name=samlo.cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId, values=[faa9214a-7d03-4ffd-9fd4-97e6ce8748f3;1.2]][extensions=null]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;alfcmis:nodeRef&lt;/STRONG&gt;=Property [id=alfcmis:nodeRef, display Name=Alfresco Node Ref, local name=nodeRef, query name=samlo.alfcmis:nodeRef, values=[workspace://SpacesStore/faa9214a-7d03-4ffd-9fd4-97e6ce8748f3]][extensions=null]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2018 14:15:57 GMT</pubDate>
    <dc:creator>sepgs2004</dc:creator>
    <dc:date>2018-08-07T14:15:57Z</dc:date>
    <item>
      <title>Shall we access the comments of a node from CMIS object Id?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/shall-we-access-the-comments-of-a-node-from-cmis-object-id/m-p/46768#M18575</link>
      <description>In my application, we connect/access Alfresco repository using CMIS api.There is a recent requirement - I have to access and manage the comments on a node (document).I chose to use Rest API to access the comments through (existing) web scripts.&amp;nbsp;I see the following in the web scripts...GET /alfresco/</description>
      <pubDate>Tue, 07 Aug 2018 14:15:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/shall-we-access-the-comments-of-a-node-from-cmis-object-id/m-p/46768#M18575</guid>
      <dc:creator>sepgs2004</dc:creator>
      <dc:date>2018-08-07T14:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Shall we access the comments of a node from CMIS object Id?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/shall-we-access-the-comments-of-a-node-from-cmis-object-id/m-p/46769#M18576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am going to do substring of the cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectid, to get rid off the version number, and pass it as the nodeid into the webscript to get the comments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 18:06:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/shall-we-access-the-comments-of-a-node-from-cmis-object-id/m-p/46769#M18576</guid>
      <dc:creator>sepgs2004</dc:creator>
      <dc:date>2018-08-07T18:06:16Z</dc:date>
    </item>
  </channel>
</rss>

