Email Notifications on Calendar Events in Alfresco

前端 未结 3 1991
心在旅途
心在旅途 2021-01-07 02:40

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.

I\'m a newbie.

Kindly help m

3条回答
  •  别那么骄傲
    2021-01-07 03:13

    Should roughly go like this:

    Create a spring mananged bean, inject policyComponent

    
       
     
    

    with methods:

    public void init()
    {
        policyComponent.bindClassBehaviour(NodeServicePolicies.OnCreateNodePolicy.QNAME, CalendarModel.TYPE_EVENT ,
                new JavaBehaviour(this, "onCreateNode"));
    
    }
    
    public void onCreateNode(ChildAssociationRef childAssocRef)
    {
    // do stuff here
    }
    

    Have a look at http://wiki.alfresco.com/wiki/Policy_Component for more details.

提交回复
热议问题