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:[EMAIL PROTECTED]
Sent: Thursday, November 15, 2007 6:14 PM
To: [email protected]
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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to