Using Oak API in AEM 6. How to get NodeStore? | Community
Skip to main content
October 16, 2015
Solved

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

  • October 16, 2015
  • 2 replies
  • 1029 views

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.
Best answer by joerghoh

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

gcarlino
Adobe Employee
Adobe Employee
October 16, 2015
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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