Skip to content

Commit

Permalink
[ACS-9045] Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kmagdziarz committed Jan 8, 2025
1 parent 3a6c218 commit 9c3544c
Showing 1 changed file with 28 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd"
xmlns:aop="http://www.springframework.org/schema/aop">
http://www.springframework.org/schema/beans/spring-beans.xsd">

<!-- ===================== -->
<!-- Permissions Model DAO -->
Expand All @@ -33,7 +32,7 @@
<ref bean="dictionaryService" />
</property>
</bean>

<!-- ======================= -->
<!-- Support for permissions -->
<!-- ========================-->
Expand All @@ -58,7 +57,7 @@
<!--
<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">
<property name="nodeService">
<ref bean="mtAwareNodeService"/>
Expand Down Expand Up @@ -113,7 +112,7 @@
</property>
<property name="policyIgnoreUtil" ref="policyIgnoreUtil"/>
</bean>

<bean id="fixedAclUpdater" class="org.alfresco.repo.domain.permissions.FixedAclUpdater" init-method="init">
<property name="jobLockService" ref="jobLockService"/>
<property name="transactionService" ref="transactionService"/>
Expand All @@ -128,7 +127,7 @@
<property name="policyComponent" ref="policyComponent"/>
<property name="policyIgnoreUtil" ref="policyIgnoreUtil"/>
</bean>

<!-- =================== -->
<!-- Dynamic Authorities -->
<!-- =================== -->
Expand Down Expand Up @@ -173,9 +172,9 @@
<!-- =========================== -->
<!-- Permissions Model Bootstrap -->
<!-- =========================== -->

<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>

<!-- ====== -->
Expand Down Expand Up @@ -285,7 +284,7 @@
<value>${security.postProcessDenies}</value>
</property>
</bean>

<bean id="afterAclMarking" class="org.alfresco.repo.security.permissions.impl.acegi.MarkingAfterInvocationProvider" />

<!-- Link up after method call security -->
Expand Down Expand Up @@ -493,7 +492,7 @@
</value>
</property>
</bean>

<bean id="FileFolderService_security_list" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityBean">
<property name="methodSecurityInterceptor" ref="FileFolderService_security" />
<property name="service" value="org.alfresco.service.cmr.model.FileFolderService" />
Expand Down Expand Up @@ -577,7 +576,7 @@

<!-- Category queries are filtered for nodes that are visible to the current user -->
<!-- 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 -->

<bean id="CategoryService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
Expand Down Expand Up @@ -1006,11 +1005,11 @@
</value>
</property>
</bean>

<!-- ============ -->
<!-- Blog Service -->
<!-- ============ -->

<bean id="BlogService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
<property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property>
Expand All @@ -1024,12 +1023,12 @@
</value>
</property>
</bean>


<!-- ============ -->
<!-- Site Service -->
<!-- ============ -->

<bean id="SiteService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
<property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property>
Expand Down Expand Up @@ -1073,13 +1072,13 @@
</value>
</property>
</bean>

<bean id="SiteService_security_listSites" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityBean">
<property name="methodSecurityInterceptor" ref="SiteService_security" />
<property name="service" value="org.alfresco.service.cmr.site.SiteService" />
<property name="methodName" value="listSites" />
</bean>


<!-- ==================== -->
<!-- The Calendar Service -->
Expand Down Expand Up @@ -1133,15 +1132,15 @@
<property name="service" value="org.alfresco.service.cmr.download.DownloadService" />
<property name="methodName" value="deleteDownloads" />
</bean>

<!-- ==================== -->
<!-- The Links Service -->
<!-- ==================== -->

<!-- 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. -->
<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 -->
<bean id="LinksService_CannedQuery_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
Expand All @@ -1167,7 +1166,7 @@
<!-- 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. -->
<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 -->
<bean id="DiscussionService_CannedQuery_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
Expand Down Expand Up @@ -1199,9 +1198,9 @@
<!-- ======================== -->
<!-- Repository Admin Service -->
<!-- ======================== -->

<!-- TODO: Add repository admin security -->

<bean id="RepoAdminService_security" class="org.alfresco.repo.security.permissions.impl.acegi.MethodSecurityInterceptor">
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
<property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property>
Expand All @@ -1218,10 +1217,10 @@
<!-- ===================== -->
<!-- Content Usage Service -->
<!-- ===================== -->

<!-- TODO: Add content usage security -->
<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">
<property name="authenticationManager">
<ref bean="authenticationManager"/>
Expand All @@ -1237,14 +1236,14 @@
</value>
</property>
</bean>


<!-- ==================== -->
<!-- The Archived Nodes service -->
<!-- ==================== -->

<!-- This service currently has no restrictions. -->

<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">
Expand Down Expand Up @@ -1278,6 +1277,4 @@
</property>
</bean>

<aop:aspectj-autoproxy proxy-target-class="true"/>
<aop:aspectj-autoproxy/>
</beans>

0 comments on commit 9c3544c

Please sign in to comment.