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
BedrockMission!

Learn More

View all

Sign in to view all badges

How to get list of websites in AEM instance?

Avatar

Avatar
Validate 1
Level 2
kiranv40650953
Level 2

Likes

8 likes

Total Posts

32 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 2
kiranv40650953
Level 2

Likes

8 likes

Total Posts

32 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
kiranv40650953
Level 2

08-07-2019

Hi Team,

I am using AEM 6.4.4 and I need to get list of websites exist with this path /content/*/en/brand***/website*** in backend class.How to get regular expression for the same and generate paths.

Brand and Website are for example structure.

Please help me to get this done.

Thanks,

Kiran

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Level 3
anujg3325839
Level 3

Likes

27 likes

Total Posts

26 posts

Correct Reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Level 3
anujg3325839
Level 3

Likes

27 likes

Total Posts

26 posts

Correct Reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
anujg3325839
Level 3

08-07-2019

Hi Kiran,

You need to use the JCR queries to fetch the data in the backend class , I have noy tried by myself but you can use the queries to get you the desired results with regular expression. for example - "WHERE ISDESCENDANTNODE(s,'/content/*/en/*/product')"

Query Builder API

Answers (2)

Answers (2)

Avatar

Avatar
Give Back 5
Level 4
joeb21688728
Level 4

Likes

33 likes

Total Posts

60 posts

Correct Reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Level 4
joeb21688728
Level 4

Likes

33 likes

Total Posts

60 posts

Correct Reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
joeb21688728
Level 4

08-07-2019

Try to use an API to search the JCR like QueryBuilder API.

Avatar

Avatar
Validate 1
Level 2
kiranv40650953
Level 2

Likes

8 likes

Total Posts

32 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 2
kiranv40650953
Level 2

Likes

8 likes

Total Posts

32 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
kiranv40650953
Level 2

11-07-2019

I am getting list of websites. I need to get list of groups and users associated with the website.

Please help me to achieve this.

Thanks,

Kiran