Preference Service

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9538 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2008-06-23 09:48:22 +00:00
parent 4f15d38283
commit fd3a6d6e97
10 changed files with 843 additions and 3 deletions

View File

@@ -42,6 +42,7 @@
<import resource="classpath:alfresco/projects-context.xml"/>
<import resource="classpath:alfresco/blog-context.xml"/>
<import resource="classpath:alfresco/thumbnail-service-context.xml"/>
<import resource="classpath:alfresco/preference-service-context.xml"/>
<import resource="classpath:alfresco/swf-transform-context.xml"/>
<import resource="classpath:alfresco/site-services-context.xml"/>
<import resource="classpath*:alfresco/patch/*-context.xml" />

View File

@@ -862,6 +862,15 @@
</associations>
</aspect>
<aspect name="cm:preferences">
<title>Preferences</title>
<properties>
<property name="cm:preferenceValues">
<type>d:content</type>
</property>
</properties>
</aspect>
</aspects>
</model>

View File

@@ -0,0 +1,56 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!-- Preference Service Bean -->
<bean id="PreferenceService" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<value>org.alfresco.service.cmr.preference.PreferenceService</value>
</property>
<property name="target">
<ref bean="preferenceService"/>
</property>
<property name="interceptorNames">
<list>
<idref local="PreferenceService_transaction"/>
<idref bean="AuditMethodInterceptor"/>
<idref bean="exceptionTranslator"/>
<idref local="PreferenceService_security"/>
</list>
</property>
</bean>
<!-- Preference service transaction bean -->
<bean id="PreferenceService_transaction" class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager">
<ref bean="transactionManager"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="*">${server.transaction.mode.default}</prop>
</props>
</property>
</bean>
<!-- Preference service security bean -->
<bean id="PreferenceService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
<!-- Preference service implemenation bean -->
<bean id="preferenceService" class="org.alfresco.repo.preference.PreferenceServiceImpl">
<property name="nodeService" ref="NodeService"/>
<property name="contentService" ref="ContentService"/>
<property name="personService" ref="PersonService"/>
<property name="permissionService" ref="PermissionService"/>
<property name="authenticationComponent" ref="authenticationComponent"/>
</bean>
<bean id="preferenceServiceScript" parent="baseJavaScriptExtension" class="org.alfresco.repo.preference.script.ScriptPreferenceService">
<property name="extensionName">
<value>preferenceService</value>
</property>
<property name="serviceRegistry" ref="ServiceRegistry"/>
<property name="preferenceService" ref="preferenceService"/>
</bean>
</beans>

View File

@@ -33,9 +33,6 @@
</property>
</bean>
<!-- Switch on debugger by setting log4j.logger.org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger to DEBUG -->
<bean id="rhinoScriptDebugger" class="org.alfresco.repo.web.scripts.AlfrescoRhinoScriptDebugger" init-method="start"/>
<!-- base config implementation that script extension beans extend from - for auto registration
as a global script with the ScriptService -->
<bean id="baseJavaScriptExtension" abstract="true" init-method="register">