hi juerg

as far as i can see in the code it is supported, though i don't know the exact 
details.
the proper way is to use the javax.jcr.nodetype.NodeTypeManager interface 
(and/or public utilities).

the javadoc you are quoting is just the result of sloppy programming as the 
ReadWriteNodeTypeManager (which is the implementation exposed through 
Workspace.getNodeTypeManager) doesn't come with a dedicate javadoc section and 
therefore inherits the doc from it's base class ReadOnlyNodeTypeManager.

would you mind creating a jira ticket such that we can fix that?

sorry for the inconvenience and kind regards
angela




________________________________
From: JCR <j...@proxymit.net>
Sent: Tuesday, January 31, 2023 15:43
To: users@jackrabbit.apache.org <users@jackrabbit.apache.org>
Subject: Re-registering a nodetype with Oak

Hello

I wonder how this is officially done... or not supported?

As per doc
(https://jackrabbit.apache.org/oak/docs/apidocs/org/apache/jackrabbit/oak/plugins/nodetype/write/ReadWriteNodeTypeManager.html),
the ReadWriteNodeTypeManager throws an
UnsupportedRepositoryOperationException on any registering operation as
prescribed by JCR2's NodeTypeManager interface.

Any hints?

Thanks,
Juerg

Reply via email to