mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Checkpoint for the Rhino Script engine integration
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2720 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
<import resource="classpath:alfresco/hibernate-context.xml" />
|
||||
<import resource="classpath:alfresco/ownable-services-context.xml" />
|
||||
<import resource="classpath:alfresco/template-services-context.xml" />
|
||||
<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" />
|
||||
|
@@ -784,8 +784,7 @@
|
||||
</bean>
|
||||
|
||||
|
||||
|
||||
<!-- Authentication Service -->
|
||||
<!-- Authentication Service -->
|
||||
|
||||
<bean id="AuthenticationService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces">
|
||||
@@ -822,7 +821,9 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
||||
<!-- Template Service -->
|
||||
|
||||
<bean id="TemplateService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces">
|
||||
<value>org.alfresco.service.cmr.repository.TemplateService</value>
|
||||
@@ -858,7 +859,47 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
||||
<!-- Script Service -->
|
||||
|
||||
<bean id="ScriptService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces">
|
||||
<value>org.alfresco.service.cmr.repository.ScriptService</value>
|
||||
</property>
|
||||
<property name="target"><ref bean="scriptService"/></property>
|
||||
<property name="interceptorNames">
|
||||
<list>
|
||||
<idref local="ScriptService_transaction" />
|
||||
<idref local="exceptionTranslator" />
|
||||
<idref bean="ScriptService_security" />
|
||||
<idref local="ScriptService_descriptor" />
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="ScriptService_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>
|
||||
|
||||
<bean id="ScriptService_descriptor" parent="AlfrescoServiceDescriptor">
|
||||
<property name="interface">
|
||||
<value>org.alfresco.service.cmr.repository.ScriptService</value>
|
||||
</property>
|
||||
<property name="description">
|
||||
<value>ScriptService Service</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
|
||||
<!-- File/Folder Service -->
|
||||
|
||||
<bean id="FileFolderService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces">
|
||||
<value>org.alfresco.service.cmr.model.FileFolderService</value>
|
||||
|
@@ -671,8 +671,16 @@
|
||||
<!-- The Template Service -->
|
||||
<!-- ==================== -->
|
||||
|
||||
<!-- This service currently has no restrictions. -->
|
||||
<!-- This service currently has no restrictions. -->
|
||||
|
||||
<bean id="TemplateService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
|
||||
|
||||
<!-- ==================== -->
|
||||
<!-- The Script Service -->
|
||||
<!-- ==================== -->
|
||||
|
||||
<!-- This service currently has no restrictions. -->
|
||||
|
||||
<bean id="ScriptService_security" class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
|
||||
|
||||
</beans>
|
13
config/alfresco/script-services-context.xml
Normal file
13
config/alfresco/script-services-context.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?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="scriptService" class="org.alfresco.repo.jscript.RhinoScriptService">
|
||||
<property name="nodeService">
|
||||
<ref bean="NodeService"/>
|
||||
</property>
|
||||
<property name="contentService">
|
||||
<ref bean="ContentService"/>
|
||||
</property>
|
||||
</bean>
|
||||
</beans>
|
Reference in New Issue
Block a user