Automate Catalog Blueprint Rollout | Community
Skip to main content
divyav90967713
Level 2
Jan 19, 2016 11:36 AM UTC
Solved

Automate Catalog Blueprint Rollout

Hi,

We have a requirement where in once the products are imported under /etc/commerce/products/xxx, creation of category and product pages has to be automated. 

AEM provides Catalog Blueprints where we have to manually structure the categories, map the templates, clientlibraries, tags etc., and when we click on "Create Catalog" button manually AEM will create the appropriate pages.

Instead this manual process, is there any API provided by AEM to create catalog/rollout catalog changes to generate/update pages.

Thanks,

Divya

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jitendra_S_Toma
Jitendra_S_TomaAccepted solution
Level 10
Jan 20, 2016 5:21 AM UTC

Hi Divya,

There is no such API's available in AEM which can solve your problem. You need to create custom tools in order to achieve creating catalog template, blueprint & product pages automatically (Through the API).

I do have these tools for one of my project. May not be as generic as you want, However, things are easier when you use them.

Let me know review those stuff again. 

Jitendra

7 replies

New Participant
Nov 1, 2016 9:36 AM UTC

You should take a look at the Commerce API. When the Blueprint templates are in place, you could make use of the CatalogGenerator to generate the product pages.

https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/adobe/cq/commerce/pim/api/CatalogGenerator.html

Translate
carlos_duque-80
New Participant
Sep 8, 2016 12:02 PM UTC

Hi Jitendra.

Did you finished the package? I am making a project with AEM and have the same requirements as Divya.

If you can help we would be very appreciated.

Regards,

Carlos

Translate
divyav90967713
Level 2
Jan 20, 2016 9:47 AM UTC

Thanks a lot Jitendra! smiley

Please attach the package to this thread.

Translate
Jitendra_S_Toma
Level 10
Jan 20, 2016 6:05 AM UTC

Divya,

The tool is not separated from the actual project code. I might need time to make it a separate package.

Jitendra

Translate
Level 2
Feb 18, 2020 11:24 AM UTC
Hi Jitendra, I do have a similar requirement. Could you please share the packages.
Translate
Jitendra_S_Toma
Jitendra_S_TomaAccepted solution
Level 10
Jan 20, 2016 5:21 AM UTC

Hi Divya,

There is no such API's available in AEM which can solve your problem. You need to create custom tools in order to achieve creating catalog template, blueprint & product pages automatically (Through the API).

I do have these tools for one of my project. May not be as generic as you want, However, things are easier when you use them.

Let me know review those stuff again. 

Jitendra

Translate
Kunal_Gaba_
New Participant
Jan 19, 2016 4:02 PM UTC

Yes you can call MSM API to roll out pages programmatically. 

RolloutManagaer has method for rollout - https://docs.adobe.com/docs/en/aem/6-1/ref/javadoc/com/day/cq/wcm/msm/api/RolloutManager.html

Example-

Page masterPage = pageManager.getPage(path); //source page RolloutManager.RolloutParams params = new RolloutManager.RolloutParams(); params.master = masterPage; params.isDeep = true; params.rolloutProgress = true; //rolloutmanager is an OSGI service rolloutManager.rollout(params);
Translate