2012-03-28 1 views
2

알프레스코 4.0을 사용하고 있습니다 캘린더 일정을 만들면 선택한 회원 또는 모든 회원에게 이메일로 알림을 보내야합니다.알 프레스코의 캘린더 일정에 대한 이메일 알림

나는 초보자입니다.

마감 기한을 지키고있어.

+1

방금 ​​일정 폴더에 규칙을 보내는 이메일을 설정할 수 없습니다 : 당신은 대답을하기위한 곳 중 6 번째로 게시물을 읽어 보시기 바랍니다이 링크를 따를 수 있는가? – Gagravarr

+0

시도했지만 작동하지 않았다 –

+0

어떤 종류의 작동하지 않았습니까? 나는 당신이 규칙을 적절히 구성한다면 그것이해야한다고 생각한다. 얼마나 멀리까지 났니? – Gagravarr

답변

1

은 대략 다음과 같이 이동해야 :

는 스프링이 빈을 mananged 작성 방법과 policyComponent

<bean id="calendarType" class="your.CalendarType" 
    init-method="init"> 
    <property name="policyComponent" ref="policyComponent" /> 
</bean> 

주입 :

public void init() 
{ 
    policyComponent.bindClassBehaviour(NodeServicePolicies.OnCreateNodePolicy.QNAME, CalendarModel.TYPE_EVENT , 
      new JavaBehaviour(this, "onCreateNode")); 

} 

public void onCreateNode(ChildAssociationRef childAssocRef) 
{ 
// do stuff here 
} 

더 자세한 내용은 http://wiki.alfresco.com/wiki/Policy_Component에서보세요.

+0

대답 주셔서 감사합니다. –

2

전자 메일을 보내는 javascript 스크립트를 실행하는 "사이트/사용자/달력"폴더에 간단한 규칙을 설정할 수 있습니다.

좀 더 복잡한 것이 필요한 경우 alfresco의 "onCreateNode"정책을 사용하여 "ia : calendarEvent"유형에 바인딩 할 수 있습니다. 이처럼 내 머리에 뭔가의 상단에서

: 모든 가치있는 답변

... 

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 
} 
+0

고마워, 그것을 구현하려고합니다 .. –