Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

root/openmrs-modules/datadeletion/metadata/moduleApplicationContext.xml

Revision 2092, 1.9 kB (checked in by bmckown, 1 year ago)

DataDeletionModule: Deletes from OpenMRS database: Patient, Form, Obs, Encounter, Concept

Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
3
4 <!-- Beans to add to the current Application context definition -->
5  
6 <beans>
7        
8     <bean id="dataDeletionModuleUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
9         <property name="mappings">
10             <props>
11                     <prop key="module/@MODULE_ID@/dataDeletion.form">dataDeletion</prop>
12                         </props>
13                 </property>
14         </bean>
15
16         <bean parent="serviceContext">
17                 <property name="moduleService">
18                         <list>
19                                 <value>@MODULE_PACKAGE@.DataDeletionService</value>
20                                 <bean class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
21                                         <property name="transactionManager"><ref bean="transactionManager"/></property>
22                                         <property name="target">
23                                                 <bean class="@MODULE_PACKAGE@.impl.DataDeletionServiceImpl">
24                                                         <property name="dataDeletionDAO">
25                                                                 <bean class="@MODULE_PACKAGE@.db.hibernate.HibernateDataDeletionDAO">
26                                                                         <property name="sessionFactory"><ref bean="sessionFactory"/></property>
27                                                                 </bean>
28                                                         </property>     
29                                                 </bean>
30                                         </property>
31                                         <property name="preInterceptors">
32                                                 <list>
33                                                         <ref bean="authorizationInterceptor"/>
34                                                 </list>
35                                         </property>
36                                         <property name="transactionAttributeSource">
37                                                 <bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/>
38                                         </property>
39                                 </bean>
40                         </list>
41                 </property>
42         </bean>
43        
44         <!-- Controllers -->
45        
46         <bean id="dataDeletion" class="@MODULE_PACKAGE@.web.controller.DataDeletionController">
47                 <property name="commandName"><value>services</value></property>
48                 <property name="formView"><value>/module/@MODULE_ID@/dataDeletion</value></property>
49                 <property name="successView"><value>dataDeletion.form</value></property>
50         </bean>
51        
52         <!-- /Controllers -->
53        
54        
55 </beans>
Note: See TracBrowser for help on using the browser.