How to add custom code to AEM | Community
Skip to main content
January 9, 2023
Solved

How to add custom code to AEM

  • January 9, 2023
  • 1 reply
  • 1346 views

I would like to add custom code for some feature such as SSO, Invalidate CDN, and Audit Trail to AEM. Any suggestion? 

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 Ravi_Joshi

Hi @fang_29 ,

 

Adobe Experience Manager (AEM) is a comprehensive content management platform that allows you to build and manage a wide range of digital experiences. It provides a range of tools and features to help you create and deliver engaging content to your audience, and you can extend its capabilities by adding custom code for specific features or functionality.

To add custom code to AEM, you can use one of the following approaches:

  1. Use AEM's built-in scripting languages (such as JavaScript or Groovy) to write custom code that can be executed within the AEM environment.

  2. Use AEM's Java Content Repository (JCR) to store and retrieve custom Java code that can be executed within the AEM environment.

  3. Use AEM's OSGi framework to develop and deploy custom plugins or bundles that can add new functionality to AEM.

  4. Use AEM's Dispatcher module to add custom Apache HTTP Server modules or other server-side code that can be executed on the web server.

Each of these approaches has its own set of benefits and limitations, and the best approach for your specific needs will depend on your requirements and the resources available to you. For more information, I recommend reviewing the AEM documentation and consulting with an AEM developer or system administrator.

 

SSO Reference : https://experienceleague.adobe.com/docs/experience-manager-65/deploying/configuring/single-sign-on.html?lang=en#:~:text=Single%20Sign%20On%20(SSO)%20allows,Manager%20with%20the%20user%20credentials

 

Mentainence/Audit Log: https://experienceleague.adobe.com/docs/experience-manager-64/administering/operations/operations-audit-log.html?lang=en 

 

Invalidate cache :

https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/page-invalidate.html?lang=en 

 

Thanks,

Ravi Joshi

1 reply

Ravi_Joshi
Ravi_JoshiAccepted solution
January 9, 2023

Hi @fang_29 ,

 

Adobe Experience Manager (AEM) is a comprehensive content management platform that allows you to build and manage a wide range of digital experiences. It provides a range of tools and features to help you create and deliver engaging content to your audience, and you can extend its capabilities by adding custom code for specific features or functionality.

To add custom code to AEM, you can use one of the following approaches:

  1. Use AEM's built-in scripting languages (such as JavaScript or Groovy) to write custom code that can be executed within the AEM environment.

  2. Use AEM's Java Content Repository (JCR) to store and retrieve custom Java code that can be executed within the AEM environment.

  3. Use AEM's OSGi framework to develop and deploy custom plugins or bundles that can add new functionality to AEM.

  4. Use AEM's Dispatcher module to add custom Apache HTTP Server modules or other server-side code that can be executed on the web server.

Each of these approaches has its own set of benefits and limitations, and the best approach for your specific needs will depend on your requirements and the resources available to you. For more information, I recommend reviewing the AEM documentation and consulting with an AEM developer or system administrator.

 

SSO Reference : https://experienceleague.adobe.com/docs/experience-manager-65/deploying/configuring/single-sign-on.html?lang=en#:~:text=Single%20Sign%20On%20(SSO)%20allows,Manager%20with%20the%20user%20credentials

 

Mentainence/Audit Log: https://experienceleague.adobe.com/docs/experience-manager-64/administering/operations/operations-audit-log.html?lang=en 

 

Invalidate cache :

https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/page-invalidate.html?lang=en 

 

Thanks,

Ravi Joshi