Thanks again Florian!

That did the trick!

Geert

----- Original Message -----
From: "Florian Müller" <[email protected]>
To: [email protected], "g vanheusden" <[email protected]>
Sent: Thursday, March 3, 2011 2:53:17 PM
Subject: Re: getRenditions returns empty list

Hi Geert,

By default, renditions are not fetched from the repository. You have to set a 
rendition filter to retrieve rendition information.
You can do that by either setting a new default OperationContext for the 
Session (Session.setDefaultContext()) or by providing an OperationContext 
object to getObject() and query().
Please note, if you use JOINS in queries the repository will never return 
renditions.

See section "2.2.1.2.4 Renditions" in the CMIS spec how the rendition filter 
should look like.


Regards,

Florian
 



On 03/03/2011 13:31, Geert Vanheusden wrote:
> Hello,
> 
> I have a question about the getRenditions on QueryResult and CmisObject.
> I just created some renditions in Alfresco and they are visible in the 
> OpenCMIS Workbench under the Renditions tab.
> When I try to iterate over the renditions in my own code I always receive an 
> empty list. I tested this on a QueryResult and a CmisObject.
> 
> Tested on:
> * Alfresco Enterprise 3.4
> * OpenCMIS 0.2.0-incubating
> * alfresco-opencmis-extension-110208
> 
> * CMIS Workbench Version: 0.2.0-incubating-SNAPSHOT / Build: 20101006-1614
> 
> In the attachment you can find a screenshot of the source and rendition node 
> and of the workbench.
> 
> Hope you can help me.
> 
> Kind regards,
> 
> Geert
> 
> 
> 
> _________________________________________________
> 
>   We published a new company movie featuring YOU!
>           See http://www.aca-it.be/movie
> _________________________________________________

Reply via email to