1
0
mirror of synced 2026-08-06 10:18:52 +00:00

Changed method protection config to make it compatible with MethodDefinitionMap for the time being.

This commit is contained in:
Luke Taylor
2007-10-14 14:29:15 +00:00
parent a4b522351f
commit c51bcd9c1f
3 changed files with 80 additions and 9 deletions
@@ -8,12 +8,13 @@ http://www.springframework.org/schema/security http://www.springframework.org/sc
<security:autoconfig />
<bean id="someBusinessObject" class="org.springframework.security.config.TestBusinessBeanImpl">
<bean id="target" class="org.springframework.security.config.TestBusinessBeanImpl">
<!-- This will add a security interceptor to the bean -->
<security:intercept-methods>
<security:protect method="set*" access="ROLE_ADMIN" />
<security:protect method="get*" access="ROLE_ADMIN,ROLE_USER" />
<security:protect method="doSomething" access="ROLE_USER" />
<!-- TODO: It would be better if we didn't need the package/interface names here -->
<security:protect method="org.springframework.security.config.TestBusinessBean.set*" access="ROLE_ADMIN" />
<security:protect method="org.springframework.security.config.TestBusinessBean.get*" access="ROLE_ADMIN,ROLE_USER" />
<security:protect method="org.springframework.security.config.TestBusinessBean.doSomething" access="ROLE_USER" />
</security:intercept-methods>
</bean>