Hallo oak devs and community,

we are currently looking for a way to update our node type definitions using 
the cnd file. First of all, we are using OAK 1.6.20.

In general we create our custom node types via a cnd file

                               NodeTypeRegistry.register(root, cndFileStream, 
"custom node types");

This worked mostly fine as long as we didn't had changes to these. Now we 
wanted to add an additional value to the value constrain, but on existing 
repositories, these changes are not applied.

We managed to change these by using the NodeTypeManager, defining the node type 
through a  NodeTypeTemplate and register it again.

                               NodeTypeTemplate mixin = 
nodeTypeManager.createNodeTypeTemplate();
                               ...
                               nodeTypeManager.registerNodeType(mixin, true);

My question now is, is there a way to update node type definitions also with 
the cnd file or do we have to us the NodeTypeManager for it and if there is a 
way, how can we archive this?

Mit freundlichen Grüßen / Kind regards
Philipp Koetz


Reply via email to