mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
ACS-9045 Upgrade to Spring Framework 6.2.x (#3143)
This commit is contained in:
@@ -32,12 +32,12 @@
|
|||||||
<ref bean="dictionaryService" />
|
<ref bean="dictionaryService" />
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- ======================= -->
|
<!-- ======================= -->
|
||||||
<!-- Support for permissions -->
|
<!-- Support for permissions -->
|
||||||
<!-- ========================-->
|
<!-- ========================-->
|
||||||
|
|
||||||
<bean id="permissionService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" depends-on="transactionManager, permissionServiceImpl">
|
<bean id='permissionService' class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
|
||||||
<property name="proxyInterfaces">
|
<property name="proxyInterfaces">
|
||||||
<value>org.alfresco.repo.security.permissions.PermissionServiceSPI</value>
|
<value>org.alfresco.repo.security.permissions.PermissionServiceSPI</value>
|
||||||
</property>
|
</property>
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
<!--
|
<!--
|
||||||
<bean id="permissionServiceImpl" class="org.alfresco.repo.security.permissions.noop.PermissionServiceNOOPImpl" />
|
<bean id="permissionServiceImpl" class="org.alfresco.repo.security.permissions.noop.PermissionServiceNOOPImpl" />
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<bean id="permissionServiceImpl" class="org.alfresco.repo.security.permissions.impl.PermissionServiceImpl" init-method="init">
|
<bean id="permissionServiceImpl" class="org.alfresco.repo.security.permissions.impl.PermissionServiceImpl" init-method="init">
|
||||||
<property name="nodeService">
|
<property name="nodeService">
|
||||||
<ref bean="mtAwareNodeService"/>
|
<ref bean="mtAwareNodeService"/>
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="policyIgnoreUtil" ref="policyIgnoreUtil"/>
|
<property name="policyIgnoreUtil" ref="policyIgnoreUtil"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="fixedAclUpdater" class="org.alfresco.repo.domain.permissions.FixedAclUpdater" init-method="init">
|
<bean id="fixedAclUpdater" class="org.alfresco.repo.domain.permissions.FixedAclUpdater" init-method="init">
|
||||||
<property name="jobLockService" ref="jobLockService"/>
|
<property name="jobLockService" ref="jobLockService"/>
|
||||||
<property name="transactionService" ref="transactionService"/>
|
<property name="transactionService" ref="transactionService"/>
|
||||||
@@ -127,7 +127,7 @@
|
|||||||
<property name="policyComponent" ref="policyComponent"/>
|
<property name="policyComponent" ref="policyComponent"/>
|
||||||
<property name="policyIgnoreUtil" ref="policyIgnoreUtil"/>
|
<property name="policyIgnoreUtil" ref="policyIgnoreUtil"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- =================== -->
|
<!-- =================== -->
|
||||||
<!-- Dynamic Authorities -->
|
<!-- Dynamic Authorities -->
|
||||||
<!-- =================== -->
|
<!-- =================== -->
|
||||||
@@ -172,9 +172,9 @@
|
|||||||
<!-- =========================== -->
|
<!-- =========================== -->
|
||||||
<!-- Permissions Model Bootstrap -->
|
<!-- Permissions Model Bootstrap -->
|
||||||
<!-- =========================== -->
|
<!-- =========================== -->
|
||||||
|
|
||||||
<bean id="permissionModelBootstrap" class="org.alfresco.repo.security.permissions.impl.model.PermissionModelBootstrap" abstract="true" init-method="init">
|
<bean id="permissionModelBootstrap" class="org.alfresco.repo.security.permissions.impl.model.PermissionModelBootstrap" abstract="true" init-method="init">
|
||||||
<property name="permissionModel" ref="permissionsModelDAO"/>
|
<property name="permissionModel" ref="permissionsModelDAO"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- ====== -->
|
<!-- ====== -->
|
||||||
@@ -284,7 +284,7 @@
|
|||||||
<value>${security.postProcessDenies}</value>
|
<value>${security.postProcessDenies}</value>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="afterAclMarking" class="org.alfresco.repo.security.permissions.impl.acegi.MarkingAfterInvocationProvider" />
|
<bean id="afterAclMarking" class="org.alfresco.repo.security.permissions.impl.acegi.MarkingAfterInvocationProvider" />
|
||||||
|
|
||||||
<!-- Link up after method call security -->
|
<!-- Link up after method call security -->
|
||||||
@@ -492,7 +492,7 @@
|
|||||||
</value>
|
</value>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="FileFolderService_security_list" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityBean">
|
<bean id="FileFolderService_security_list" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityBean">
|
||||||
<property name="methodSecurityInterceptor" ref="FileFolderService_security" />
|
<property name="methodSecurityInterceptor" ref="FileFolderService_security" />
|
||||||
<property name="service" value="org.alfresco.service.cmr.model.FileFolderService" />
|
<property name="service" value="org.alfresco.service.cmr.model.FileFolderService" />
|
||||||
@@ -576,7 +576,7 @@
|
|||||||
|
|
||||||
<!-- Category queries are filtered for nodes that are visible to the current user -->
|
<!-- Category queries are filtered for nodes that are visible to the current user -->
|
||||||
<!-- Other methods are unrestricted at the moment -->
|
<!-- Other methods are unrestricted at the moment -->
|
||||||
|
|
||||||
<!-- Uses the public node service for all mutations - access is allowed here and enforced by the public node service -->
|
<!-- Uses the public node service for all mutations - access is allowed here and enforced by the public node service -->
|
||||||
|
|
||||||
<bean id="CategoryService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
<bean id="CategoryService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
||||||
@@ -1005,11 +1005,11 @@
|
|||||||
</value>
|
</value>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- ============ -->
|
<!-- ============ -->
|
||||||
<!-- Blog Service -->
|
<!-- Blog Service -->
|
||||||
<!-- ============ -->
|
<!-- ============ -->
|
||||||
|
|
||||||
<bean id="BlogService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
<bean id="BlogService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
||||||
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
||||||
<property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property>
|
<property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property>
|
||||||
@@ -1023,12 +1023,12 @@
|
|||||||
</value>
|
</value>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
||||||
<!-- ============ -->
|
<!-- ============ -->
|
||||||
<!-- Site Service -->
|
<!-- Site Service -->
|
||||||
<!-- ============ -->
|
<!-- ============ -->
|
||||||
|
|
||||||
<bean id="SiteService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
<bean id="SiteService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
||||||
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
||||||
<property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property>
|
<property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property>
|
||||||
@@ -1072,13 +1072,13 @@
|
|||||||
</value>
|
</value>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="SiteService_security_listSites" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityBean">
|
<bean id="SiteService_security_listSites" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityBean">
|
||||||
<property name="methodSecurityInterceptor" ref="SiteService_security" />
|
<property name="methodSecurityInterceptor" ref="SiteService_security" />
|
||||||
<property name="service" value="org.alfresco.service.cmr.site.SiteService" />
|
<property name="service" value="org.alfresco.service.cmr.site.SiteService" />
|
||||||
<property name="methodName" value="listSites" />
|
<property name="methodName" value="listSites" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
||||||
<!-- ==================== -->
|
<!-- ==================== -->
|
||||||
<!-- The Calendar Service -->
|
<!-- The Calendar Service -->
|
||||||
@@ -1132,7 +1132,7 @@
|
|||||||
<property name="service" value="org.alfresco.service.cmr.download.DownloadService" />
|
<property name="service" value="org.alfresco.service.cmr.download.DownloadService" />
|
||||||
<property name="methodName" value="deleteDownloads" />
|
<property name="methodName" value="deleteDownloads" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- ==================== -->
|
<!-- ==================== -->
|
||||||
<!-- The Links Service -->
|
<!-- The Links Service -->
|
||||||
<!-- ==================== -->
|
<!-- ==================== -->
|
||||||
@@ -1140,7 +1140,7 @@
|
|||||||
<!-- The links service itself does not require any security restrictions, -->
|
<!-- The links service itself does not require any security restrictions, -->
|
||||||
<!-- they are imposed by the node and site services it uses to do its work. -->
|
<!-- they are imposed by the node and site services it uses to do its work. -->
|
||||||
<bean id="LinksService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
|
<bean id="LinksService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
|
||||||
|
|
||||||
<!-- The canned queries that the links service uses do however need to check -->
|
<!-- The canned queries that the links service uses do however need to check -->
|
||||||
<bean id="LinksService_CannedQuery_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
<bean id="LinksService_CannedQuery_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
||||||
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
||||||
@@ -1166,7 +1166,7 @@
|
|||||||
<!-- The discussion service itself does not require any security restrictions, -->
|
<!-- The discussion service itself does not require any security restrictions, -->
|
||||||
<!-- they are imposed by the node and site services it uses to do its work. -->
|
<!-- they are imposed by the node and site services it uses to do its work. -->
|
||||||
<bean id="DiscussionService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
|
<bean id="DiscussionService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
|
||||||
|
|
||||||
<!-- The canned queries that the discussion services use do however need to check -->
|
<!-- The canned queries that the discussion services use do however need to check -->
|
||||||
<bean id="DiscussionService_CannedQuery_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
<bean id="DiscussionService_CannedQuery_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
||||||
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
||||||
@@ -1198,9 +1198,9 @@
|
|||||||
<!-- ======================== -->
|
<!-- ======================== -->
|
||||||
<!-- Repository Admin Service -->
|
<!-- Repository Admin Service -->
|
||||||
<!-- ======================== -->
|
<!-- ======================== -->
|
||||||
|
|
||||||
<!-- TODO: Add repository admin security -->
|
<!-- TODO: Add repository admin security -->
|
||||||
|
|
||||||
<bean id="RepoAdminService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
<bean id="RepoAdminService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
||||||
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
|
||||||
<property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property>
|
<property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property>
|
||||||
@@ -1217,10 +1217,10 @@
|
|||||||
<!-- ===================== -->
|
<!-- ===================== -->
|
||||||
<!-- Content Usage Service -->
|
<!-- Content Usage Service -->
|
||||||
<!-- ===================== -->
|
<!-- ===================== -->
|
||||||
|
|
||||||
<!-- TODO: Add content usage security -->
|
<!-- TODO: Add content usage security -->
|
||||||
<bean id="ContentUsageService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
|
<bean id="ContentUsageService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
|
||||||
|
|
||||||
<bean id="PublicServiceAccessService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
<bean id="PublicServiceAccessService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
|
||||||
<property name="authenticationManager">
|
<property name="authenticationManager">
|
||||||
<ref bean="authenticationManager"/>
|
<ref bean="authenticationManager"/>
|
||||||
@@ -1236,14 +1236,14 @@
|
|||||||
</value>
|
</value>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
||||||
<!-- ==================== -->
|
<!-- ==================== -->
|
||||||
<!-- The Archived Nodes service -->
|
<!-- The Archived Nodes service -->
|
||||||
<!-- ==================== -->
|
<!-- ==================== -->
|
||||||
|
|
||||||
<!-- This service currently has no restrictions. -->
|
<!-- This service currently has no restrictions. -->
|
||||||
|
|
||||||
<bean id="ArchivedNodes_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
|
<bean id="ArchivedNodes_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
|
||||||
|
|
||||||
<bean id="ArchivedNodes_security_listArchivedNodes" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityBean">
|
<bean id="ArchivedNodes_security_listArchivedNodes" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityBean">
|
||||||
|
@@ -32,6 +32,7 @@ import org.junit.runner.RunWith;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.ApplicationContext;
|
||||||
import org.springframework.test.context.ContextConfiguration;
|
import org.springframework.test.context.ContextConfiguration;
|
||||||
|
import org.springframework.test.context.ContextCustomizerFactories;
|
||||||
import org.springframework.test.context.junit4.SpringRunner;
|
import org.springframework.test.context.junit4.SpringRunner;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -46,6 +47,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|||||||
*/
|
*/
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@ContextConfiguration({"classpath:alfresco/application-context.xml"})
|
@ContextConfiguration({"classpath:alfresco/application-context.xml"})
|
||||||
|
@ContextCustomizerFactories(factories = {}, mergeMode = ContextCustomizerFactories.MergeMode.REPLACE_DEFAULTS)
|
||||||
public abstract class BaseSpringTest extends TestCase
|
public abstract class BaseSpringTest extends TestCase
|
||||||
{
|
{
|
||||||
public Log logger = LogFactory.getLog(getClass().getName());
|
public Log logger = LogFactory.getLog(getClass().getName());
|
||||||
|
Reference in New Issue
Block a user