mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Checkpoint of light weight ACLs.
This is a fairly brute force strategy that allows permissions evalutations with essentially no db access. It does a number of 'bad' things and I may rip it out completely. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6788 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -95,6 +95,9 @@
|
||||
</property>
|
||||
<property name="passwordEncoder">
|
||||
<ref bean="passwordEncoder" />
|
||||
</property>
|
||||
<property name="authorityCapabilityRegistry">
|
||||
<ref bean="authorityCapabilityRegistry"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
@@ -72,6 +72,9 @@
|
||||
</property>
|
||||
<property name="userToAuthorityCache">
|
||||
<ref bean="userToAuthorityCache" />
|
||||
</property>
|
||||
<property name="authorityCapabilityRegistry">
|
||||
<ref bean="authorityCapabilityRegistry"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
@@ -274,6 +274,13 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- Bootstrap for the authorityCapabilityRegistry -->
|
||||
<bean id="authorityCapabilityBootstrap" class="org.alfresco.repo.simple.permission.AuthorityCapabilityBootstrap">
|
||||
<property name="authorityCapabilityRegistry">
|
||||
<ref bean="authorityCapabilityRegistry"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- Bootstrap any extensions -->
|
||||
|
||||
<import resource="classpath*:alfresco/extension/bootstrap/*-context.xml" />
|
||||
@@ -300,7 +307,7 @@
|
||||
<ref bean="searchService"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
||||
<!-- Perform index recovery before applying any patches -->
|
||||
<!-- rebuild the index if required - before we check that it is there -->
|
||||
|
||||
|
@@ -46,7 +46,8 @@
|
||||
<value>org/alfresco/repo/domain/hibernate/AppliedPatch.hbm.xml</value>
|
||||
<value>org/alfresco/repo/domain/hibernate/Permission.hbm.xml</value>
|
||||
<value>org/alfresco/repo/avm/hibernate/AVM.hbm.xml</value>
|
||||
<value>org/alfresco/repo/attributes/hibernate/Attributes.hbm.xml</value>
|
||||
<value>org/alfresco/repo/attributes/hibernate/Attributes.hbm.xml</value>
|
||||
<value>org/alfresco/repo/simple/permission/AuthorityCapability.hbm.xml</value>
|
||||
|
||||
<!-- Audit config -->
|
||||
<!-- TODO: Move into org/alfresco/repo/domain/hibernate/ -->
|
||||
|
@@ -1,7 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd" >
|
||||
<beans>
|
||||
<bean id="capabilityRegistry" class="org.alfresco.repo.simple.permission.CapabilityRegistryImpl">
|
||||
|
||||
<bean id="authorityEntryDAO" class="org.alfresco.repo.simple.permission.AuthorityEntryDAOHibernate">
|
||||
<property name="sessionFactory">
|
||||
<ref bean="sessionFactory"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="capabilityEntryDAO" class="org.alfresco.repo.simple.permission.CapabilityEntryDAOHibernate">
|
||||
<property name="sessionFactory">
|
||||
<ref bean="sessionFactory"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="authorityCapabilityRegistry" class="org.alfresco.repo.simple.permission.AuthorityCapabilityRegistryImpl">
|
||||
<property name="authorityEntryDAO">
|
||||
<ref bean="authorityEntryDAO"/>
|
||||
</property>
|
||||
<property name="capabilityEntryDAO">
|
||||
<ref bean="capabilityEntryDAO"/>
|
||||
</property>
|
||||
<property name="capabilities">
|
||||
<set>
|
||||
<value>read</value>
|
||||
@@ -11,5 +30,12 @@
|
||||
<value>shake</value>
|
||||
</set>
|
||||
</property>
|
||||
<property name="retryingTransactionHelper">
|
||||
<ref bean="retryingTransactionHelper"/>
|
||||
</property>
|
||||
<property name="authorityService">
|
||||
<ref bean="authorityService"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
|
@@ -19,4 +19,4 @@ version.build=@build-number@
|
||||
|
||||
# Schema number
|
||||
|
||||
version.schema=106
|
||||
version.schema=107
|
||||
|
Reference in New Issue
Block a user