jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Changing the primary type of a node?
Date Wed, 06 Jun 2007 09:13:45 GMT

On 6/6/07, Tako Schotanus <quintesse@gmail.com> wrote:
> On 6/6/07, Stefan Guggisberg <stefan.guggisberg@gmail.com> wrote:
> > currently there's no easy programmatic way of changing the primary type
> > of a node. jcr 2.0 (jsr-283) will include a new method
> > Node.setPrimaryType(String)
> Any idea how that is going to work?
> The types must be compatible somehow?

I guess the cleanest approach would be to re-evaluate the type
constraints during the next save() call. This way the client can
perform any modifications necessary to make the node meet the
constraints of the new type.


Jukka Zitting

View raw message