<?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 search for a specific aspect/property? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-search-for-a-specific-aspect-property/m-p/302396#M255526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'm looking to get a list of all checked out documents based on certain aspects, specifically cm:checkedOut. Basically, I want to search for all documents with the aspect cm:checkedOut and assume that that would be the list of all checked out documents. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been able to use cm:checkedOut and searched for checked out documents in the node browser, but I'm having a hard time finding a REST endpoint that will let me search for a certain aspect. The thing that I found so far is this CMIS endpoint: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://wiki.alfresco.com/wiki/CMIS_Web_Scripts_Reference#Query" rel="nofollow noopener noreferrer"&gt;https://wiki.alfresco.com/wiki/CMIS_Web_Scripts_Reference#Query&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Executes a CMIS query statement against the contents of the Repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GET /alfresco/service/cmis/query?q={q}&amp;amp;includeAllowableActions={includeAllowableActions?}&amp;amp;includeRelationships={includeRelationships?}&amp;amp;renditionFilter={renditionFilter?}&amp;amp;searchAllVersions={searchAllVersions?}&amp;amp;skipCount={skipCount?}&amp;amp;maxItems={maxItems?}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I'm assuming I'd have to write a CMIS query something like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://wiki.alfresco.com/wiki/CMIS_Web_Scripts_Reference#CMIS_Query" rel="nofollow noopener noreferrer"&gt;https://wiki.alfresco.com/wiki/CMIS_Web_Scripts_Reference#CMIS_Query&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I'm new to Alfresco and I honestly don't know if I can write a CMIS query to search for a particular aspect? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is: is there a REST endpoint that will let me search for a specific aspect and do what I want to find? If it's relevant I'm using a .NET framework with C#. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help is greatly appreciated thanks!! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jun 2016 23:15:53 GMT</pubDate>
    <dc:creator>ocean800</dc:creator>
    <dc:date>2016-06-24T23:15:53Z</dc:date>
    <item>
      <title>How to search for a specific aspect/property?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-search-for-a-specific-aspect-property/m-p/302396#M255526</link>
      <description>Hi everyone! &lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; So I'm looking to get a list of all checked out documents based on certain aspects, specifically cm:checkedOut. Basically, I want to search for all documents with the aspect cm:checkedOut and assume that that would be the list of all checked out documents. I've been able to use cm:ch</description>
      <pubDate>Fri, 24 Jun 2016 23:15:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-search-for-a-specific-aspect-property/m-p/302396#M255526</guid>
      <dc:creator>ocean800</dc:creator>
      <dc:date>2016-06-24T23:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a specific aspect/property?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-search-for-a-specific-aspect-property/m-p/302397#M255527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first of all, since you are using Alfresco 4.2, you should be using the proper CMIS endpoints instead of the old /alfresco/service/cmis one which has been removed in Alfresco 5.0. See the &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.2/pra/1/topics/cmis-welcome.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/pra/1/topics/cmis-welcome.html&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;documentation&amp;lt;/a&amp;gt; for details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to search for aspects, you need to either use CMIS 1.1 (only available via the proper CMIS endpoints, not the old alfresco/service/cmis) or an &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.1/concepts/opencmis-ext-using.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.1/concepts/opencmis-ext-using.html&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;extension to the CMIS bindings specifically for Alfresco&amp;lt;/a&amp;gt; (works only on alfresco/service/cmis). The recommended option would be CMIS 1.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CMIS 1.1 provides a concept called "secondary object type" which translates to aspect in Alfresco vocabulary. This allows you to query documents based on aspects by including them in as JOIN clauses in the CMIS query or by selecting on a specific CMIS property (i.e. for multi-value / OR-conditions).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is strongly recomended to use CMIS for generic folder/document access. The browser binding (CMIS 1.1) provides an API that is consumable by a ReST client. There are Alfresco-specific ReST endpoints that would allow you to perform similar searches, but they are primarily intended for internal use to support the Share user interface, and should not be used for application integration (unless you are willing to adapt on potentially every new version of Alfresco).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 07:52:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-search-for-a-specific-aspect-property/m-p/302397#M255527</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-06-27T07:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a specific aspect/property?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-search-for-a-specific-aspect-property/m-p/302398#M255528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi! Thanks for the answer! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding the documentation, where exactly are the RESTful endpoints? On this link(&lt;/SPAN&gt;&lt;A href="https://wiki.alfresco.com/wiki/CMIS_Web_Scripts_Reference#Get_Repositories_.28getRepositories.2C_getRepositoryInfo.29" rel="nofollow noopener noreferrer"&gt;https://wiki.alfresco.com/wiki/CMIS_Web_Scripts_Reference#Get_Repositories_.28getRepositories.2C_getRepositoryInfo.29&lt;/A&gt;&lt;SPAN&gt;) for example, the endpoints are listed as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GET /alfresco/service/cmis&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where is that in the CMIS 1.1 documentation?? If I go to the same link for the same method all I get is this: &lt;/SPAN&gt;&lt;A href="http://docs.oasis-open.org/cmis/CMIS/v1.1/errata01/os/CMIS-v1.1-errata01-os-complete.html#x1-1670001" rel="nofollow noopener noreferrer"&gt;http://docs.oasis-open.org/cmis/CMIS/v1.1/errata01/os/CMIS-v1.1-errata01-os-complete.html#x1-1670001&lt;/A&gt;&lt;SPAN&gt;. Where is the GET? This might be a dumb question sorry but I've been looking for the past day and I just have no idea where to find it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, so if I am understanding you correctly, I should be looking for a CMIS 1.1 endpoint that allows me to executes a CMIS query statement against the contents of the Repository, instead of the the CMIS 1.0 that I was using? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, since CMIS 1.1 includes secondary object types, I should be able to query for them by including them in as JOIN clauses in the CMIS query… are there any examples of this that I can find? I understand how to do a query like "SELECT * FROM cmis:document WHERE cmis:name='exampleName'", but how would this be different when I am querying for an aspect? Or for properties with OR-Conditions? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 16:48:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-search-for-a-specific-aspect-property/m-p/302398#M255528</guid>
      <dc:creator>ocean800</dc:creator>
      <dc:date>2016-06-29T16:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for a specific aspect/property?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-search-for-a-specific-aspect-property/m-p/302399#M255529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have linked the official Alfresco documentation in the last reply. The endpoints are used in all the examples, e.g. in &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/5.1/pra/1/concepts/cmis-1.1-browser-binding-get.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/5.1/pra/1/concepts/cmis-1.1-browser-binding-get.html&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;this one&amp;lt;/a&amp;gt; (/alfresco/api/-default-/public/cmis/versions/1.1/browser). If you google a bit, there is also this &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://www.google.de/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=2&amp;amp;ved=0ahUKEwj10OnZmOHNAhXIMhoKHRuNBeQQFgglMAE&amp;amp;url=https%3A%2F%2Fsummit.alfresco.com%2Fcmis%2Fviews%2Fworkspace%25253A%25252F%25252FSpacesStore%25252F62572dd8-c783-4330-aa0f-2642002f83f6&amp;amp;usg=AFQjCNGiS4o-MKqdhrpIYBPwocx7BuREZg&amp;amp;sig2=vOKZhGowZCID4P3f0S7GCw" rel="nofollow noopener noreferrer"&gt;https://www.google.de/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=2&amp;amp;ved=0ahUKEwj10OnZmOHNAhXIMhoKHRuNBeQQFgglMAE&amp;amp;url=https%3A%2F%2Fsummit.alfresco.com%2Fcmis%2Fviews%2Fworkspace%25253A%25252F%25252FSpacesStore%25252F62572dd8-c783-4330-aa0f-2642002f83f6&amp;amp;usg=AFQjCNGiS4o-MKqdhrpIYBPwocx7BuREZg&amp;amp;sig2=vOKZhGowZCID4P3f0S7GCw&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;first steps with CMIS&amp;lt;/a&amp;gt; presentation from one of the Alfresco Summit events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, you should not need to care about the specific URLs for an operation. Use a CMIS client library that will automatically look up the proper URLs to use for different operations, e.g. the OpenCMIS library is the de-facto king of handling CMIS both on client and server side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 10:58:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-search-for-a-specific-aspect-property/m-p/302399#M255529</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-07-07T10:58:20Z</dc:date>
    </item>
  </channel>
</rss>

