jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: Modifying node types
Date Thu, 13 Jul 2006 10:03:53 GMT
On 7/13/06, Christoph Kiehl <kiehl@subshell.com> wrote:
> 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?

see e.g. http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/5929/focus=5978

cheers
stefan

>
> Thanks,
> Christoph
>
>

Mime
View raw message