Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
07/17/08 15:20:10 (6 months ago)
Author:
catullus
Message:

sync-bidrectional: partly merge

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/data_synchronization_bidirectional

    • Property svn:ignore changed from
      build*
      dist*
      ${env.CATALINA_HOME}
      docs
      .metadata
      setup.inf
      setup.rpt
      to
      build*
      dist*
      ${env.CATALINA_HOME}
      docs
      .metadata
      setup.inf
      setup.rpt
      *.iws
      *.ipr
      *.iml
  • openmrs/branches/data_synchronization_bidirectional/metadata/api/spring/applicationContext-service.xml

    r4306 r4969  
    6060        <property name="obsService"><ref bean="obsService"/></property> 
    6161        <property name="encounterService"><ref bean="encounterService"/></property> 
     62        <property name="locationService"><ref bean="locationService"/></property> 
    6263        <property name="orderService"><ref bean="orderService"/></property> 
    6364        <property name="formService"><ref bean="formService"/></property> 
     
    109110                <property name="sessionFactory"><ref bean="sessionFactory"/></property>  
    110111        </bean> 
     112        <bean id="locationDAO" class="org.openmrs.api.db.hibernate.HibernateLocationDAO"> 
     113                <property name="sessionFactory"><ref bean="sessionFactory"/></property>  
     114        </bean> 
    111115        <bean id="orderDAO" class="org.openmrs.api.db.hibernate.HibernateOrderDAO"> 
    112116                <property name="sessionFactory"><ref bean="sessionFactory"/></property>  
     
    213217                <property name="encounterDAO"><ref bean="encounterDAO"/></property>      
    214218        </bean> 
     219        <bean id="locationServiceTarget" class="org.openmrs.api.impl.LocationServiceImpl"> 
     220                <property name="locationDAO"><ref bean="locationDAO"/></property>        
     221        </bean> 
    215222        <bean id="orderServiceTarget" class="org.openmrs.api.impl.OrderServiceImpl"> 
    216223                <property name="orderDAO"><ref bean="orderDAO"/></property>      
     
    239246                                        <key><value>org.openmrs.reporting.PatientSearch</value></key> 
    240247                                        <bean class="org.openmrs.cohort.impl.PatientSearchCohortDefinitionProvider"/> 
     248                                </entry> 
     249                                <entry> 
     250                                        <key><value>org.openmrs.cohort.StaticCohortDefinition</value></key> 
     251                                        <bean class="org.openmrs.cohort.impl.StaticCohortDefinitionProvider"/> 
    241252                                </entry> 
    242253                        </map> 
     
    321332                        <list> 
    322333                                <ref local="authorizationInterceptor"/> 
     334                                <ref local="loggingInterceptor"/> 
    323335                        </list> 
    324336                </property> 
     
    334346                        <list> 
    335347                                <ref local="authorizationInterceptor"/> 
     348                                <ref local="loggingInterceptor"/> 
    336349                        </list> 
    337350                </property> 
     
    346359                        <list> 
    347360                                <ref local="authorizationInterceptor"/> 
     361                                <ref local="loggingInterceptor"/> 
    348362                        </list> 
    349363                </property> 
     
    358372                        <list> 
    359373                                <ref local="authorizationInterceptor"/> 
     374                                <ref local="loggingInterceptor"/> 
    360375                        </list> 
    361376                </property> 
     
    370385                        <list> 
    371386                                <ref local="authorizationInterceptor"/> 
     387                                <ref local="loggingInterceptor"/> 
    372388                        </list> 
    373389                </property> 
     
    382398                        <list> 
    383399                                <ref local="authorizationInterceptor"/> 
     400                                <ref local="loggingInterceptor"/> 
     401                        </list> 
     402                </property> 
     403                <property name="transactionAttributeSource"> 
     404                        <bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/> 
     405                </property> 
     406        </bean> 
     407        <bean id="locationService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> 
     408                <property name="transactionManager"><ref local="transactionManager"/></property> 
     409                <property name="target"><ref local="locationServiceTarget"/></property> 
     410                <property name="preInterceptors"> 
     411                        <list> 
     412                                <ref local="authorizationInterceptor"/> 
     413                                <ref local="loggingInterceptor"/> 
    384414                        </list> 
    385415                </property> 
     
    394424                        <list> 
    395425                                <ref local="authorizationInterceptor"/> 
     426                                <ref local="loggingInterceptor"/> 
    396427                        </list> 
    397428                </property> 
     
    406437                        <list> 
    407438                                <ref local="authorizationInterceptor"/> 
     439                                <ref local="loggingInterceptor"/> 
    408440                        </list> 
    409441                </property> 
     
    418450                        <list> 
    419451                                <ref local="authorizationInterceptor"/> 
     452                                <ref local="loggingInterceptor"/> 
    420453                        </list> 
    421454                </property> 
     
    430463                        <list> 
    431464                                <ref local="authorizationInterceptor"/> 
     465                                <ref local="loggingInterceptor"/> 
    432466                        </list> 
    433467                </property> 
     
    442476                        <list> 
    443477                                <ref local="authorizationInterceptor"/> 
     478                                <ref local="loggingInterceptor"/> 
    444479                        </list> 
    445480                </property> 
     
    454489                        <list> 
    455490                                <ref local="authorizationInterceptor"/> 
     491                                <ref local="loggingInterceptor"/> 
    456492                        </list> 
    457493                </property> 
     
    466502                        <list> 
    467503                                <ref local="authorizationInterceptor"/> 
     504                                <ref local="loggingInterceptor"/> 
    468505                        </list> 
    469506                </property> 
     
    502539                        <list> 
    503540                                <ref local="authorizationInterceptor"/> 
     541                                <ref local="loggingInterceptor"/> 
    504542                        </list> 
    505543                </property> 
     
    514552                        <list> 
    515553                                <ref local="authorizationInterceptor"/> 
     554                                <ref local="loggingInterceptor"/> 
    516555                        </list> 
    517556                </property> 
     
    526565                        <list> 
    527566                                <ref local="authorizationInterceptor"/> 
     567                                <ref local="loggingInterceptor"/> 
    528568                        </list> 
    529569                </property> 
     
    538578                        <list> 
    539579                                <ref local="authorizationInterceptor"/> 
     580                                <ref local="loggingInterceptor"/> 
    540581                        </list> 
    541582                </property> 
     
    550591                        <list> 
    551592                                <ref local="authorizationInterceptor"/> 
     593                                <ref local="loggingInterceptor"/> 
    552594                        </list> 
    553595                </property> 
     
    562604                        <list> 
    563605                                <ref local="authorizationInterceptor"/> 
     606                                <ref local="loggingInterceptor"/> 
    564607                        </list> 
    565608                </property> 
     
    574617                        <list> 
    575618                                <ref local="authorizationInterceptor"/> 
     619                                <ref local="loggingInterceptor"/> 
    576620                        </list> 
    577621                </property> 
     
    586630                        <list> 
    587631                                <ref local="authorizationInterceptor"/> 
     632                                <ref local="loggingInterceptor"/> 
    588633                        </list> 
    589634                </property> 
     
    614659        --> 
    615660        <bean id="authorizationInterceptor" class="org.openmrs.aop.AuthorizationAdvice"/> 
     661         
     662        <!--  **************************  LOGGING INTERCEPTOR  *************************  --> 
     663        <!-- 
     664                This as an AOP "around" advisor that prints logging messages  
     665        --> 
     666        <bean id="loggingInterceptor" class="org.openmrs.aop.LoggingAdvice"/> 
    616667 
    617668