You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Gu, George" <Ge...@disney.com> on 2011/09/15 00:58:47 UTC

How to Get Path of an NodeItem at Persistent Manager

Hi,
I would like to know what's the best way to get Path of an NodeItem at Persistent Manager.

I am thinking putting Path in NodeState when node is created and use it in Persistent Manager, but not sure if there is a better/simpler way.

Thanks a lot.

George Gu

Re: How to Get Path of an NodeItem at Persistent Manager

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Thu, Sep 15, 2011 at 12:58 AM, Gu, George <Ge...@disney.com> wrote:
> I would like to know what's the best way to get Path of an NodeItem at
> Persistent Manager.

Why would you want to do that? You shouldn't be accessing the
PersistenceManager interface directly unless you are working on a
patch to improve Jackrabbit internals. And if you do that, there
shouldn't be any need to know the path of an node as nodes are
internally accessed by id.

BR,

Jukka Zitting