How to modify the Adobe CQ ActivatePageProcess process

与世无争的帅哥 提交于 2019-12-04 18:18:57

The process component can be found here:

/libs/wcm/workflow/components/workflow/activateresourceprocess

Please notice it's only an invoker of the ActivatePageProcess OSGi component.

However, I'm not sure if it a correct approach to achieve your goal. This process is used to activate some resource, but it isn't an activation event listener. Modifying it won't change the activation behaviour.

What you can do:

  • use replication preprocessor to prevent user from activating content (you can't redirect user to anything, though),
  • tweak sidekick/WCM ExtJS code and add there some additional logic to the activation action,
  • above WCM ExtJS code hits /bin/replicate servlet (Firebug will give you more details). You can write a servlet filter to intercept activation requests and send redirect is the user has insufficient privileges.

Typically you would remove replicate permissions for your Authors, and then modify the OOTB Activate WF step to include whatever logic you need. the Replication servlet that is called when a user clicks Activate (or Deactivate) will invoke the OOTB WF model if the users dont have permissions to replicate the content.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!