Alfresco 日历事件的电子邮件通知 [英] Email Notifications on Calendar Events in Alfresco

查看:31
本文介绍了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.

推荐答案

您可以在Sites/yoursite/calendar"文件夹上设置一个简单的规则,该文件夹执行发送电子邮件的 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.

从我的头顶是这样的:

...

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天全站免登陆