Live copy original page path | Community
Skip to main content
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 BrijeshYadav

As  smacdonald2008 said it's very good article to get detail information over MSM API.

Here you have direct API url which helps you to achieve your requirement and code snippet.


LiveRelationshipManager ("The Adobe AEM Quickstart and Web Application.")

LiveRelationship ("The Adobe AEM Quickstart and Web Application.")

@Reference
private LiveRelationshipManager liveRelationshipManager;
try {

  String sourcePath = liveRelationshipManager.getLiveRelationship(resource, true).getSourcePath();
} catch (WCMException exception) {

  exception.printStackTrace();
}

8 replies

adamm42245876
New Participant
March 14, 2018

Thank you.  Is it possible to get the master of a language copy with this API?

smacdonald2008
New Participant
March 13, 2018

Not possible - the MSM is a Java Strongly typed API - you have to use it within an OSGi bundle and use the MSM API as discussed in the article.

adamm42245876
New Participant
March 13, 2018

Not java, javascript.

smacdonald2008
New Participant
March 13, 2018

In the Article i listed the names of the main MSM objects are listed. See LiveCopy for example in the Javadocs:

"The CQ5 Quickstart and Web Application."

smacdonald2008
New Participant
March 13, 2018

Do you mean an artilce of running the MSM API in a HTL Java backend?

adamm42245876
New Participant
March 13, 2018

Thank you!

Do you have a sightly example?  No luck with the following:

const liveRelationshipManager = resource.adaptTo(com.day.cq.wcm.msm.api.LiveRelationshipManager);

sourcePath = liveRelationshipManager.getLiveRelationship(resource, true).getSourcePath();

BrijeshYadav
BrijeshYadavAccepted solution
New Participant
March 13, 2018

As  smacdonald2008 said it's very good article to get detail information over MSM API.

Here you have direct API url which helps you to achieve your requirement and code snippet.


LiveRelationshipManager ("The Adobe AEM Quickstart and Web Application.")

LiveRelationship ("The Adobe AEM Quickstart and Web Application.")

@Reference
private LiveRelationshipManager liveRelationshipManager;
try {

  String sourcePath = liveRelationshipManager.getLiveRelationship(resource, true).getSourcePath();
} catch (WCMException exception) {

  exception.printStackTrace();
}

smacdonald2008
New Participant
March 13, 2018

Using the MSM API - you can get a lot of information.

See - Adobe Experience Manager Help | Retrieving Adobe Experience Manager LiveCopy information using the MSM API

This artilce will show you how to use this API to obtain information from MSM. You can look at the Javadocs for learn about other methods and functionality.