chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriele Columbro <>
Subject Re: Open CMIS Query and cmis:baseTypeId
Date Thu, 08 Apr 2010 19:11:49 GMT
Hey Florian,
Thanks for the answer, see my clarifications interleaved:

Gabriele Columbro
Professional services EMEA
Alfresco Ltd.
(Sent from my iPhone)

On 8 apr 2010, at 19:37, Florian Müller <> wrote:

> Hi Gabriele,
> A CMIS repository _has to_ return the query name and _can_ return  
> the property id with every query result field. If the repository  
> does not return the property ids getPropertyValueById() will always  
> return null.
> getPropertyValueByQueryName() should be a safe bet. Before you can  
> use it, you have to get query name of cmis:baseTypeId from the  
> cmis:document type definition.

Sorry for not having been more specific here...I had already tried  
getPropertyValueByQueryName() as next geek tentative, but with no luck  
as I get a null there as well.

Also iterating all properties via the QueryResult.getProperties() gave  
no luck, as it seems just a subset of properties is returned (even if  
a wildcard property selection is issued).

So I created a small test case using Chemistry TCK working - guess  
what - against Alfresco, and I found out that actually the baseTypeId  
was not returned at all in the atom entry from the server, which makes  
it quite difficult for OpenCmis to return it :)

...sorry for the noise!

> We have to improve the documentation. Maybe it's possible to add  
> some convenience code here. I have to think about it.

Let me know if I can help out here and there on this topic, I  
definitely agree that javadocs can be a bit more verbose but I also  
reckon it makes much more sense to maybe wait for the f2f and then  
provide ultimate docs :)

> Thanks for pointing that out.

Always happy to help, thanks for the help.



> - Florian
> -----Original Message-----
> From: Gabriele Columbro []
> Sent: Donnerstag, 8. April 2010 19:10
> To:
> Subject: Open CMIS Query and cmis:baseTypeId
> Hi guys,
> I'm playing around with OpenCmis and CMIS SQL querying and I'm having
> some trouble in retrieving objects properties from the QueryResult
> class.
> For instance, I'm getting a null value when trying to retrieve:
> QueryResult.getPropertyValueById("cmis:baseTypeId")
> which seems not to be returned in a simple "select * from
> cmis:document" .
> I understand I can't query on cmis:baseTypeId (as it's not queryable)
> but how can I know which base type a specific object instance is
> without re-issuing a serverside call?
> Shall I file an issue or this is the expected behavior?
> Thanks in advance for the clarification,
> Gab
> -- 
> Eng. Gabriele Columbro
> Alfresco Software, Ltd.
> M: +31 (0)627 565 103
> P: +39 320 161 28 46
> D: +44 (0)1628 876 654
> Skype: gabrielecolumbro
> Blog:

View raw message