Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Avatar

Level 4

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 ? 

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

0 Replies

Avatar

Correct answer by
Employee

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

Avatar

Level 4

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