What are the ways for AEM Site Analysis having multiple brands for getting component details. | Community
Skip to main content
Level 3
May 16, 2023
Solved

What are the ways for AEM Site Analysis having multiple brands for getting component details.

  • May 16, 2023
  • 2 replies
  • 686 views

I have a project with multiple brands. I need to do project analysis to get below component details for all the available components. 
1. Component Name

2. Component Version

3. Is it a global component or brand specific

4. Particular Brand in which the component is being used if it is brand specific

Also few more details like component reuse frequency.

What are the different ways to achieve 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 MayurSatav

Hi @manasi29 ,

 

To obtain all the necessary details about AEM components, you have a couple of options:

You can find comprehensive details about all components by visiting the following URL in your local AEM instance: http://localhost:4502/libs/wcm/core/content/sites/components.html.This page provides a centralized view of all components available in your AEM installation.

OR

By creating a custom servlet in your AEM project, you can utilize the `componentManager.getAllComponentNames()` method to retrieve details about all components programmatically. This allows you to access the component information and perform any necessary operations or customizations.

2 replies

Saravanan_Dharmaraj
Community Advisor
Community Advisor
May 16, 2023

@manasi29 Does your components has properties for version and global/brand? 

I am assuming your different brands have different root path in jcr. You can always query for component using sling:resourceType in the particular root path if its brand specific to figure out how many times it has been used.

MayurSatav
Community Advisor and Adobe Champion
MayurSatavCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
May 16, 2023

Hi @manasi29 ,

 

To obtain all the necessary details about AEM components, you have a couple of options:

You can find comprehensive details about all components by visiting the following URL in your local AEM instance: http://localhost:4502/libs/wcm/core/content/sites/components.html.This page provides a centralized view of all components available in your AEM installation.

OR

By creating a custom servlet in your AEM project, you can utilize the `componentManager.getAllComponentNames()` method to retrieve details about all components programmatically. This allows you to access the component information and perform any necessary operations or customizations.