AEM6.3 Rollout does not pickup custom class of WCMCommand IN TOUCH UI but same works in classic | Community
Skip to main content
srinivas_chann1
Level 7
January 2, 2020
Solved

AEM6.3 Rollout does not pickup custom class of WCMCommand IN TOUCH UI but same works in classic

  • January 2, 2020
  • 3 replies
  • 2426 views

Hi,

 

Both classic and touch UI roll out calls /bin/wcmcommand for roll-out

 

We have custom class written for WCMCommand which gets called when using roll-out from classic sidekick

In classic we have customized to call it using 

\apps\cq\ui\widgets\source\widgets\wcm\msm\RolloutWizard.js  

 

But the same does not get called when using roll-out in touch UI ,How to customize for touch UI

 

@8220494(configurationPolicy = ConfigurationPolicy.REQUIRE, immediate = true, service = WCMCommand.class)
@Designate(ocd = RolloutWithWorkflowProperties.class)
public class RolloutWithWorkflow implements WCMCommand {.....}

 

 

Please let me know how to customize for touch UI 

 

Thanks

 

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 joerghoh

Hi,

 

I don't really get what you are trying to achieve. Do you want to overwrite some ootb behavior (which means that you change some parameters in the mentioned JS file to map a frontend function to a different backend service), or do you want to call a certain new backend functionality from the UI (and thus have problems with wiring the call into the UI)?

 

Jörg

3 replies

Amit-Tiwari
Level 4
January 2, 2020

Hi Srinivas,

I am not sure about your requirement, but for a similar type situation i handled this way with some new code for touch ui (js and java both)

 

var touchMode = Packages.com.day.cq.wcm.api.AuthoringUIMode.TOUCH;
var classicMode = Packages.com.day.cq.wcm.api.AuthoringUIMode.CLASSIC;
var currentMode = Packages.com.day.cq.wcm.api.AuthoringUIMode.fromRequest(request);
if(classicMode ==currentMode)
{
do your task you are in classic mode
}
if(touchMode ==currentMode)
{
do your task in touch mode

srinivas_chann1
Level 7
January 2, 2020

Any inputs from anyone??

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
January 3, 2020

Hi,

 

I don't really get what you are trying to achieve. Do you want to overwrite some ootb behavior (which means that you change some parameters in the mentioned JS file to map a frontend function to a different backend service), or do you want to call a certain new backend functionality from the UI (and thus have problems with wiring the call into the UI)?

 

Jörg

srinivas_chann1
Level 7
January 3, 2020
I want to to overwrite ootb behavior (which means that you change some parameters in the mentioned JS file to map a frontend function to a different backend service).In side kick we are customized to call a /bin/wcmcommand it with a instead of calling command as rollout we would call custom command.We would want to do the same for touch ui rollout