29f2ff1682ab6e220587d9b4b08a08532053bfeb
[utils] / security / src / test / resources / spring / test.org.wamblee.security.authorization.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
3
4 <beans>
5     
6     <bean id="org.wamblee.security.authorization.OperationRegistry"
7         class="org.wamblee.security.authorization.DefaultOperationRegistry">
8         <constructor-arg>
9             <list>
10                 <bean class="org.wamblee.security.authorization.AllOperation"/>
11                 <bean class="org.wamblee.security.authorization.CreateOperation"/>
12                 <bean class="org.wamblee.security.authorization.DeleteOperation"/>
13                 <bean class="org.wamblee.security.authorization.ReadOperation"/>
14                 <bean class="org.wamblee.security.authorization.WriteOperation"/>                
15             </list>
16         </constructor-arg>
17     </bean>
18     
19     <bean id="org.wamblee.security.authorization.AuthorizationService"
20         class="org.wamblee.security.authorization.hibernate.PersistentAuthorizationService">
21         <constructor-arg><value>DEFAULT</value></constructor-arg>
22         <constructor-arg><ref bean="org.springframework.orm.hibernate3.HibernateTemplate"/></constructor-arg>
23         <constructor-arg><ref bean="org.wamblee.usermgt.UserAccessor"/></constructor-arg>
24         <constructor-arg><value type="long">10000</value></constructor-arg>
25     </bean>
26     
27     <!-- any user -->
28     <bean id="anyUserCondition" class="org.wamblee.security.authorization.AnyUserCondition">
29     </bean>
30     
31     <!-- administrators -->
32     <bean id="adminUserCondition" class="org.wamblee.security.authorization.GroupUserCondition">
33         <constructor-arg><value>administrators</value></constructor-arg>
34     </bean>
35    
36 </beans>