Files
alfresco-community-repo/config/alfresco/subsystems/googledocs/default/googledocs-context.xml
Roy Wetherall 79508da9fc Google Doc Integration: Fix system unit test failures
* Fixed spreadsheet download
  * Refactored use of DocService to improve reliability
  * Reuse security tokens 
  * Consolidate code as a result of above changes



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30832 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-09-29 00:15:38 +00:00

46 lines
2.6 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd ">
<bean id="googledocs_dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/subsystems/googledocs/default/googledocs-model.xml</value>
</list>
</property>
</bean>
<bean id="googleDocsService" class="org.alfresco.repo.googledocs.GoogleDocsServiceImpl">
<property name="nodeService" ref="NodeService"/>
<property name="contentService" ref="ContentService"/>
<property name="personService" ref="PersonService"/>
<property name="mimetypeService" ref="mimetypeService"/>
<property name="permissionService" ref="PermissionService"/>
<property name="ownableService" ref="OwnableService"/>
<property name="authorityService" ref="AuthorityService"/>
<property name="dictionaryService" ref="DictionaryService"/>
<property name="enabled" value="${googledocs.googleeditable.enabled}"/>
<property name="url" value="${googledocs.url}"/>
<property name="downloadUrl" value="${googledocs.downloadurl}"/>
<property name="spreadsheetDownloadUrl" value="${googledocs.spreadsheet.downloadurl}"/>
<property name="applicationName" value="${googledocs.application.name}"/>
<property name="spreadSheetServiceName" value="${googledocs.spreadsheet.service.name}"/>
<property name="username" value="${googledocs.username}"/>
<property name="password" value="${googledocs.password}"/>
<property name="permissionMap">
<map>
<!-- TODO this is not a complete list, needs to be expanded to cover other use cases -->
<entry key="SiteManager" value="writer"/>
<entry key="SiteCollaborator" value="writer"/>
</map>
</property>
</bean>
<bean id="googleEditableAspect" class="org.alfresco.repo.googledocs.GoogleEditableAspect" init-method="init">
<property name="policyComponent" ref="policyComponent"/>
<property name="googleDocsService" ref="googleDocsService"/>
<property name="nodeService" ref="NodeService"/>
<property name="contentService" ref="ContentService"/>
<property name="dictionaryService" ref="DictionaryService"/>
</bean>
</beans>