SEC-1051: Fixed class names in dms sample app context.

This commit is contained in:
Luke Taylor 2008-12-12 17:43:09 +00:00
parent 615194710e
commit df771038b4
1 changed files with 70 additions and 70 deletions

View File

@ -16,33 +16,33 @@
<property name="password" value=""/> <property name="password" value=""/>
</bean> </bean>
<bean id="transactionInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor"> <bean id="transactionInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionAttributeSource"> <property name="transactionAttributeSource">
<value> <value>
sample.dms.secured.SecureDocumentDao.*=PROPAGATION_REQUIRED sample.dms.secured.SecureDocumentDao.*=PROPAGATION_REQUIRED
sample.dms.DocumentDao.*=PROPAGATION_REQUIRED sample.dms.DocumentDao.*=PROPAGATION_REQUIRED
org.springframework.security.acls.AclService.*=PROPAGATION_REQUIRED org.springframework.security.acls.AclService.*=PROPAGATION_REQUIRED
org.springframework.security.acls.MutableAclService.*=PROPAGATION_REQUIRED org.springframework.security.acls.MutableAclService.*=PROPAGATION_REQUIRED
org.springframework.security.acls.jdbc.JdbcMutableAclService.*=PROPAGATION_REQUIRED org.springframework.security.acls.jdbc.JdbcMutableAclService.*=PROPAGATION_REQUIRED
org.springframework.security.acls.jdbc.JdbcAclService.*=PROPAGATION_REQUIRED org.springframework.security.acls.jdbc.JdbcAclService.*=PROPAGATION_REQUIRED
</value> </value>
</property> </property>
<property name="transactionManager" ref="transactionManager" /> <property name="transactionManager" ref="transactionManager" />
</bean> </bean>
<bean id="documentDao" class="sample.dms.secured.SecureDocumentDaoImpl"> <bean id="documentDao" class="sample.dms.secured.SecureDocumentDaoImpl">
<constructor-arg ref="aclService"/> <constructor-arg ref="aclService"/>
<property name="dataSource" ref="dataSource"/> <property name="dataSource" ref="dataSource"/>
</bean> </bean>
<bean id="dataSourcePopulator" class="sample.dms.secured.SecureDataSourcePopulator"> <bean id="dataSourcePopulator" class="sample.dms.secured.SecureDataSourcePopulator">
<constructor-arg ref="dataSource"/> <constructor-arg ref="dataSource"/>
<constructor-arg ref="documentDao"/> <constructor-arg ref="documentDao"/>
<constructor-arg ref="transactionManager"/> <constructor-arg ref="transactionManager"/>
<constructor-arg ref="aclService"/> <constructor-arg ref="aclService"/>
</bean> </bean>
<!-- =================================== SECURITY DEFINITION BEANS ======================================== --> <!-- =================================== SECURITY DEFINITION BEANS ======================================== -->
<!-- ======================== AUTHENTICATION (note there is no UI and this is for integration tests only) ======================= --> <!-- ======================== AUTHENTICATION (note there is no UI and this is for integration tests only) ======================= -->
@ -64,7 +64,7 @@
<property name="userDetailsService" ref="jdbcDaoImpl"/> <property name="userDetailsService" ref="jdbcDaoImpl"/>
<property name="userCache" ref="userCache"/> <property name="userCache" ref="userCache"/>
<property name="passwordEncoder"> <property name="passwordEncoder">
<bean class="org.springframework.security.providers.encoding.Md5PasswordEncoder"/> <bean class="org.springframework.security.providers.encoding.Md5PasswordEncoder"/>
</property> </property>
</bean> </bean>
@ -115,28 +115,28 @@
<bean id="roleVoter" class="org.springframework.security.vote.RoleVoter"/> <bean id="roleVoter" class="org.springframework.security.vote.RoleVoter"/>
<!-- An access decision voter that reads ACL_ABSTRACT_ELEMENT_WRITE_PARENT configuration settings --> <!-- An access decision voter that reads ACL_ABSTRACT_ELEMENT_WRITE_PARENT configuration settings -->
<bean id="aclAbstractElementWriteParentVoter" class="org.springframework.security.vote.AclEntryVoter"> <bean id="aclAbstractElementWriteParentVoter" class="org.springframework.security.acls.vote.AclEntryVoter">
<constructor-arg ref="aclService"/> <constructor-arg ref="aclService"/>
<constructor-arg value="ACL_ABSTRACT_ELEMENT_WRITE_PARENT"/> <constructor-arg value="ACL_ABSTRACT_ELEMENT_WRITE_PARENT"/>
<constructor-arg> <constructor-arg>
<list> <list>
<ref local="org.springframework.security.acls.domain.BasePermission.ADMINISTRATION"/> <ref local="org.springframework.security.acls.domain.BasePermission.ADMINISTRATION"/>
<ref local="org.springframework.security.acls.domain.BasePermission.WRITE"/> <ref local="org.springframework.security.acls.domain.BasePermission.WRITE"/>
</list> </list>
</constructor-arg> </constructor-arg>
<property name="processDomainObjectClass"><value>sample.dms.AbstractElement</value></property> <property name="processDomainObjectClass" value="sample.dms.AbstractElement"/>
<property name="internalMethod" value="getParent"/> <property name="internalMethod" value="getParent"/>
</bean> </bean>
<!-- An access decision voter that reads ACL_ABSTRACT_ELEMENT_WRITE configuration settings --> <!-- An access decision voter that reads ACL_ABSTRACT_ELEMENT_WRITE configuration settings -->
<bean id="aclAbstractElementWriteVoter" class="org.springframework.security.vote.AclEntryVoter"> <bean id="aclAbstractElementWriteVoter" class="org.springframework.security.acls.vote.AclEntryVoter">
<constructor-arg ref="aclService"/> <constructor-arg ref="aclService"/>
<constructor-arg value="ACL_ABSTRACT_ELEMENT_WRITE"/> <constructor-arg value="ACL_ABSTRACT_ELEMENT_WRITE"/>
<constructor-arg> <constructor-arg>
<list> <list>
<ref local="org.springframework.security.acls.domain.BasePermission.ADMINISTRATION"/> <ref local="org.springframework.security.acls.domain.BasePermission.ADMINISTRATION"/>
<ref local="org.springframework.security.acls.domain.BasePermission.WRITE"/> <ref local="org.springframework.security.acls.domain.BasePermission.WRITE"/>
</list> </list>
</constructor-arg> </constructor-arg>
<property name="processDomainObjectClass"><value>sample.dms.AbstractElement</value></property> <property name="processDomainObjectClass"><value>sample.dms.AbstractElement</value></property>
</bean> </bean>
@ -155,47 +155,47 @@
<!-- ========= ACCESS CONTROL LIST LOOKUP MANAGER DEFINITIONS ========= --> <!-- ========= ACCESS CONTROL LIST LOOKUP MANAGER DEFINITIONS ========= -->
<bean id="aclCache" class="org.springframework.security.acls.jdbc.EhCacheBasedAclCache"> <bean id="aclCache" class="org.springframework.security.acls.jdbc.EhCacheBasedAclCache">
<constructor-arg> <constructor-arg>
<bean class="org.springframework.cache.ehcache.EhCacheFactoryBean"> <bean class="org.springframework.cache.ehcache.EhCacheFactoryBean">
<property name="cacheManager"> <property name="cacheManager">
<bean class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"/> <bean class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"/>
</property> </property>
<property name="cacheName" value="aclCache"/> <property name="cacheName" value="aclCache"/>
</bean> </bean>
</constructor-arg> </constructor-arg>
</bean> </bean>
<bean id="lookupStrategy" class="org.springframework.security.acls.jdbc.BasicLookupStrategy"> <bean id="lookupStrategy" class="org.springframework.security.acls.jdbc.BasicLookupStrategy">
<constructor-arg ref="dataSource"/> <constructor-arg ref="dataSource"/>
<constructor-arg ref="aclCache"/> <constructor-arg ref="aclCache"/>
<constructor-arg ref="aclAuthorizationStrategy"/> <constructor-arg ref="aclAuthorizationStrategy"/>
<constructor-arg> <constructor-arg>
<bean class="org.springframework.security.acls.domain.ConsoleAuditLogger"/> <bean class="org.springframework.security.acls.domain.ConsoleAuditLogger"/>
</constructor-arg> </constructor-arg>
</bean> </bean>
<bean id="aclAuthorizationStrategy" class="org.springframework.security.acls.domain.AclAuthorizationStrategyImpl"> <bean id="aclAuthorizationStrategy" class="org.springframework.security.acls.domain.AclAuthorizationStrategyImpl">
<constructor-arg> <constructor-arg>
<list> <list>
<bean class="org.springframework.security.GrantedAuthorityImpl"> <bean class="org.springframework.security.GrantedAuthorityImpl">
<constructor-arg value="ROLE_ADMINISTRATOR"/> <constructor-arg value="ROLE_ADMINISTRATOR"/>
</bean> </bean>
<bean class="org.springframework.security.GrantedAuthorityImpl"> <bean class="org.springframework.security.GrantedAuthorityImpl">
<constructor-arg value="ROLE_ADMINISTRATOR"/> <constructor-arg value="ROLE_ADMINISTRATOR"/>
</bean> </bean>
<bean class="org.springframework.security.GrantedAuthorityImpl"> <bean class="org.springframework.security.GrantedAuthorityImpl">
<constructor-arg value="ROLE_ADMINISTRATOR"/> <constructor-arg value="ROLE_ADMINISTRATOR"/>
</bean> </bean>
</list> </list>
</constructor-arg> </constructor-arg>
</bean> </bean>
<bean id="aclService" class="org.springframework.security.acls.jdbc.JdbcMutableAclService"> <bean id="aclService" class="org.springframework.security.acls.jdbc.JdbcMutableAclService">
<constructor-arg ref="dataSource"/> <constructor-arg ref="dataSource"/>
<constructor-arg ref="lookupStrategy"/> <constructor-arg ref="lookupStrategy"/>
<constructor-arg ref="aclCache"/> <constructor-arg ref="aclCache"/>
</bean> </bean>
<!-- ============== "AFTER INTERCEPTION" AUTHORIZATION DEFINITIONS =========== --> <!-- ============== "AFTER INTERCEPTION" AUTHORIZATION DEFINITIONS =========== -->
@ -208,19 +208,19 @@
</bean> </bean>
<!-- Processes AFTER_ACL_COLLECTION_READ configuration settings --> <!-- Processes AFTER_ACL_COLLECTION_READ configuration settings -->
<bean id="afterAclCollectionRead" class="org.springframework.security.afterinvocation.AclEntryAfterInvocationCollectionFilteringProvider"> <bean id="afterAclCollectionRead" class="org.springframework.security.acls.afterinvocation.AclEntryAfterInvocationCollectionFilteringProvider">
<constructor-arg ref="aclService"/> <constructor-arg ref="aclService"/>
<constructor-arg> <constructor-arg>
<list> <list>
<ref local="org.springframework.security.acls.domain.BasePermission.ADMINISTRATION"/> <ref local="org.springframework.security.acls.domain.BasePermission.ADMINISTRATION"/>
<ref local="org.springframework.security.acls.domain.BasePermission.READ"/> <ref local="org.springframework.security.acls.domain.BasePermission.READ"/>
</list> </list>
</constructor-arg> </constructor-arg>
</bean> </bean>
<!-- ================= METHOD INVOCATION AUTHORIZATION ==================== --> <!-- ================= METHOD INVOCATION AUTHORIZATION ==================== -->
<bean id="methodSecurityAdvisor" class="org.springframework.security.intercept.method.aopalliance.MethodDefinitionSourceAdvisor" autowire="constructor"/> <bean id="methodSecurityAdvisor" class="org.springframework.security.intercept.method.aopalliance.MethodDefinitionSourceAdvisor" autowire="constructor"/>
<bean id="methodSecurityInterceptor" class="org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor"> <bean id="methodSecurityInterceptor" class="org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor">
<property name="authenticationManager"><ref bean="authenticationManager"/></property> <property name="authenticationManager"><ref bean="authenticationManager"/></property>