mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
DM Usages/Quotas fixes - protect system/admin-maintained properties, make store(s) configurable
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7500 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -24,7 +24,8 @@
|
||||
<import resource="classpath:alfresco/script-services-context.xml" />
|
||||
<import resource="classpath:alfresco/index-recovery-context.xml" />
|
||||
<import resource="classpath:alfresco/authority-services-context.xml" />
|
||||
<import resource="classpath:alfresco/authentication-services-context.xml" />
|
||||
<import resource="classpath:alfresco/authentication-services-context.xml" />
|
||||
<import resource="classpath:alfresco/usage-services-context.xml" />
|
||||
<import resource="classpath:alfresco/policy-context.xml" />
|
||||
<import resource="classpath:alfresco/import-export-context.xml" />
|
||||
<import resource="classpath:alfresco/bootstrap-context.xml" />
|
||||
|
@@ -201,9 +201,11 @@
|
||||
<!-- system maintained values -->
|
||||
<property name="cm:sizeCurrent">
|
||||
<type>d:long</type>
|
||||
<protected>true</protected>
|
||||
</property>
|
||||
<property name="cm:sizeQuota">
|
||||
<type>d:long</type>
|
||||
<type>d:long</type>
|
||||
<protected>true</protected>
|
||||
</property>
|
||||
</properties>
|
||||
|
||||
|
@@ -195,28 +195,6 @@
|
||||
<property name="threshold">
|
||||
<value>5000</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="usageService" class="org.alfresco.repo.usage.UsageServiceImpl">
|
||||
<property name="usageDeltaDao">
|
||||
<ref bean="usageDeltaDao"/>
|
||||
</property>
|
||||
<property name="nodeDaoService">
|
||||
<ref bean="nodeDaoService" />
|
||||
</property>
|
||||
<property name="tenantService">
|
||||
<ref bean="tenantService"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="contentUsageImpl" class="org.alfresco.repo.usage.ContentUsageImpl" init-method="init">
|
||||
<property name="personService" ref="personService"/>
|
||||
<property name="nodeService" ref="nodeService"/>
|
||||
<property name="policyComponent" ref="policyComponent"/>
|
||||
<property name="usageService" ref="usageService"/>
|
||||
<property name="enabled">
|
||||
<value>${system.usages.enabled}</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
|
41
config/alfresco/usage-services-context.xml
Normal file
41
config/alfresco/usage-services-context.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||
|
||||
<!-- Beans pertinent to content usage / quota service -->
|
||||
<beans>
|
||||
|
||||
<bean id="usageService" class="org.alfresco.repo.usage.UsageServiceImpl">
|
||||
<property name="usageDeltaDao">
|
||||
<ref bean="usageDeltaDao"/>
|
||||
</property>
|
||||
<property name="nodeDaoService">
|
||||
<ref bean="nodeDaoService" />
|
||||
</property>
|
||||
<property name="tenantService">
|
||||
<ref bean="tenantService"/>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="contentUsageImpl" class="org.alfresco.repo.usage.ContentUsageImpl" init-method="init">
|
||||
<property name="personService" ref="personService"/>
|
||||
<property name="nodeService" ref="nodeService"/>
|
||||
<property name="policyComponent" ref="policyComponent"/>
|
||||
<property name="usageService" ref="usageService"/>
|
||||
<property name="enabled">
|
||||
<value>${system.usages.enabled}</value>
|
||||
</property>
|
||||
<property name="stores">
|
||||
<list>
|
||||
<value>workspace://SpacesStore</value>
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="usageQuotaProtector" class="org.alfresco.repo.usage.UsageQuotaProtector" init-method="init">
|
||||
<property name="authorityService" ref="authorityService"/>
|
||||
<property name="authenticationService" ref="authenticationService"/>
|
||||
<property name="policyComponent" ref="policyComponent"/>
|
||||
<property name="contentUsageService" ref="ContentUsageService"/>
|
||||
</bean>
|
||||
|
||||
</beans>
|
Reference in New Issue
Block a user