You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by JCR <jc...@proxymit.net> on 2023/01/31 14:43:49 UTC
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
Re: Re-registering a nodetype with Oak
Posted by Angela Schreiber <an...@adobe.com.INVALID>.
Hi Juerg
Thanks a lot for your response and the ticket, very much appreciated.
The utilities I was referring to was the compact node type definition as present in https://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/cnd/
But it's a while that I have use it. Just wanted to mention it for the sake of completeness.
Afaik it's used for example in https://sling.apache.org/documentation/bundles/repository-initialization.html
Kind regards
Angela
________________________________
From: JCR <jc...@proxymit.net>
Sent: Monday, February 6, 2023 18:50
To: users@jackrabbit.apache.org <us...@jackrabbit.apache.org>
Subject: Re: Re-registering a nodetype with Oak
Hi Angela
Thanks for the input. The register* methods work indeed.
I opened jira issue OAK-10107.
Q: Which public utilities are you thinking of? Was missing these...
Best,
Juerg
On 01.02.23 09:38, Angela Schreiber wrote:
> 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 <jc...@proxymit.net>
> Sent: Tuesday, January 31, 2023 15:43
> To: users@jackrabbit.apache.org <us...@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
>
>
Re: Re-registering a nodetype with Oak
Posted by JCR <jc...@proxymit.net>.
Hi Angela
Thanks for the input. The register* methods work indeed.
I opened jira issue OAK-10107.
Q: Which public utilities are you thinking of? Was missing these...
Best,
Juerg
On 01.02.23 09:38, Angela Schreiber wrote:
> 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 <jc...@proxymit.net>
> Sent: Tuesday, January 31, 2023 15:43
> To: users@jackrabbit.apache.org <us...@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
>
>
Re: Re-registering a nodetype with Oak
Posted by Angela Schreiber <an...@adobe.com.INVALID>.
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 <jc...@proxymit.net>
Sent: Tuesday, January 31, 2023 15:43
To: users@jackrabbit.apache.org <us...@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