jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Moseley <...@osafoundation.org>
Subject Re: renaming an item
Date Thu, 14 Apr 2005 17:58:01 GMT
Tobias Strasser wrote:
> 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);
> }

ahh... that works for me. thanks.

Mime
View raw message