Get Started
Documentation
More information
|
ONLYOFFICE Alfresco module packageThis plugin enables users to edit office documents from Alfresco Share using ONLYOFFICE Document Server. The plugin is available in the official Alfresco Add-ons directory. Features
Installing ONLYOFFICE Document ServerYou will need an instance of ONLYOFFICE Document Server that is resolvable and connectable both from Alfresco and any end clients (version 3.0 and later are supported for use with the plugin). If that is not the case, use the official ONLYOFFICE Document Server documentation page: Document Server for Linux. ONLYOFFICE Document Server must also be able to POST to Alfresco directly. The easiest way to start an instance of ONLYOFFICE Document Server is to use Docker. Installing ONLYOFFICE Alfresco module packageTo start using ONLYOFFICE Document Server with Alfresco, the following steps must be performed for Ubuntu 14.04:
Steps 1 — 4 are only necessary if you for some reason plan to compile the ONLYOFFICE Alfresco module package yourself (e.g. edit the source code and compile it afterwards).
If you do not want to do that and plan to use the already compiled module files, please skip to step 5 directly.
The latest compiled package files are available here.
The module can be checked in administrator tools at /share/page/console/admin-console/module-package in Alfresco. Building from docker-composeOther way to build ONLYOFFICE Alfresco module package is using docker-compose file. Use this command from project directory: docker-compose upConfigurationModule configuration can be found inside Alfresco Administration Console or by simply navigating to http://<alfrescohost>/alfresco/s/onlyoffice/onlyoffice-config
You can also add onlyoffice.url in alfresco-global.properties.
Configuration made via settings page will override alfresco-global.properties.
JWTJWT can be configured via configuration page or by adding onlyoffice.jwtsecret in alfresco-global.properties. The JWT configuration on the Document Server side can be found here. ConvertationFile types that can be converted
To convert one specific file you can simply select Convert using ONLYOFFICE action. Resulting file will be placed in the same folder. You can also configure rules for a folder, that will automatically convert files on upload or on change. You can read how such rules can be configured here. How it worksUser navigates to a document within Alfresco Share and selects the Edit in ONLYOFFICE menu option. Alfresco Share makes a request to the repo end (URL of the form: /parashift/onlyoffice/prepare?nodeRef={nodeRef}). Alfresco Repo end prepares a JSON object for the Share with the following properties:
Alfresco Share takes this object and constructs a page from a freemarker template, filling in all of those values so that the client browser can load up the editor. The client browser makes a request for the javascript library from ONLYOFFICE Document Server and sends ONLYOFFICE Document Server the DocEditor configuration with the above properties. Then ONLYOFFICE Document Server downloads the document from Alfresco and the user begins editing. ONLYOFFICE Document Server sends a POST request to the callback URL to inform Alfresco that a user is editing the document. Alfresco locks the document, but still allows other users with write access the ability to collaborate in real time with ONLYOFFICE Document Server by leaving the Action present. When all users and client browsers are done with editing, they close the editing window. After 10 seconds of inactivity, ONLYOFFICE Document Server sends a POST to the callback URL letting Alfresco know that the clients have finished editing the document and closed it. Alfresco downloads the new version of the document, replacing the old one. Download the ONLYOFFICE Alfresco module package here. |
© Ascensio System SIA 2021. All rights reserved
|