| Message view | « Date » · « Thread » |
|---|---|
| Top | « Date » · « Thread » |
| From | Jukka Zitting <jukka.zitt...@gmail.com> |
| Subject | Re: Get Path from Node |
| Date | Mon, 01 Mar 2010 18:53:33 GMT |
Hi, On Mon, Mar 1, 2010 at 6:27 PM, Paco Avila <monkiki@gmail.com> wrote: > I see a couple of ways to obtain the Path from a Node: > > - Path path = ((NodeImpl) myNode).getPrimaryPath(); > - Path path = ((SessionImpl) > session).getHierarchyManager().getPath(((NodeImpl) myNode).getId()); > > Which is the preferred form? Neither. You shouldn't be typecasting instances to Jackrabbit-specific implementation classes. What's wrong with a standard myNode.getPath() call? BR, Jukka Zitting | |
| Mime |
|
| View raw message | |