jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukas Kahwe Smith <...@pooteeweet.org>
Subject Re: Varying the node primary type
Date Sun, 06 May 2012 07:46:06 GMT

On May 6, 2012, at 09:41 , Francisco Carriedo Scher wrote:

> Hi there,
> in a given point after creating a nt:file node i need to change the node
> type to nt:linkedFile. Sometimes such node will already have it's proper
> sons (a node called jcr:content and property called jcr:data inside this
> last one) and sometimes not.

the JCR specification does not allow changing the primary node type once a node has been created.
not sure if there is an established pattern for this case, but all you could do is remove
the old node and create a new node.

Lukas Kahwe Smith

View raw message