jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Kiehl <ki...@subshell.com>
Subject Re: Modifying node types
Date Thu, 13 Jul 2006 09:42:24 GMT
Stefan Guggisberg wrote:

>> in our current system we are able to extend nodetypes by adding 
>> properties or
>> nodes after the nodetype has been initially created. These 
>> properties/childnodes
>> have to be non-mandatory.
>> As of now Jackrabbit doesn't support this. Are there any reason 
>> besides 'it's
>> just not implemented' why this is currently not possible?
> trivial changes are supported, i.e. adding non-mandatory properties for 
> example
> should be fine. please take a look at the implementation of
> NodeTypeRegistry.reregister()
> and the javadoc of NodeTypeDefDiff.

Very nice! Didn't know that. How am I supposed to use the NodeTypeRegistry? I 
could use Workspace.getNodeTypeManager() cast it to NodeTypeManagerImpl and call 
getNodeTypeRegistry. But is there a better way to get the NodeTypeRegistry 
without knowing about NodeTypeManagerImpl?


View raw message