Best way to read all pages/nodes along with metadata and page properties under /content | Community
Skip to main content
New Participant
October 16, 2015
Solved

Best way to read all pages/nodes along with metadata and page properties under /content

  • October 16, 2015
  • 3 replies
  • 835 views

Hi,

We have a requirement to read all nodes/pages under /content with their metadata and page properties.what is the best way to do this ? 

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 JustinEd3

Hi,

You should use the visitor pattern for this. There is a base class in the JCR API expressly for this purpose: TraversingItemVisitor.Default.

Regards,

Justin

3 replies

JustinEd3Accepted solution
Employee
October 16, 2015

Hi,

You should use the visitor pattern for this. There is a base class in the JCR API expressly for this purpose: TraversingItemVisitor.Default.

Regards,

Justin

user00725Author
New Participant
October 16, 2015

Hi Justin, thanks for giving me the hint, can you please provide me a sample code or any adobe example post.