本文介绍了如何修改Adobe CQ ActivatePageProcess流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Adobe Experience Manager 5.6(CQ)。我有一个要求,涉及修改ActivatePageProcess工作流程,基本上检查要发布的用户,并在不是管理员的情况下实际打开文档进行编辑。我遇到的问题是,我不清楚在CRXDE中哪里可以找到ActivatePageProcess脚本,或者甚至在哪里也找不到。找到它之后,我知道可以将其移至/ apps并进行更改,但是到目前为止,我根本找不到它。有人可以给我一些指导吗?

I'm working with Adobe Experience Manager version 5.6 (CQ). I have a requirement that involves modifying the ActivatePageProcess workflow process, basically checking who the user is that is trying to publish, and actually opening the document for edit if it's not an administrator. The issue I'm having is that I'm not clear where I can find the ActivatePageProcess script in CRXDE ... or if it's even there. Once I find it, I know I can move it to /apps and make my changes, but so far I'm not able to find it at all. Can anybody give me some guidance?

非常感谢Jim,

推荐答案

可以在这里找到流程组件:

The process component can be found here:

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

请注意,它只是 OSGi组件。

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.

您可以做什么:


  • 使用阻止用户激活内容(尽管不能将用户重定向到任何内容),

  • 调整sidekick / WCM ExtJS代码,并在激活操作中添加一些其他逻辑,

  • 在WCM ExtJS代码之上的命中 / bin / replicate servlet(Firebug将为您提供更多详细信息)。您可以编写servlet过滤器以拦截激活请求并在用户权限不足时发送重定向。

  • 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.

这篇关于如何修改Adobe CQ ActivatePageProcess流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 06:41