Files
alfresco-community-repo/source/test-resources/sync-test-context.xml
Alan Davis f00691956c Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
57150: Merged V4.2-BUG-FIX (4.2.1) to HEAD-BUG-FIX (Cloud/4.3)
      56936: Merged V4.1-BUG-FIX (4.1.7) to V4.2-BUG-FIX (4.2.1)
         56933: MNT-9414: LDAP synchronization fails if a user with trailing dots in user name is encountered
         Inject nameChecker to ChainingUserRegistrySynchronizers which are used for tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@61775 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-02-11 20:10:35 +00:00

76 lines
3.0 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>
<!-- A test instance of the user registry synchronizer -->
<bean id="testUserRegistrySynchronizer" class="org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer"
init-method="init">
<property name="authorityService">
<ref bean="authorityService" />
</property>
<property name="personService">
<ref bean="personService" />
</property>
<property name="attributeService">
<ref bean="attributeService" />
</property>
<property name="applicationContextManager">
<ref bean="testApplicationContextManager" />
</property>
<property name="transactionService">
<ref bean="transactionService" />
</property>
<property name="jobLockService">
<ref bean="jobLockService" />
</property>
<property name="sourceBeanName">
<value>userRegistry</value>
</property>
<property name="loggingInterval">
<value>100</value>
</property>
<property name="sysAdminParams">
<ref bean="sysAdminParams" />
</property>
<property name="nameChecker" ref="nameChecker" />
</bean>
<!-- A test instance of the user registry synchronizer -->
<bean id="testUserRegistrySynchronizerPreventDeletions" class="org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer"
init-method="init">
<property name="authorityService">
<ref bean="authorityService" />
</property>
<property name="personService">
<ref bean="personService" />
</property>
<property name="attributeService">
<ref bean="attributeService" />
</property>
<property name="applicationContextManager">
<ref bean="testApplicationContextManager" />
</property>
<property name="transactionService">
<ref bean="transactionService" />
</property>
<property name="jobLockService">
<ref bean="jobLockService" />
</property>
<property name="sourceBeanName">
<value>userRegistry</value>
</property>
<property name="loggingInterval">
<value>100</value>
</property>
<property name="allowDeletions">
<value>false</value>
</property>
<property name="sysAdminParams">
<ref bean="sysAdminParams" />
</property>
<property name="nameChecker" ref="nameChecker" />
</bean>
<!-- A fake applicaton context manager into which we can inject test-specific beans -->
<bean id="testApplicationContextManager" class="org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizerTest$MockApplicationContextManager" />
</beans>