1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
6 <bean id="cacheConfig" class="org.wamblee.io.ClassPathResource">
7 <constructor-arg><value>properties/test.org.wamblee.security.ehcache.xml</value></constructor-arg>
10 <bean id="userCache" class="org.wamblee.cache.EhCache">
11 <constructor-arg><ref local="cacheConfig"/></constructor-arg>
12 <constructor-arg><value>users</value></constructor-arg>
16 <bean id="passwordValidator"
17 class="org.wamblee.usermgt.RegexpNameValidator">
18 <constructor-arg><value>.{5,}</value></constructor-arg>
19 <constructor-arg><value>INVALID_PASSWORD</value></constructor-arg>
20 <constructor-arg><value>Password must have at least 5 characters</value></constructor-arg>
23 <bean id="passwordDigester"
24 class="org.wamblee.security.encryption.Md5HexMessageDigester">
27 <bean id="org.wamblee.usermgt.UserSet"
28 class="org.wamblee.usermgt.hibernate.HibernateUserSet">
29 <constructor-arg><ref local="userCache"/></constructor-arg>
30 <constructor-arg><ref local="passwordValidator"/></constructor-arg>
31 <constructor-arg><ref local="passwordDigester"/></constructor-arg>
33 <property name="sessionFactory"><ref bean="sessionFactory"/></property>
37 <bean id="org.wamblee.usermgt.GroupSet"
38 class="org.wamblee.usermgt.hibernate.HibernateGroupSet">
40 <property name="sessionFactory"><ref bean="sessionFactory"/></property>
43 <bean id="org.wamblee.usermgt.UserAdministration-target"
44 class="org.wamblee.usermgt.UserAdministrationImpl">
47 <ref local="org.wamblee.usermgt.UserSet"/>
51 <ref local="org.wamblee.usermgt.GroupSet"/>
55 <bean class="org.wamblee.usermgt.RegexpNameValidator">
56 <constructor-arg><value>[a-zA-Z]+[a-zA-Z0-9]*</value></constructor-arg>
57 <constructor-arg><value>INVALID_USERNAME</value></constructor-arg>
58 <constructor-arg><value></value></constructor-arg>
63 <bean class="org.wamblee.usermgt.RegexpNameValidator">
64 <constructor-arg><value>[a-zA-Z]+[a-zA-Z0-9]*</value></constructor-arg>
65 <constructor-arg><value>INVALID_GROUPNAME</value></constructor-arg>
66 <constructor-arg><value></value></constructor-arg>
72 <bean id="usermanagement-lock" class="org.wamblee.concurrency.JvmLock"/>
74 <bean id="usermanagement-lock-advice" class="org.wamblee.concurrency.spring.LockAdvice">
75 <constructor-arg><ref bean="usermanagement-lock"/></constructor-arg>
78 <bean id="org.wamblee.usermgt.UserAdministration"
79 class="org.springframework.aop.framework.ProxyFactoryBean">
80 <property name="proxyInterfaces"><value>org.wamblee.usermgt.UserAdministration</value></property>
81 <property name="interceptorNames"><value>usermanagement-lock-advice</value></property>
82 <property name="target"><ref bean="org.wamblee.usermgt.UserAdministration-target"/></property>