When you use the setup wizards to install Alfresco Content Services, the Google Docs Integration feature is applied and enabled for supported content in an installation.
If you install manually, you need to apply the Google Docs AMP files separately to enable the feature.
With Google Docs Integration, you'll see new actions for creating documents, spreadsheets, and presentations. Also, you'll see an action called Edit in Google Docs on all supported document types.
alfresco-googledocs-repo-3.0.4.x-ent.amp | This AMP contains the Google Docs functionality that is applied to the core repository. The AMP should be applied to the tomcat/webapps/alfresco directory. |
alfresco-googledocs-share-3.0.4.x-ent.amp | This AMP file contains the additional Google Docs functionality that is applied to an existing Alfresco Share user interface. The AMP should be applied to the tomcat/webapps/share directory. |
For Alfresco Content Services repository:
java -jar <installLocation>\bin\alfresco-mmt.jar install <installLocation>\amps\alfresco-googledocs-repo-3.0.4.x-ent.amp <installLocation>\tomcat\webapps\alfresco.war
For Alfresco Share:
java -jar <installLocation>\bin\alfresco-mmt.jar install <installLocation>\amps_share\alfresco-googledocs-share-3.0.4.x-ent.amp <installLocation>\tomcat\webapps\share.war
Alternatively, if your installation is running in the Tomcat application server, you can use the <installLocation>\bin\apply_amps command to apply all AMP files that are located in both the amps and amps_share directories.
Install both Google Docs AMP files at the same time by using the apply_amps command:
The apply_amps command checks the version of Alfresco Content Services so that you install the relevant AMP package to the correct version.
Enterprise-only releases: For advanced configuration, you can customize how Google accounts are authenticated. See Authenticating Google accounts with Alfresco Content Services [7] for more information.
Google Docs property | Example setting | What is it? |
---|---|---|
googledocs.enabled | true | Enables the Google Docs
functionality. If you set this option to false, the Edit in Google Docs action will not be available. Documents that are currently being edited will still be available using the Resume editing in Google Docs action until they are saved or discarded. |
googledocs.idleThresholdSeconds | 600 | Sets the idle time threshold in seconds. Additional Google users that you invite to collaborate on the document will be considered to be 'idle' after this period. The period is measured from the time when the user last made a change to the document. When saving documents back to Alfresco Content Services, or discarding changes, you must confirm that you want to disconnect any non-idle users before the action completes. |
If you do not want to save the changes, click Cancel.
When this configuration is added to the Google Docs Integration, you can define the OAuth flow by creating your own web application configuration in the Google API Manager.
This file lets users authenticate their Google account with Alfresco Content Services.
Check that you have enabled the Google Drive API.
This allows your registered application to access the Drive API.
This is what the application will be known as in your users Google Account.
This is the path to the google-auth-return.html page.
You may be see a popup showing your Client ID and Secret. If so, click OK.
Next, use the Repository Administration Console to add your custom configuration.
The following table shows the file format restrictions for content that integrates with Google Docs.
File type | Description |
---|---|
DOC | A Microsoft Word 97-2003 document. |
XLS | A Microsoft Excel 97-2003 Workbook. |
PPT | A Microsoft PowerPoint 97-2003 Presentation. |
DOCX | An XML-based Microsoft Word document. |
XLSX | An XML-based Microsoft Excel Workbook. |
PPTX | An XML-based Microsoft PowerPoint presentation. |
Google places further restrictions on the size and complexity of documents that can be edited in Google Docs. The Edit in Google Docs action is not available for documents or spreadsheets larger than 2 MB and presentations larger than 50 MB. Google also prevents editing of other documents that exceed their published limits. See the published Google size limits [12].
Links:
[1] https://docs.alfresco.com/../tasks/googledocs-amp-install.html
[2] https://docs.alfresco.com/../concepts/googledocs-configuration.html
[3] https://docs.alfresco.com/../concepts/googledocs-filetypes.html
[4] https://docs.alfresco.com/../concepts/install-integrations-overview.html
[5] http://support.alfresco.com
[6] https://docs.alfresco.com/../concepts/googledocs-intro.html
[7] https://docs.alfresco.com/../tasks/googledocs-config-auth.html
[8] https://docs.alfresco.com/../concepts/googledocs-props.html
[9] https://docs.alfresco.com/../tasks/adminconsole-googledocs.html
[10] https://raw.githubusercontent.com/Alfresco/googledrive/master/google-auth-return.html
[11] https://console.developers.google.com
[12] https://support.google.com/drive/answer/37603?hl=en