Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 1

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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

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