where can i find js and java code of ootb publish button of aemaacs | Community
Skip to main content
Level 3
September 19, 2024

where can i find js and java code of ootb publish button of aemaacs

  • September 19, 2024
  • 3 replies
  • 1025 views

Hello developers , i want to know where can i find js and java code of ootb publish button of aemaacs. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Kamal_Kishor
Community Advisor
Community Advisor
September 19, 2024

@alisyed1 : Can you please share how are you going to use this information?

I can tell what happens when you click on 'Quick Publish'

 

1. Servlet "/bin/replicate" gets invoked.

2. It has list of all the selected pages in 'payload'. cmd tells if it is activate or deactivate action.

Hope this helps to get you started with your problem.

 

thanks.

AliSyed1Author
Level 3
September 20, 2024

i need to know how these paths are sent to /bin/replicate. are they using eventListener API of java to catch published content? In network tab request is made to /bin/replicate.

AliSyed1Author
Level 3
October 31, 2024

selected paths for replication are obtained in javascript flle of quickpublish button through Granite API.

pulkitvashisth
Community Advisor
Community Advisor
September 19, 2024

Hi @alisyed1 
The publish button is replication the pages internally.


If you want to use the same functionality in your own code, you can create a servlet, event handler, or sling job based on your use case for replication functionality.


Go over here in the AEMaaCS documentation :https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/operations/replication

Here navigate to the end to the topic Header Replication API

 

Here you can find the code you are looking for.

kautuk_sahni
Community Manager
Community Manager
September 25, 2024

@alisyed1 Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni