jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Strasser <tobias.stras...@gmail.com>
Subject Re: renaming an item
Date Thu, 14 Apr 2005 07:50:25 GMT
nope. it is missing. you must use Session.move()

something like this (not tested):

void rename(Item item, String newName) {
  item.getSession().move(item.getPath(), item.getParent().getPath() +
"/" + newName);
}

On 4/14/05, Brian Moseley <bcm@osafoundation.org> wrote:
> am i missing something in the jcr api, or is there no method for
> renaming an existing node?
> 


-- 
------------------------------------------< tobias.strasser@day.com >---
Tobias Strasser, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97 
-----------------------------------------------< http://www.day.com >---

Mime
View raw message