repositories voor usermgt in aparte file.
[utils] / security / src / test / resources / spring / test.org.wamblee.security.usermgt.xml
index bed0d9ef8d4b597c515dd8e8003cccdf5a1fa4b2..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>
          <property name="target"><ref bean="org.wamblee.usermgt.UserAdministration-target"/></property>
      </bean>
      
-     <bean id="usermgtInitializer"
-         class="org.wamblee.usermgt.UserAdminInitializer">
-         <constructor-arg><ref local="org.wamblee.usermgt.UserAdministration"/></constructor-arg>
-         <!-- users -->
-         <constructor-arg>
-             <list>
-                 <value>erik</value>
-                 <value>admin</value>
-             </list>
-         </constructor-arg>
-         <!-- groups -->
-         <constructor-arg>
-             <list>
-                 <value>users</value>
-                 <value>${org.wamblee.security.admingroup}</value>
-             </list>
-         </constructor-arg>
-         <!-- passwords -->
-         <constructor-arg>
-             <list>
-                 <value>abc123</value>
-                 <value>abc123</value>
-             </list>
-         </constructor-arg>
-     </bean>
-     
  </beans>
\ No newline at end of file