Skip to main content
Oct 16, 2015 2:26 AM UTC
Solved

Using Oak API in AEM 6. How to get NodeStore?

I was looking at the article about creating nodes and it says to use the jcr api.  Looking at the Oak APi, there seems to be some nice features like NodeBuilder which can be access through a NodeStore, but I cannot figure out how to get the NodeStore to be able to get the root NodeBuilder.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Oct 16, 2015 2:26 AM UTC

Hi,

Stick to the JCR API. That's the level of abstraction you should use. Do not use any Oak-specific API, as this is considered a private implementation detail of Oak. And for me the Nodestore API looks like a lowlevel version of the JCR Node API, with lot of Oak implementation details. So it brings no real additional value of the Node API.

 

kind regards,
Jörg

2 replies

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:26 AM UTC

Hi,

Stick to the JCR API. That's the level of abstraction you should use. Do not use any Oak-specific API, as this is considered a private implementation detail of Oak. And for me the Nodestore API looks like a lowlevel version of the JCR Node API, with lot of Oak implementation details. So it brings no real additional value of the Node API.

 

kind regards,
Jörg

Translate
gcarlino
Adobe Employee
Adobe Employee
Oct 16, 2015 2:26 AM UTC