내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Promoting Launch Using Api

Avatar

Level 2

Hi,

I am trying to use LaunchManager Api to Promote the launch, but I am unable to set LaunchPromotion Parameters.

https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/javadoc/co...

 

Code : 

Launch launch = res.adaptTo(Launch.class); // Launch Path

LaunchManager launchManager = res.adaptTo(LaunchManager.class); // LaunchManager object

launchManager.promoteLaunch(launch, launchParameters?);

 

if anyone has a sample code snippet, that would be helpful.

 

Thanks in advance.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee Advisor

@pmahiske19 

Here's the sample implementation for promoting a launch programmatically, which you can refer to:

 

https://github.com/terrabeata/promote-launch/blob/master/bundle/src/main/java/com/adobe/daycare/exam...

원본 게시물의 솔루션 보기

4 답변 개

Avatar

Employee Advisor

I believe you just have to create a new Java POJO class which will implement LaunchPromotionParameters interface. Implement the methods of the interface and pass the POJO object to the promoteLaunch method. 

Avatar

Level 2
LaunchPromotionParameters has all getters. I tried to get it using Impl but unable to do it. do we have any other option to get the LaunchPromotionParameters ?

Avatar

Employee Advisor

Just override those getters in your implementation class and pass the instance to the API method.

Avatar

정확한 답변 작성자:
Employee Advisor

@pmahiske19 

Here's the sample implementation for promoting a launch programmatically, which you can refer to:

 

https://github.com/terrabeata/promote-launch/blob/master/bundle/src/main/java/com/adobe/daycare/exam...