mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
29508: Workflow Notification - First Cut * Notification service to consolidate sending of user notifications (kinds of notifications are provided by Sprung in notification providers) * EMail notification provider implementation (uses standard Email action to send email) * Frist cut workflow email template (still needs lots of details added) * AMP, etc for email template * Hook point within Activit and JBMP implementations * Property added to model (startTask) indicating whether email notifications should be sent * Hook points sensitive to property * Wf forms updated to show property 29703: Workflow Notification: * Remove AMP and replace with exploded XMl and template (easier to maintain) * Bootstrap updated * Patch added * Refactored hooks to use generic workflowTask object (tidies up helper methods) * I18n'ed messages * Task and work package information placed in template model * Email template built with reference to Lintons wire's (still needs some polish!) * Added Notification Servcice to Service Registry git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29705 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
64 lines
2.7 KiB
XML
64 lines
2.7 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
|
|
|
<beans>
|
|
|
|
<!-- Notification service bean -->
|
|
<bean id="NotificationService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
|
<property name="proxyInterfaces">
|
|
<value>org.alfresco.service.cmr.notification.NotificationService</value>
|
|
</property>
|
|
<property name="target">
|
|
<ref bean="notificationService"/>
|
|
</property>
|
|
<property name="interceptorNames">
|
|
<list>
|
|
<idref local="NotificationService_transaction"/>
|
|
<idref bean="AuditMethodInterceptor"/>
|
|
<idref bean="exceptionTranslator"/>
|
|
<idref bean="NotificationService_security"/>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- Notification service transaction bean -->
|
|
<bean id="NotificationService_transaction" class="org.springframework.transaction.interceptor.TransactionInterceptor">
|
|
<property name="transactionManager">
|
|
<ref bean="transactionManager"/>
|
|
</property>
|
|
<property name="transactionAttributes">
|
|
<props>
|
|
<prop key="*">${server.transaction.mode.default}</prop>
|
|
</props>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- This service has no security restrictions -->
|
|
<bean id="NotificationService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
|
|
|
|
<!-- I18N -->
|
|
<bean id="notificationServiceResourceBundles" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
|
|
<property name="resourceBundles">
|
|
<list>
|
|
<value>alfresco.messages.notification-service</value>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- Notification service implementation bean -->
|
|
<bean id="notificationService" class="org.alfresco.repo.notification.NotificationServiceImpl" >
|
|
</bean>
|
|
|
|
<!-- EMail notification provider -->
|
|
<bean id="emailNotificationProvider" class="org.alfresco.repo.notification.EMailNotificationProvider" init-method="init">
|
|
<property name="notificationService" ref="notificationService"/>
|
|
<property name="nodeService" ref="NodeService"/>
|
|
<property name="actionService" ref="ActionService"/>
|
|
<property name="personService" ref="PersonService"/>
|
|
<property name="repository" ref="repositoryHelper"/>
|
|
<property name="fileFolderService" ref="FileFolderService"/>
|
|
<property name="repoAdminService" ref="RepoAdminService"/>
|
|
</bean>
|
|
|
|
</beans>
|