repositories voor usermgt in aparte file.
[utils] / security / src / test / resources / spring / test.org.wamblee.security.usermgt.xml
index 132d827f137a1c52ee5a2aa4363743b81abcf1f3..443355f968c1730fbfc948fa8d3aa26b69476c15 100644 (file)
@@ -3,52 +3,15 @@
  
  <beans> 
     
-     <bean id="cacheConfig" class="org.wamblee.io.ClassPathResource">
-         <constructor-arg><value>properties/test.org.wamblee.security.ehcache.xml</value></constructor-arg>
-     </bean>
-     
-     <bean id="userCache" class="org.wamblee.cache.EhCache">
-         <constructor-arg><ref local="cacheConfig"/></constructor-arg>
-         <constructor-arg><value>users</value></constructor-arg>
-     </bean> 
-     
-    
-    <bean id="passwordValidator" 
-         class="org.wamblee.usermgt.RegexpNameValidator">
-             <constructor-arg><value>.{5,}</value></constructor-arg>
-             <constructor-arg><value>INVALID_PASSWORD</value></constructor-arg>
-             <constructor-arg><value>Password must have at least 5 characters</value></constructor-arg>
-    </bean>
-    
-     <bean id="passwordDigester"
-         class="org.wamblee.security.encryption.Md5HexMessageDigester">
-     </bean>
-    
-    <bean id="org.wamblee.usermgt.UserSet"
-        class="org.wamblee.usermgt.hibernate.HibernateUserSet">
-        <constructor-arg><ref local="userCache"/></constructor-arg>
-        <constructor-arg><ref local="passwordValidator"/></constructor-arg>
-        <constructor-arg><ref local="passwordDigester"/></constructor-arg>
-        
-        <property name="sessionFactory"><ref bean="sessionFactory"/></property>
-        
-    </bean>
-    
-    <bean id="org.wamblee.usermgt.GroupSet"
-        class="org.wamblee.usermgt.hibernate.HibernateGroupSet">
-        
-        <property name="sessionFactory"><ref bean="sessionFactory"/></property>
-    </bean> 
-    
     <bean id="org.wamblee.usermgt.UserAdministration-target"
         class="org.wamblee.usermgt.UserAdministrationImpl">
         
         <constructor-arg>
-           <ref local="org.wamblee.usermgt.UserSet"/>
+           <ref bean="org.wamblee.usermgt.UserSet"/>
         </constructor-arg>
         
         <constructor-arg>
-            <ref local="org.wamblee.usermgt.GroupSet"/>
+            <ref bean="org.wamblee.usermgt.GroupSet"/>
         </constructor-arg>
         
         <constructor-arg>