Files
alfresco-community-repo/config/alfresco/rendition-services-context.xml
Dave Ward 840440764b Merged V4.0-BUG-FIX to HEAD
34321: Make CIFS virtual circuit per session limit configurable, return correct status code when virtual circuit limit is reached.
   Required by Terminal Server clients as they can use a single session for all connections. ALF-13156
   34322: Services part of fix for ALF-13057 Nodes marked with rma:ghosted aspect (or other configurable aspects/types) should not be renditioned.
   34323: Added configuration property for CIFS virtual circuits per session, required by Terminal Server clients. ALF-13156.
   34332: Fix for ALF-8405
   34336: Merged BRANCHES/V4.0 to BRANCHES/DEV/V4.0-BUG-FIX:
      34335: Fixing a failing test as part of ALF-13057
   34338: NodeDAO: re-parent "lost & found" orphan child nodes (see ALF-12358 & ALF-13066 / SYS-301)
   - test fix (follow-on to r34279)
   34341: NodeDAO: re-parent "lost & found" orphan child nodes (see ALF-12358 & ALF-13066 / SYS-301)
   - ano test fix (once more with feeling)
   34351: Merged V4.0 to V4.0-BUG-FIX
      34335: (RECORD ONLY) Fixing a failing test as part of ALF-13057
      34350: Merged V3.4 to V4.0
         34327: ALF-13030 ALF-13041 Transformer Server needs filename and to make its transformer preferred over OpenOffice and JOD
            Relates to ALF-10976 and ALF-10412 set of changes
            - TransformerOptions.sourceNodeRef now populated
            - Set average transformer time via global properties
            - TransformerDebug of active transformers added
         34331: ALF-13030 ALF-13041 Transformer Server needs filename and to make its transformer preferred over OpenOffice and JOD
            Relates to ALF-10976 and ALF-10412 set of changes
            - Fix test failures
         34346: ALF-13030 ALF-13041 Transformer Server needs filename and to make its transformer preferred over OpenOffice and JOD
            Relates to ALF-10976 and ALF-10412 set of changes
            - sourceNodeRef was not available to the first child transformer of a ComplexContentTransformer
   34358: Merged V4.0 to V4.0-BUG-FIX (RECORD ONLY)
      34324: Merged BRANCHES/DEV/V4.0-BUG-FIX to BRANCHES/V4.0:
         34322: Services part of fix for ALF-13057 Nodes marked with rma:ghosted aspect (or other configurable aspects/types) should not be renditioned.
   34360: Merged V3.4-BUG-FIX to V4.0-BUG-FIX (RECORD ONLY)
      34349: Merged V3.4 to V3.4-BUG-FIX
         34327: ALF-13030 ALF-13041 Transformer Server needs filename and to make its transformer preferred over OpenOffice and JOD
            Relates to ALF-10976 and ALF-10412 set of changes
            - TransformerOptions.sourceNodeRef now populated
            - Set average transformer time via global properties
            - TransformerDebug of active transformers added
         34331: ALF-13030 ALF-13041 Transformer Server needs filename and to make its transformer preferred over OpenOffice and JOD
            Relates to ALF-10976 and ALF-10412 set of changes
            - Fix test failures
         34346: ALF-13030 ALF-13041 Transformer Server needs filename and to make its transformer preferred over OpenOffice and JOD
            Relates to ALF-10976 and ALF-10412 set of changes
            - sourceNodeRef was not available to the first child transformer of a ComplexContentTransformer
         34348: Merged PATCHES/V3.4.7 to V3.4
            34347: ALF-12949: Merged V4.0-BUG-FIX to PATCHES/V3.4.7
               33959: Merged BRANCHES/DEV/V3.4-BUG-FIX to BRANCHES/DEV/V4.0-BUG-FIX
                  33950: Fix for ALF-12787:
                         - Surf Memory usage optimizations and improvements to ModelObject and derived classes.
                         - Reduced avg memory usage for a ModelObject in the Surf persister cache from 4.0K to 1.5K.
                         - Related refactoring to support removal of in-memory XML DOM previously used to maintain ModelObject state. Now XML DOM only created as needed for set() operations and thrown away.
                         - Improvements to Surf Persister cache strategy to support MRU style concurrent cache, now uses a LinkedConcurrentHashMap to provide a concurrent cache that also has a configurable maximum capacity
                         - Added various improved spring config for persister caches and default sizes.
               Merged BRANCHES/DEV/V3.4-BUG-FIX to BRANCHES/DEV/V4.0-BUG-FIX
                  33956: Latest SpringSurf libs: Fixed issue with overly aggressive caching of missing page View objects.
               34108: Merged BRANCHES/DEV/V3.4-BUG-FIX to BRANCHES/DEV/V4.0-BUG-FIX
                  34107: Added missing jar lib to wcmquickstart and webeditor dependencies
   34363: Merged V4.0 to V4.0-BUG-FIX
      34362: Merged V3.4 to V4.0 (RECORD ONLY)
         34282: ALF-13059: Windows 7 specific: It's impossible to add documents to DWS
         - Fix by Alex Malinovsky
         34348: Merged PATCHES/V3.4.7 to V3.4
            34347: ALF-12949: Merged V4.0-BUG-FIX to PATCHES/V3.4.7
               33959: Merged BRANCHES/DEV/V3.4-BUG-FIX to BRANCHES/DEV/V4.0-BUG-FIX
                  33950: Fix for ALF-12787:
                         - Surf Memory usage optimizations and improvements to ModelObject and derived classes.
                         - Reduced avg memory usage for a ModelObject in the Surf persister cache from 4.0K to 1.5K.
                         - Related refactoring to support removal of in-memory XML DOM previously used to maintain ModelObject state. Now XML DOM only created as needed for set() operations and thrown away.
                         - Improvements to Surf Persister cache strategy to support MRU style concurrent cache, now uses a LinkedConcurrentHashMap to provide a concurrent cache that also has a configurable maximum capacity
                         - Added various improved spring config for persister caches and default sizes.
               Merged BRANCHES/DEV/V3.4-BUG-FIX to BRANCHES/DEV/V4.0-BUG-FIX
                  33956: Latest SpringSurf libs: Fixed issue with overly aggressive caching of missing page View objects.
               34108: Merged BRANCHES/DEV/V3.4-BUG-FIX to BRANCHES/DEV/V4.0-BUG-FIX
                  34107: Added missing jar lib to wcmquickstart and webeditor dependencies


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@34364 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2012-03-02 15:00:35 +00:00

214 lines
8.7 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!-- Rendition Service -->
<bean id="RenditionService" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<value>org.alfresco.service.cmr.rendition.RenditionService</value>
</property>
<property name="target">
<ref bean="renditionService" />
</property>
<property name="interceptorNames">
<list>
<idref local="RenditionService_transaction" />
<idref bean="AuditMethodInterceptor" />
<idref bean="exceptionTranslator" />
<idref local="RenditionService_security" />
</list>
</property>
</bean>
<!-- Rendition service transaction bean -->
<bean id="RenditionService_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>
<!-- Rendition service security bean -->
<bean id="RenditionService_security"
class="org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor" />
<!-- Rendition Service base bean -->
<bean id="renditionService" class="org.alfresco.repo.rendition.RenditionServiceImpl" >
<property name="actionService" ref="ActionService"/>
<property name="serviceRegistry" ref="ServiceRegistry" />
<property name="dictionaryService" ref="dictionaryService" />
<property name="renditionDefinitionPersister" ref="renditionDefinitionPersister" />
<property name="renditionPreventionRegistry" ref="renditionPreventionRegistry" />
</bean>
<!-- From Alfresco 3.4 onwards, this bean is deprecated and should not be used. -->
<bean id="perform-rendition" class="org.alfresco.repo.rendition.PerformRenditionActionExecuter" parent="action-executer">
<property name="publicAction">
<value>false</value>
</property>
<property name="actionService" ref="ActionService"/>
</bean>
<bean id="renditionDefinitionPersister" class="org.alfresco.repo.rendition.RenditionDefinitionPersisterImpl" >
<property name="runtimeActionService" ref="actionService" />
<property name="nodeService" ref="NodeService" />
<property name="behaviourFilter" ref="policyBehaviourFilter" />
</bean>
<bean id="renditionLocationResolver" class="org.alfresco.repo.rendition.StandardRenditionLocationResolverImpl" >
<property name="serviceRegistry" ref="ServiceRegistry" />
<property name="RepositoryHelper" ref="repositoryHelper" />
</bean>
<!-- i18n -->
<bean id="renderingActionResourceBundles"
class="org.springframework.extensions.surf.util.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.messages.rendition-config</value>
</list>
</property>
</bean>
<!-- It is possible to prevent all renditioning of a node by applying a marker aspect. -->
<!-- This registry keeps a list of what aspects (and what types) should be considered when preventing renditions. -->
<bean id="renditionPreventionRegistry" class="org.alfresco.repo.rendition.RenditionPreventionRegistry">
<property name="namespaceService" ref="namespaceService"/>
</bean>
<!-- This abstract bean ensures that any child beans are registered centrally. -->
<bean id="baseRenditionPreventionClass"
abstract="true"
class="org.alfresco.repo.rendition.RenditionPreventionRegistry$SelfRegisteringClassName"
init-method="register">
<property name="registry" ref="renditionPreventionRegistry"/>
</bean>
<!-- By default there is only one such content class: a marker aspect -->
<bean id="preventRenditions" parent="baseRenditionPreventionClass">
<constructor-arg value="rn:preventRenditions"/>
</bean>
<!-- Rendering Action executor beans -->
<bean id="baseRenderingAction" abstract="true" parent="action-executer"
class="org.alfresco.repo.rendition.executer.AbstractRenderingEngine">
<property name="defaultRenditionContentProp"
value="{http://www.alfresco.org/model/content/1.0}content" />
<property name="defaultRenditionNodeType"
value="{http://www.alfresco.org/model/content/1.0}content" />
<property name="mimetypeMap" ref="mimetypeService" />
<property name="contentService">
<ref bean="ContentService" />
</property>
<property name="applicableTypes">
<list>
<value>{http://www.alfresco.org/model/content/1.0}content</value>
</list>
</property>
<property name="nodeService" ref="NodeService" />
<property name="renditionService" ref="RenditionService" />
<property name="behaviourFilter" ref="policyBehaviourFilter" />
<property name="renditionLocationResolver" ref="renditionLocationResolver" />
</bean>
<bean id="baseTemplateRenderingAction" abstract="true" parent="baseRenderingAction"
class="org.alfresco.repo.rendition.executer.AbstractRenderingEngine">
<property name="templateService" ref="templateService" />
<property name="searchService" ref="searchService" />
</bean>
<!-- Rendering Engines -->
<bean id="reformat"
class="org.alfresco.repo.rendition.executer.ReformatRenderingEngine"
parent="baseRenderingAction">
</bean>
<bean id="imageRenderingEngine"
class="org.alfresco.repo.rendition.executer.ImageRenderingEngine"
parent="baseRenderingAction">
</bean>
<bean id="freemarkerRenderingEngine"
class="org.alfresco.repo.rendition.executer.FreemarkerRenderingEngine"
parent="baseTemplateRenderingAction">
<property name="repositoryHelper">
<ref bean="repositoryHelper" />
</property>
<property name="serviceRegistry">
<ref bean="ServiceRegistry" />
</property>
</bean>
<bean id="htmlRenderingEngine"
class="org.alfresco.repo.rendition.executer.HTMLRenderingEngine"
parent="baseRenderingAction">
<property name="tikaConfig">
<ref bean="tikaConfig"/>
</property>
</bean>
<bean id="compositeRenderingEngine"
class="org.alfresco.repo.rendition.executer.CompositeRenderingEngine"
parent="baseRenderingAction">
<property name="actionService">
<ref bean="actionService" />
</property>
</bean>
<bean id="xsltRenderingEngine"
class="org.alfresco.repo.rendition.executer.XSLTRenderingEngine"
parent="baseTemplateRenderingAction">
<property name="xsltFunctions" ref="xsltFunctions" />
<property name="namespacePrefixResolver" ref="NamespaceService" />
<property name="fileFolderService" ref="FileFolderService" />
</bean>
<bean id="xsltFunctions" class="org.alfresco.repo.rendition.executer.XSLTFunctions">
<property name="fileService" ref="FileFolderService" />
<property name="contentService" ref="ContentService" />
<property name="nodeService" ref="NodeService" />
<property name="namespaceService" ref="NamespaceService" />
<property name="dictionaryService" ref="DictionaryService" />
</bean>
<!-- Behaviours and policies for Renditions -->
<bean id="renditionedAspect" class="org.alfresco.repo.rendition.RenditionedAspect" init-method="init">
<property name="actionService" ref="ActionService"/>
<property name="dictionaryService" ref="DictionaryService"/>
<property name="nodeService" ref="NodeService"/>
<property name="policyComponent" ref="policyComponent"/>
<property name="renditionService" ref="RenditionService"/>
</bean>
<!-- This action is used as a compensating action in the event of a failure to update a rendition -->
<bean id="delete-rendition" class="org.alfresco.repo.rendition.executer.DeleteRenditionActionExecuter" parent="action-executer">
<property name="publicAction" value="false"/>
<property name="behaviourFilter" ref="policyBehaviourFilter" />
<property name="nodeService" ref="NodeService"/>
<property name="renditionService" ref="RenditionService"/>
</bean>
<!-- JavaScript API support -->
<bean id="renditionServiceScript" parent="baseJavaScriptExtension"
class="org.alfresco.repo.rendition.script.ScriptRenditionService">
<property name="extensionName">
<value>renditionService</value>
</property>
<property name="serviceRegistry" ref="ServiceRegistry"/>
</bean>
</beans>