On 26.01.2023 20:09, Daniel Sbityakov wrote:
Hi,

I cannot seem to find a way to load my custom CND files in OAK.
Previously, using jackrabbit, this was done via jackrabbit’s
implementation of NodeTypeManager, e.g.,

NodeTypeManagerImpl manager = (NodeTypeManagerImpl) session.getWorkspace()
         .getNodeTypeManager();

That was an implementation detail :-)

InputStream is =
getClass().getClassLoader().getResourceAsStream(cndFileResource);

manager.registerNodeTypes(is, "text/x-jcr-cnd", true);

I do not see anything like this .registerNodeTypes() method on oak’s
implementation of NodeTypeManager.  Please advise.

Thanks in advance!

*Daniel Sbityakov*

Technical Architect

Have a look at
<https://jackrabbit.apache.org/api/trunk/org/apache/jackrabbit/commons/cnd/CndImporter.html>.

Best regards, Julian

Reply via email to