关于Alfresco日历活动的电子邮件通知 [英] Email Notifications on Calendar Events in Alfresco

查看:63
本文介绍了关于Alfresco日历活动的电子邮件通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Alfresco 4.0
,如果创建了日历事件,我需要向选定的成员或所有成员发送电子邮件通知。

I'm using Alfresco 4.0 I need to send email notification to selected members or all the members if a calendar event is created.

我'

请及时帮我,因为我快要截止期限了。

Kindly help me, as I'm on a deadline.

推荐答案

您可以在站点/您的站点/日历文件夹上设置一个简单规则,该规则执行发送电子邮件的JavaScript脚本。

You can set a simple rule on "Sites/yoursite/calendar" folder that executes a javascript script which sends the email.

如果您需要一些东西更为复杂的是,您可以使用alfresco的 onCreateNode策略并将其绑定到 ia:calendarEvent类型。

If you need something more complicated then you can use alfresco's "onCreateNode" policy and bind it to "ia:calendarEvent" type.

在我的脑海中,像这样:

From the top of my head something like this:

...

this.onCreateNode = new JavaBehaviour(this, "onCreateNode", NotificationFrequency.TRANSACTION_COMMIT);

this.policyComponent.bindClassBehaviour(QName.createQName(
    NamespaceService.ALFRESCO_URI, "onCreateNode"),
    "ia:calendarEvent", this.onCreateNode);

...
...
...

public void onCreateNode(ChildAssociationRef childAssocRef)
{
 //send email here
}

这篇关于关于Alfresco日历活动的电子邮件通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆