<?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 Can we use custom OBJECT_ID in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/can-we-use-custom-object-id/m-p/283982#M237112</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;When we are creating&amp;nbsp; document using API, we give PropertyIds.NAME &amp;amp; PropertyIds.OBJECT_TYPE_ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We would like to know if we can give customized object id which can be used further to fetch the document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently, following is used to create a document in Alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt; Map&amp;lt;String, Object&amp;gt; propertiesDocument = new HashMap&amp;lt;String, Object&amp;gt;();&lt;BR /&gt; propertiesDocument.put(PropertyIds.NAME, "test_Aspect.pdf");&lt;BR /&gt; propertiesDocument.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document");&lt;BR /&gt;&lt;BR /&gt; FileInputStream oInputStream = new FileInputStream("/abc.txt");&lt;BR /&gt; ContentStream contentStream = new ContentStreamImpl("abc.txt", null, "application/octet-stream", oInputStream);&lt;BR /&gt; Document document = folder.createDocument(propertiesDocument, contentStream, VersioningState.MAJOR);&lt;BR /&gt; &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;/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;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Last statemnt will give unique Object ID which can be used to fetch the document later. Can we give our own custom unique key which can be used to fetch document later?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vipul Nandha&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jan 2015 14:10:18 GMT</pubDate>
    <dc:creator>vipul_n</dc:creator>
    <dc:date>2015-01-06T14:10:18Z</dc:date>
    <item>
      <title>Can we use custom OBJECT_ID</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-we-use-custom-object-id/m-p/283982#M237112</link>
      <description>Hi,When we are creating&amp;nbsp; document using API, we give PropertyIds.NAME &amp;amp; PropertyIds.OBJECT_TYPE_ID.We would like to know if we can give customized object id which can be used further to fetch the document.Currently, following is used to create a document in Alfresco Map&amp;lt;String, Object&amp;gt; pro</description>
      <pubDate>Tue, 06 Jan 2015 14:10:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-we-use-custom-object-id/m-p/283982#M237112</guid>
      <dc:creator>vipul_n</dc:creator>
      <dc:date>2015-01-06T14:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use custom OBJECT_ID</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-we-use-custom-object-id/m-p/283983#M237113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes you can.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However you should probably use the noderef.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can specify your value of noderef as long as its unique.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 14:21:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-we-use-custom-object-id/m-p/283983#M237113</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2015-01-06T14:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use custom OBJECT_ID</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-we-use-custom-object-id/m-p/283984#M237114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks mrogers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know how to use noderef? Can you provide an example to use noderef and fetch the document later?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 09:52:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-we-use-custom-object-id/m-p/283984#M237114</guid>
      <dc:creator>vipul_n</dc:creator>
      <dc:date>2015-01-07T09:52:51Z</dc:date>
    </item>
  </channel>
</rss>

