PageManager API | Community
Skip to main content
OlekLemeha
August 16, 2023
Solved

PageManager API

  • August 16, 2023
  • 3 replies
  • 1442 views

This is a three question post:

 

Can someone please provide with some Adobe Documentation for PageManager APIs?

 

Also, is PageManager API available for Adobe Experience Manager as a Cloud Service or is it just for AEM 6/CQ 5?

 

What maven dependency should a developer add to make the application, which uses PageManager API, compile and run correctly in AEM?

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 Lokesh_Vajrala

Hi @oleklemeha 

 

PageManager API is supported for On-Prem and Cloud Service. Regarding the dependency, it varies based on the type of setup.

On-Prem/ AEM 6.5.X:

You can add the Uber jar dependency matching with the AEM version, which is exporting the PageManager API - https://javadoc.io/doc/com.adobe.aem/uber-jar/latest/index.html 

<!-- https://mvnrepository.com/artifact/com.adobe.aem/uber-jar --> <dependency> <groupId>com.adobe.aem</groupId> <artifactId>uber-jar</artifactId> <version>VERSION_NUMBER</version> <scope>provided</scope> </dependency>

 

Cloud Service:

You can add the latest aem-sdk api dependency - https://javadoc.io/doc/com.adobe.aem/aem-sdk-api/latest/com/day/cq/wcm/api/package-summary.html 

<!-- https://mvnrepository.com/artifact/com.adobe.aem/aem-sdk-api --> <dependency> <groupId>com.adobe.aem</groupId> <artifactId>aem-sdk-api</artifactId> <version>VERSION_NUMBER</version> </dependency>

 

Your project may already have the dependency in the parent pom file, please check the pom.xml before adding it.

 

Thanks,

Lokesh

3 replies

Level 2
August 16, 2023

PageManager API Documentation - https://developer.adobe.com/experience-manager/reference-materials/6-4/javadoc/com/day/cq/wcm/api/PageManager.html

 

PageManager API is available for both on prem/AMS and cloud

 

Maven Dependency - If you include aem uber-jar then you do not need any additional dependency for PageManager

 

Hope above helps!

Lokesh_Vajrala
Community Advisor
Lokesh_VajralaCommunity AdvisorAccepted solution
Community Advisor
August 16, 2023

Hi @oleklemeha 

 

PageManager API is supported for On-Prem and Cloud Service. Regarding the dependency, it varies based on the type of setup.

On-Prem/ AEM 6.5.X:

You can add the Uber jar dependency matching with the AEM version, which is exporting the PageManager API - https://javadoc.io/doc/com.adobe.aem/uber-jar/latest/index.html 

<!-- https://mvnrepository.com/artifact/com.adobe.aem/uber-jar --> <dependency> <groupId>com.adobe.aem</groupId> <artifactId>uber-jar</artifactId> <version>VERSION_NUMBER</version> <scope>provided</scope> </dependency>

 

Cloud Service:

You can add the latest aem-sdk api dependency - https://javadoc.io/doc/com.adobe.aem/aem-sdk-api/latest/com/day/cq/wcm/api/package-summary.html 

<!-- https://mvnrepository.com/artifact/com.adobe.aem/aem-sdk-api --> <dependency> <groupId>com.adobe.aem</groupId> <artifactId>aem-sdk-api</artifactId> <version>VERSION_NUMBER</version> </dependency>

 

Your project may already have the dependency in the parent pom file, please check the pom.xml before adding it.

 

Thanks,

Lokesh

Level 3
August 17, 2023

Documentation is available at https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/index.html?com/day/cq/wcm/api/PageManager.html 

 

An example is available at https://github.com/adobe/aem-guides-wknd-mobile/blob/master/wknd-mobile.aem/core/src/main/java/com/adobe/aem/guides/wknd/mobile/core/models/HelloWorldModel.java 

 

PageManager API should be available for both AMS and AEMAaCS. The uber jar should contain it, so no need to import any dependencies.