禁用项目/文件夹ALFRESCO 5.2上的邮件通知

时间:2016-07-03 03:27:34

标签: javascript node.js alfresco aspect

我创建了这个JS代码,以便在点击按钮时禁用和启用通知:

(Action.min.js):

var me = this,
        jsNode = record.jsNode,
        content = jsNode.isContainer ? "folder" : "document";

     if (jsNode.hasAspect("cm:emailed"))
     {
         // add code to disable notifications
         Alfresco.util.PopupManager.displayMessage(
                       {
                          text: this.msg("message.notification.disable")
                       });
     }

     else {
         // add code to enable notifications
         Alfresco.util.PopupManager.displayMessage(
                       {
                          text: this.msg("message.notification.enable")
                       });
     }

},

我尝试做的技巧是禁用某些文件夹上的发送邮件规则。我想知道这是否可能。

我使用alfresco 5.2 谢谢

1 个答案:

答案 0 :(得分:0)

我认为你不能做那样的事情。您可以关闭整个站点的通知,然后在特定文件夹(您要发送通知的位置)上使用规则“将它们重新启动”(实际上,发送它们)。