<?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: Issues in setting secondary properties to a document using cmis 1.1 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/issues-in-setting-secondary-properties-to-a-document-using-cmis/m-p/18012#M7996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;Angel Borroy&lt;/B&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the code as you have mentioned, still my document is not listed in the search space when I search something like title:test title (or) test title (which means title property is not applied to my document)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made another change in my code as mentioned below which works perfectly fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List&amp;lt;Object&amp;gt; aspects = new ArrayList&amp;lt;Object&amp;gt;();&lt;BR /&gt;aspects.add("P:cm:titled");&lt;BR /&gt;properties.put(PropertyIds.SECONDARY_OBJECT_TYPE_IDS, aspects);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//During document creation&lt;/P&gt;&lt;P&gt;document = parentFolder.createDocument(properties, contentStream, null);&lt;BR /&gt;AlfrescoDocument alfDoc = (AlfrescoDocument) document;&lt;BR /&gt;if(alfDoc.hasAspect("P:cm:titled")) {&lt;BR /&gt; Map&amp;lt;String, Object&amp;gt; properties1 = new HashMap&amp;lt;String, Object&amp;gt;();&lt;BR /&gt; properties1.put("cm:title", "test title ");&lt;BR /&gt; properties1.put("cmis:description", "test desc");&lt;BR /&gt; alfDoc.updateProperties(properties1);&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt;But searching title:test title (or) test title in the search box lists the current uploaded file along with all other documents in the site in which I have&amp;nbsp;uploaded the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also made sure that updateProperties is updating only the currently created file by modifying the cmis:name property.I am confused why every files are listed there.&lt;/P&gt;&lt;P&gt;Anything wrong with my code?? Kindly anyone&amp;nbsp;help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/search alfresco/tg-p"&gt;&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Nov 2017 07:50:03 GMT</pubDate>
    <dc:creator>azarfaiz</dc:creator>
    <dc:date>2017-11-10T07:50:03Z</dc:date>
    <item>
      <title>Issues in setting secondary properties to a document using cmis 1.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issues-in-setting-secondary-properties-to-a-document-using-cmis/m-p/18010#M7994</link>
      <description>HiI am trying to add the secondary properties (title,description) programmatically to a document in Alfresco using CMIS 1.1.Below is the code snippet of the same.properties.put(PropertyIds.NAME, fileName); properties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document,P:cm:titled"); properties.put(Proper</description>
      <pubDate>Thu, 09 Nov 2017 14:12:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issues-in-setting-secondary-properties-to-a-document-using-cmis/m-p/18010#M7994</guid>
      <dc:creator>azarfaiz</dc:creator>
      <dc:date>2017-11-09T14:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in setting secondary properties to a document using cmis 1.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issues-in-setting-secondary-properties-to-a-document-using-cmis/m-p/18011#M7995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt; List&amp;lt;Object&amp;gt; aspects = new ArrayList&amp;lt;Object&amp;gt;();&lt;BR /&gt; aspects.add("P:cm:titled");&lt;BR /&gt; properties.put(PropertyIds.SECONDARY_OBJECT_TYPE_IDS, aspects);&lt;BR /&gt; properties.put("cm:description", "description of document");&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 15:21:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issues-in-setting-secondary-properties-to-a-document-using-cmis/m-p/18011#M7995</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2017-11-09T15:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in setting secondary properties to a document using cmis 1.1</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/issues-in-setting-secondary-properties-to-a-document-using-cmis/m-p/18012#M7996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;Angel Borroy&lt;/B&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the code as you have mentioned, still my document is not listed in the search space when I search something like title:test title (or) test title (which means title property is not applied to my document)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made another change in my code as mentioned below which works perfectly fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;List&amp;lt;Object&amp;gt; aspects = new ArrayList&amp;lt;Object&amp;gt;();&lt;BR /&gt;aspects.add("P:cm:titled");&lt;BR /&gt;properties.put(PropertyIds.SECONDARY_OBJECT_TYPE_IDS, aspects);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//During document creation&lt;/P&gt;&lt;P&gt;document = parentFolder.createDocument(properties, contentStream, null);&lt;BR /&gt;AlfrescoDocument alfDoc = (AlfrescoDocument) document;&lt;BR /&gt;if(alfDoc.hasAspect("P:cm:titled")) {&lt;BR /&gt; Map&amp;lt;String, Object&amp;gt; properties1 = new HashMap&amp;lt;String, Object&amp;gt;();&lt;BR /&gt; properties1.put("cm:title", "test title ");&lt;BR /&gt; properties1.put("cmis:description", "test desc");&lt;BR /&gt; alfDoc.updateProperties(properties1);&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt;But searching title:test title (or) test title in the search box lists the current uploaded file along with all other documents in the site in which I have&amp;nbsp;uploaded the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also made sure that updateProperties is updating only the currently created file by modifying the cmis:name property.I am confused why every files are listed there.&lt;/P&gt;&lt;P&gt;Anything wrong with my code?? Kindly anyone&amp;nbsp;help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/search alfresco/tg-p"&gt;&lt;/A&gt;‌&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 07:50:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/issues-in-setting-secondary-properties-to-a-document-using-cmis/m-p/18012#M7996</guid>
      <dc:creator>azarfaiz</dc:creator>
      <dc:date>2017-11-10T07:50:03Z</dc:date>
    </item>
  </channel>
</rss>

