<?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 CMIS and addObjectToFolder in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cmis-and-addobjecttofolder/m-p/269936#M223066</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;BR /&gt;&lt;SPAN&gt;I used CMIS to interact with alfresco from Drupal (I used the module CMIS API), but in this module, this isn't the implementation of function "addObjectToFolder"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And when I search an url to use this function on the page "&lt;/SPAN&gt;&lt;A href="http://myserver:8080/alfresco/service/index/family/CMIS" rel="nofollow noopener noreferrer"&gt;http://myserver:8080/alfresco/service/index/family/CMIS&lt;/A&gt;&lt;SPAN&gt;", I don't find…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is it really possible to use this function in CMIS? How can I do ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks et sorry for my english&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(I use Alfresco Community 4.0a finale )&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2011 16:33:03 GMT</pubDate>
    <dc:creator>sjeandroz</dc:creator>
    <dc:date>2011-12-14T16:33:03Z</dc:date>
    <item>
      <title>CMIS and addObjectToFolder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-and-addobjecttofolder/m-p/269936#M223066</link>
      <description>Hi,I used CMIS to interact with alfresco from Drupal (I used the module CMIS API), but in this module, this isn't the implementation of function "addObjectToFolder"And when I search an url to use this function on the page "http://myserver:8080/alfresco/service/index/family/CMIS", I don't find…is it</description>
      <pubDate>Wed, 14 Dec 2011 16:33:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-and-addobjecttofolder/m-p/269936#M223066</guid>
      <dc:creator>sjeandroz</dc:creator>
      <dc:date>2011-12-14T16:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS and addObjectToFolder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-and-addobjecttofolder/m-p/269937#M223067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, this is possible because the Alfresco repository supports the Multifiling capability.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's how it looks using cmislib from the Python shell to do it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sub1 = repo.getObjectByPath("/cmislib/sub1")&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sub2 = repo.getObjectByPath("/cmislib/sub2")&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; doc = sub1.createDocument("testdoc1")&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; len(sub1.getChildren())&lt;BR /&gt;1&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; len(sub2.getChildren())&lt;BR /&gt;0&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sub2.addObject(doc)&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; len(sub2.getChildren())&lt;BR /&gt;1&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; sub2.getChildren()[0].name&lt;BR /&gt;u'testdoc1'&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;/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;SPAN&gt;The cmislib client API uses the ATOM Pub binding and I believe the PHP API does as well so you could follow the same pattern to implement this method for that API and then contribute it back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a nutshell, the method simply posts an ATOM entry representing the object to the secondary folder's "getChildren" URL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2011 16:46:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-and-addobjecttofolder/m-p/269937#M223067</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2011-12-27T16:46:11Z</dc:date>
    </item>
  </channel>
</rss>

