Expand my Community achievements bar.

SOLVED

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

Avatar

Level 8

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

 

@component(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

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

5 Replies

Avatar

Level 4

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

Avatar

Correct answer by
Employee Advisor

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

Avatar

Level 8
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

Avatar

Employee Advisor
First of all, I would advise not to replace the ootb functions with your own; because you need to copy the original behavior first and then add your custom code on top. And there are reasons why the original behavior is not documented in every detail. If you really want to do that, you can find MSM related TouchUI dialogs in /libs/wcm/msm/content/touch-ui and /libs/dam/gui/content