cancel
Showing results for 
Search instead for 
Did you mean: 

cmis:isLatestVersion not queryable

athrawn17
Champ on-the-rise
Champ on-the-rise
This is the document definition from the cmis:document type in nightly drop of Alfresco 3.3 enterprise (somewhere around the June 9th).  Anyway, I'm curious as to why the isLatestVersion property is not queryable.  Wouldn't it make sense to do a query that looks like
Select * from cmis:document where cmis:name="myDoc.doc" and cmis:isLatestVersion=true

If we can't query that, then how do we find the latest version of a document in the repository? 

<cmis:propertyBooleanDefinition>
<cmis:id>cmis:isLatestVersion</cmis:id>
<cmis:localName>isLatestVersion</cmis:localName>
<cmis:localNamespace>http://www.alfresco.org/model/cmis/1.0/cs01</cmis:localNamespace>
<cmis:displayName>Is Latest Version</cmis:displayName>
<cmis:queryName>cmis:isLatestVersion</cmis:queryName>
<cmis:description>Is this the latest version of the document?</cmis:description>
<cmis:propertyType>boolean</cmis:propertyType>
<cmis:cardinality>single</cmis:cardinality>
<cmis:updatability>readonly</cmis:updatability>
<cmis:inherited>false</cmis:inherited>
<cmis:required>true</cmis:required>
<cmis:queryable>false</cmis:queryable>  <—————-
<cmis:orderable>false</cmis:orderable>
<cmis:openChoice>false</cmis:openChoice>
</cmis:propertyBooleanDefinition>
3 REPLIES 3

gclaussn
Champ in-the-making
Champ in-the-making
Don't know if you using a framework, i use the OpenCMIS framework there you define whether to query all versions or not. If you do not, you will only get the latest versions of all documents.
This is also part of the CMIS specification (see http://docs.oasis-open.org/cmis/CMIS/v1.0/os/cmis-spec-v1.0.html#_Toc243905469). There you can find it by the optional query inputs.

best regards, gclaussn

athrawn17
Champ on-the-rise
Champ on-the-rise
Thanks gclaussn

I am using Chemistry and that param is sent over.  What I'm seeing with Alfresco is that it is sending me the Private Working Copy as the latest version.  I'm trying to get all the documents that are the latest version and are not the PWC.  So far, this has been challenging to achieve.

athrawn17
Champ on-the-rise
Champ on-the-rise
Also, I don't see a reason that this property is not queryable.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.