15 messages in org.apache.jackrabbit.usersRE: OCM - Issue while loading list of...
FromSent OnAttachments
Kaizer ShaikhOct 30, 2007 8:03 am 
Christophe LombartOct 31, 2007 12:38 am 
Felix MeschbergerOct 31, 2007 12:50 am 
Kaizer ShaikhNov 5, 2007 10:56 pm 
KaizerNov 6, 2007 8:29 pm 
Marcel ReuteggerNov 7, 2007 1:29 am 
KaizerNov 7, 2007 9:00 pm 
Marcel ReuteggerNov 9, 2007 2:15 am 
KaizerNov 13, 2007 1:45 am 
Christophe LombartNov 13, 2007 12:12 pm 
KaizerNov 13, 2007 8:49 pm 
Christophe LombartNov 14, 2007 7:37 am 
Kaizer ShaikhNov 15, 2007 3:41 am 
Christophe LombartNov 15, 2007 4:43 am 
Kaizer ShaikhNov 21, 2007 3:33 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: OCM - Issue while loading list of classes at that path itself.Actions...
From:Kaizer Shaikh (Kaiz@mastek.com)
Date:Nov 21, 2007 3:33:22 am
List:org.apache.jackrabbit.users

Hi,

That is exactly my point. Shouldn't there have been a solution with XPath?

I have added a new method getObjects(Class, path) and made a patch for the same
(JCR-1198). I am not sure whether we should be doing it in the way I have
written code w.r.t. - forming of jcrExpression in ObjectContentManagerImpl instead of QueryManager - It will retrieve objects in that path only; basically no objects from child
nodes are retrieved.

Ideally in getObjects I would have formed a Query object and called the method
of QueryManager to get the jcrExpression. The reason I could not do it right now
is because the way query behaves for objects stored directly under that path.

If there is any other idea or suggestion to change this then let me know and I
can contribute a patch.

Regards, Kaizer

-----Original Message----- From: Christophe Lombart [mailto:chri@gmail.com] Sent: Thursday, November 15, 2007 6:14 PM To: use@jackrabbit.apache.org Subject: Re: OCM - Issue while loading list of classes at that path itself.

While storing an object in OCM under a path nothing is created below that Node. Hence I am not sure whether this is a bug in OCM's QueryManagerImpl.buildJCRExpression or JackRabbit (basically trying to retrieve self or descendant nodes for a path)?

I also tested here but I didn't find a solution with XPath. That's why I propose the new method which should be also useful for others cases.

Christophe

MASTEK LTD. Making a valuable difference Mastek in NASSCOM's 'India Top 20' Software Service Exporters List. In the US, we're called MAJESCOMASTEK