How to get list of websites in AEM instance? | Community
Skip to main content
Level 3
July 8, 2019
Solved

How to get list of websites in AEM instance?

  • July 8, 2019
  • 3 replies
  • 3802 views

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

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 anujg3325839

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

3 replies

July 8, 2019

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

anujg3325839
Adobe Employee
anujg3325839Adobe EmployeeAccepted solution
Adobe Employee
July 9, 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

Level 3
July 11, 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