jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramesh Devaraj" <r.deva...@maas.de>
Subject AW: Re: custom nodetypes
Date Fri, 04 Aug 2006 12:34:49 GMT
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:news@sea.gmane.org] Im Auftrag von Christoph Kiehl
Gesendet: Freitag, 4. August 2006 11:59
An: users@jackrabbit.apache.org
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


Mime
View raw message