mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32050 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
132 lines
6.2 KiB
XML
132 lines
6.2 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>
|
|
<bean id="publishingService_dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
|
|
<property name="models">
|
|
<list>
|
|
<value>alfresco/model/publishingModel.xml</value>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- Bootstrap the publishing process definition -->
|
|
<bean parent="workflowDeployer">
|
|
<property name="workflowDefinitions">
|
|
<list>
|
|
<props>
|
|
<prop key="engineId">jbpm</prop>
|
|
<prop key="location">alfresco/workflow/publish_web_content_processdefinition.xml</prop>
|
|
<prop key="mimetype">text/xml</prop>
|
|
<prop key="redeploy">false</prop>
|
|
</props>
|
|
<props>
|
|
<prop key="engineId">activiti</prop>
|
|
<prop key="location">alfresco/workflow/publish-web-content.bpmn20.xml</prop>
|
|
<prop key="mimetype">text/xml</prop>
|
|
<prop key="redeploy">false</prop>
|
|
</props>
|
|
</list>
|
|
</property>
|
|
<property name="models">
|
|
<list>
|
|
<value>alfresco/workflow/publishingWorkflowModel.xml</value>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="publishingResourceBundles" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
|
|
<property name="resourceBundles">
|
|
<list>
|
|
<value>alfresco.messages.publishing-service</value>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- Channel Service -->
|
|
<bean id="channelService" class="org.alfresco.repo.publishing.ChannelServiceImpl">
|
|
<property name="publishingRootObject" ref="publishingRootObject" />
|
|
<property name="dictionaryService" ref="DictionaryService" />
|
|
<property name="nodeService" ref="NodeService" />
|
|
<property name="channelHelper" ref="channelHelper" />
|
|
<property name="encryptor" ref="metadataEncryptor" />
|
|
</bean>
|
|
|
|
<!-- Channel Type Implementations -->
|
|
<bean id="baseChannelType" class="org.alfresco.repo.publishing.AbstractChannelType" abstract="true" >
|
|
<property name="channelService" ref="channelService" />
|
|
<property name="encryptor" ref="metadataEncryptor" />
|
|
<property name="nodeService" ref="NodeService" />
|
|
</bean>
|
|
|
|
<bean id="channelHelper" class="org.alfresco.repo.publishing.ChannelHelper">
|
|
<property name="nodeService" ref="NodeService" />
|
|
<property name="dictionaryService" ref="DictionaryService" />
|
|
<property name="fileFolderService" ref="FileFolderService" />
|
|
<property name="permissionService" ref="PermissionService" />
|
|
<property name="eventHelper" ref="publishingEventHelper" />
|
|
<property name="serviceRegistry" ref="ServiceRegistry" />
|
|
</bean>
|
|
|
|
<bean id="publishingRootObject" class="org.alfresco.repo.publishing.PublishingRootObject">
|
|
<property name="nodeService" ref="NodeService" />
|
|
<property name="namespaceService" ref="NamespaceService" />
|
|
<property name="searchService" ref="SearchService" />
|
|
<property name="publishingEventHelper" ref="publishingEventHelper" />
|
|
<property name="retryingTransactionHelper" ref="retryingTransactionHelper" />
|
|
<property name="permissionService" ref="PermissionService" />
|
|
<property name="publishingStore" value="${spaces.store}" />
|
|
<property name="publishingRootPath" value="${publishing.root}" />
|
|
</bean>
|
|
|
|
<bean id="publishingEventHelper" class="org.alfresco.repo.publishing.PublishingEventHelper">
|
|
<property name="nodeService" ref="NodeService" />
|
|
<property name="contentService" ref="ContentService" />
|
|
<property name="serializer" ref="publishingPackageSerializer" />
|
|
<property name="workflowService" ref="WorkflowService" />
|
|
<property name="permissionService" ref="PermissionService" />
|
|
<property name="transferManifestNodeFactory" ref="transferManifestNodeFactory" />
|
|
<property name="versionService" ref="VersionService" />
|
|
<property name="workflowEngineId" value="activiti" />
|
|
<property name="excludedAspects" ref="excludedPublishingAspects" />
|
|
</bean>
|
|
|
|
<bean id="excludedPublishingAspects" class="java.util.ArrayList">
|
|
<constructor-arg>
|
|
<list>
|
|
<value>{http://www.alfresco.org/model/rule/1.0}rules</value>
|
|
<value>{http://www.alfresco.org/model/content/1.0}mlDocument</value>
|
|
<value>{http://www.alfresco.org/model/forum/1.0}discussable</value>
|
|
</list>
|
|
</constructor-arg>
|
|
</bean>
|
|
|
|
<!-- Publish Event Action -->
|
|
<bean id="pub_publishEvent" class="org.alfresco.repo.publishing.PublishEventAction" >
|
|
<property name="publishingEventProcessor" ref="publishingEventProcessor" />
|
|
</bean>
|
|
|
|
<!-- Publishing Event Processor -->
|
|
<bean id="publishingEventProcessor" class="org.alfresco.repo.publishing.PublishingEventProcessor">
|
|
<property name="channelService" ref="channelService" />
|
|
<property name="publishingEventHelper" ref="publishingEventHelper" />
|
|
<property name="nodeService" ref="NodeService" />
|
|
<property name="behaviourFilter" ref="policyBehaviourFilter" />
|
|
<property name="urlShortener" ref="urlShortener" />
|
|
<property name="transactionService" ref="TransactionService" />
|
|
</bean>
|
|
|
|
<!-- Publishing Service -->
|
|
<bean id="publishingService" class="org.alfresco.repo.publishing.PublishServiceImpl">
|
|
<property name="publishingRootObject" ref="publishingRootObject" />
|
|
<property name="publishingEventHelper" ref="publishingEventHelper" />
|
|
</bean>
|
|
|
|
<bean id="publishingPackageSerializer" class="org.alfresco.repo.publishing.StandardNodeSnapshotSerializer" />
|
|
|
|
<bean id="urlShortener" class="org.alfresco.repo.urlshortening.BitlyUrlShortenerImpl" >
|
|
<property name="username" value="${urlshortening.bitly.username}" />
|
|
<property name="apiKey" value="${urlshortening.bitly.api.key}" />
|
|
</bean>
|
|
</beans>
|