<?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 How to get alfresco objest via CMIS in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-alfresco-objest-via-cmis/m-p/299404#M252534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have investigated CMIS/alfresco to write out a client app. I have investigated CMIS workbench, dotCmis and many threads/articles. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; After several weeks i get stuck with many confusing. Here are some examples(on Alfresco 5.1 community &amp;amp; one):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I can create several types via admin page site, when i upload a file then i change it types and i can select the created types (plus a system type called: Smart Folder Template). But if i used CMIS workbench and invoke Types button then it shows out many types that greater than admin page site. I code out a snip codes and the code also shows out many types, my code is:&amp;nbsp; foreach (IObjectType oType in Session.GetTypeChildren("cmis:document", true)). My question is how can i get only types same to admin page site?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I can not get out Category Root, Tags, aspects… several of them can work but its result puts out more than on admin page site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Generally, how to get all alfresco objects(types, aspect, category, tags)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jun 2016 10:19:13 GMT</pubDate>
    <dc:creator>trinhdc</dc:creator>
    <dc:date>2016-06-03T10:19:13Z</dc:date>
    <item>
      <title>How to get alfresco objest via CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-alfresco-objest-via-cmis/m-p/299404#M252534</link>
      <description>Hello all, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have investigated CMIS/alfresco to write out a client app. I have investigated CMIS workbench, dotCmis and many threads/articles. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; After several weeks i get stuck with many confusing. Here are some examples(on Alfresco 5.1 community &amp;amp; one):&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I can create several ty</description>
      <pubDate>Fri, 03 Jun 2016 10:19:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-alfresco-objest-via-cmis/m-p/299404#M252534</guid>
      <dc:creator>trinhdc</dc:creator>
      <dc:date>2016-06-03T10:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get alfresco objest via CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-alfresco-objest-via-cmis/m-p/299405#M252535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;With so many things in Alfresco, for a relatively new developer, it can get complicated easily. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am tempted to ask why you need to know all the types, aspects, etc. Is it a direct requirement or is it for learning more?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A generic question like this may not get answers at all. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As of now, my Alfresco installation is 5.0.d community edition. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On the Alfresco side, using one of the articles by Jeff Potts (&lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/images/Alfresco-Developer-Guide-Chapter-3.pdf" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/images/Alfresco-Developer-Guide-Chapter-3.pdf&lt;/A&gt;&lt;SPAN&gt;), I was able to define a custom type with a custom aspect. This custom aspect has a set of properties. Following the article literally, I have prepared two AMP files, one for the repo tier and the other for the share tier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On my J2EE application side, I use plain and simple CMIS API, using Apache OpenCmis libraries, in order to communicate with Alfresco repository. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As you see in the CMIS cheat sheet, it has methods to get all the objects, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://www.alfresco.com/sites/www.alfresco.com/files//cmis-cheatsheet.pdf" rel="nofollow noopener noreferrer"&gt;https://www.alfresco.com/sites/www.alfresco.com/files//cmis-cheatsheet.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other articles that were useful to me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://ecmarchitect.com/alfresco-developer-series" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/alfresco-developer-series&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://ecmarchitect.com/images/articles/cmis/cmis-article.pdf" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/images/articles/cmis/cmis-article.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good wishes to you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 13:48:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-alfresco-objest-via-cmis/m-p/299405#M252535</guid>
      <dc:creator>sepgs2004</dc:creator>
      <dc:date>2016-06-09T13:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get alfresco objest via CMIS</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-alfresco-objest-via-cmis/m-p/299406#M252536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I understand your question correctly, you're wondering why (in Share) when you choose to change type on a document you see a small number of types but when you get the list of types back from the CMIS workbench you see a much larger number?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason is that Alfresco contains a large number of in-built types for various purposes (some internal, some usable by end users) plus any additional types that you define in custom models.&amp;nbsp; However, there is configuration in Share to choose what types should be exposed in the Share UI - this limits what's pickable on the screen when changing the type of a document.&amp;nbsp; When you create a custom model, the model manager also adds your new custom types to this config on the fly, so they appear here too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CMIS however, does not look at the Share config (it's not aware of Share at all in fact), it goes straight to Alfresco so you don't get a filtered list, you get a complete list of all types defined in the system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, because CMIS doesn't take into account Share config, you can't easily restrict the list of types to only the ones shown in Share.&amp;nbsp; There's also nothing different (queryable) about the custom types you create using the Share admin screens, so you can't even use a different CMIS query to select them, unless you hardcode the types you want to get back/exclude or use a naming convention etc, unfortunately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same will be true for aspects - the UI configuration filters what Share shows you, so CMIS is giving you a complete list so you'll see more than what's in Share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 11:47:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-alfresco-objest-via-cmis/m-p/299406#M252536</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2016-06-15T11:47:02Z</dc:date>
    </item>
  </channel>
</rss>

