You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by "g.reinhart" <gr...@googlemail.com> on 2009/02/09 18:48:36 UTC
Re: OCM, queries and version history
Christophe Lombart wrote:
>
> There is a workaround but this is not the ideal solution :
> Make your own jcr query to get versions (as explained in the jcr
> specification - see 8.2.2.2) and get the object with the ocm method
> getObject(String path, String versionName)
>
To make your own jcr query on MyObject.class classes, you can use the
QueryManager ?
I don't thing this king of code would work :
QueryManager queryManager = ocm.getQueryManager();
Filter filterChange = queryManager.createFilter(MyObject.class );
filterChange.setScope( "/jcr:system/jcr:versionStrorage//");
--
View this message in context: http://www.nabble.com/OCM%2C-queries-and-version-history-tp21459838p21918082.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: OCM, queries and version history
Posted by "g.reinhart" <gr...@googlemail.com>.
Done : https://issues.apache.org/jira/browse/JCR-1973
Regards,
Gerald Reinhart
--
View this message in context: http://www.nabble.com/OCM%2C-queries-and-version-history-tp21459838p21934062.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: OCM, queries and version history
Posted by Christophe Lombart <ch...@gmail.com>.
Sorry for the delay,
>
> I don't thing this king of code would work :
>
> QueryManager queryManager = ocm.getQueryManager();
> Filter filterChange =
> queryManager.createFilter(MyObject.class );
> filterChange.setScope( "/jcr:system/jcr:versionStrorage//");
>
>
This is not yet supported but I think it should be possible to review some
parts of the OCM implementation to support that.
If you are interested by that, please create a new Jira issue. I'm going to
go back to the OCM project in a couple of days.
Best regards,
Christophe
>
> --
> View this message in context:
> http://www.nabble.com/OCM%2C-queries-and-version-history-tp21459838p21918082.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>