Hi
When I tired to change existing node using NodeTypeRegistry.reregister(). I am
getting a exception "says not implemented"
javax.jcr.RepositoryException: not yet implemented
at
org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.checkForConflictingContent(NodeTypeRegistry.java:1690)
at
org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.reregisterNodeType(NodeTypeRegistry.java:1335)
-----Ursprüngliche Nachricht-----
Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Christoph Kiehl
Gesendet: Freitag, 4. August 2006 11:59
An: [email protected]
Betreff: Re: custom nodetypes
Ramesh Devaraj wrote:
> Hi
>
> I have custom node definition say
>
> [X] > nt: base
> + Y
>
> Using the above custom node definition I have create some node and saved in
> the database. But in the later stage I have changed the custom node
> definition to
>
> [X] > nt: base
> + Y
> + Z
>
> Now how can I upgrade the node definition in the database according to new
> custom node definition?
See: http://comments.gmane.org/gmane.comp.apache.jackrabbit.devel/7805
Basically you can use NodeTypeRegistry.reregister() to change existing node
types.
Cheers,
Christoph