Code Monkey home page Code Monkey logo

nuxeo-onlyoffice's Introduction

Nuxeo ONLYOFFICE Integration

Build Status

In-browser integration of Nuxeo Platform and ONLYOFFICE.

Dependencies

ONLYOFFICE Document Server (Run a Docker image)

Build and Install

Build with maven (at least 3.3)

mvn clean install

Package built here: nuxeo-onlyoffice-package/target

Install with nuxeoctl mp-install <package>

Configure (nuxeo.conf)

The nuxeo.url property must be the fully qualified URL for your nuxeo instance, such as https://my.nuxeo.org/nuxeo

Editor properties:

# URL to editor api.js service (required)
onlyoffice.url.api=http://onlyoffice/web-apps/apps/api/documents/api.js
# Create version on save (optional, default: false)
onlyoffice.version.save=true|false

Conversion properties (Optional):

# URL to conversion service (see ONLYOFFICE docs)
onlyoffice.url.conversion=http://onlyoffice/ConvertService.ashx
# Number of millisecond to wait between polling async request
onlyoffice.conversion.wait=1000

(!) When using Docker, use an accessible hostname for the IP URLs.

(Optional) Use Conversion Service

Invoke the conversion service to transform between a variety of content types. By default, the office2pdf contribution will support PDF as a destination type. See the ONLYOFFICE Conversion API for a full conversion matrix.

Conversion Parameters

Key Description Allowable Values
async Async Processing true, false
srcType Source Type allowable type
destType Dest Type allowable type
codePage Code Page code page ref
delimiter Delimiter delimiter ref
thumbnail Thumbnail true, false, (height):(width):(aspect)

Rendition example

  <extension target="org.nuxeo.ecm.platform.rendition.service.RenditionService" point="renditionDefinitions">
    <renditionDefinition name="onlyoffice">
      <label>label.rendition.onlyofficepdf</label>
      <icon>/icons/note.gif</icon>
      <contentType>application/pdf</contentType>
      <operationChain>onlyofficePdf</operationChain>
      <storeByDefault>false</storeByDefault>
    </renditionDefinition>
  </extension>

  <extension target="org.nuxeo.ecm.core.operation.OperationServiceComponent" point="chains">
    <chain id="onlyofficePdf">
      <operation id="Context.PopBlob"/>
      <operation id="Blob.RunConverter">
        <param name="converter" type="string">office2pdf</param>
        <param name="parameters" type="properties">async=false</param>
      </operation>
    </chain>
  </extension>

Support

These features are not part of the Nuxeo Production platform.

These solutions are provided for inspiration and we encourage customers to use them as code samples and learning resources.

This is a moving project (no API maintenance, no deprecation process, etc.) If any of these solutions are found to be useful for the Nuxeo Platform in general, they will be integrated directly into platform, not maintained here.

License

Apache License, Version 2.0

About Nuxeo

Nuxeo Platform is an open source Content Services platform, written in Java. Data can be stored in both SQL & NoSQL databases.

The development of the Nuxeo Platform is mostly done by Nuxeo employees with an open development model.

The source code, documentation, roadmap, issue tracker, testing, benchmarks are all public.

Typically, Nuxeo users build different types of information management solutions for document management, case management, and digital asset management, use cases. It uses schema-flexible metadata & content models that allows content to be repurposed to fulfill future use cases.

More information is available at www.nuxeo.com.

nuxeo-onlyoffice's People

Contributors

dbnuxeo avatar michaelva avatar thibarg avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nuxeo-onlyoffice's Issues

Installation problem

Hello, after building with maven there are 3 files:

nuxeo-nxr-server-10.10.zip
nuxeo-onlyoffice-package-10.10-SNAPSHOT.zip
nxr-10.10-SNAPSHOT.zip

do I have to install all?

I am using nuxeo 10.10. nuxeo-onlyoffice-package-10.10-SNAPSHOT.zip package install fine but I couldn't install the other two:

~/nuxeo-onlyoffice/nuxeo-onlyoffice-package/target$ sudo nuxeoctl mp-install nuxeo-nxr-server-10.10.zip
Nuxeo home:          /var/lib/nuxeo/server
Nuxeo configuration: /etc/nuxeo/nuxeo.conf
Include template: /var/lib/nuxeo/server/templates/common-base
Include template: /var/lib/nuxeo/server/templates/common
Include template: /var/lib/nuxeo/server/templates/postgresql
Include template: /var/lib/nuxeo/server/templates/onlyoffice-integration
Cannot execute command. entry
java.lang.NullPointerException: entry
        at java.util.zip.ZipFile.getInputStream(ZipFile.java:361) ~[?:1.8.0_191]
        at org.nuxeo.connect.update.standalone.StandaloneUpdateService.loadPackageFromZip(StandaloneUpdateService.java:260) ~[nuxeo-launcher-16924.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.getLocalPackageFileId(ConnectBroker.java:345) ~[nuxeo-launcher-16924.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.checkLocalPackagesAndAddLocalFiles(ConnectBroker.java:1519) ~[nuxeo-launcher-16924.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.pkgRequest(ConnectBroker.java:1308) ~[nuxeo-launcher-16924.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.pkgRequest(ConnectBroker.java:1278) ~[nuxeo-launcher-16924.jar:?]
        at org.nuxeo.launcher.NuxeoLauncher.pkgRequest(NuxeoLauncher.java:2796) ~[nuxeo-launcher-16924.jar:?]
        at org.nuxeo.launcher.NuxeoLauncher.launch(NuxeoLauncher.java:1219) ~[nuxeo-launcher-16924.jar:?]
        at org.nuxeo.launcher.NuxeoLauncher.main(NuxeoLauncher.java:1113) [nuxeo-launcher-16924.jar:?]

and

~/nuxeo-onlyoffice/nuxeo-onlyoffice-package/target$ sudo nuxeoctl mp-install nxr-10.10-SNAPSHOT.zip
Nuxeo home:          /var/lib/nuxeo/server
Nuxeo configuration: /etc/nuxeo/nuxeo.conf
Include template: /var/lib/nuxeo/server/templates/common-base
Include template: /var/lib/nuxeo/server/templates/common
Include template: /var/lib/nuxeo/server/templates/postgresql
Include template: /var/lib/nuxeo/server/templates/onlyoffice-integration
Cannot execute command. entry
java.lang.NullPointerException: entry
        at java.util.zip.ZipFile.getInputStream(ZipFile.java:361) ~[?:1.8.0_191]
        at org.nuxeo.connect.update.standalone.StandaloneUpdateService.loadPackageFromZip(StandaloneUpdateService.java:260) ~[nuxeo-launcher-2288.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.getLocalPackageFileId(ConnectBroker.java:345) ~[nuxeo-launcher-2288.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.checkLocalPackagesAndAddLocalFiles(ConnectBroker.java:1519) ~[nuxeo-launcher-2288.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.pkgRequest(ConnectBroker.java:1308) ~[nuxeo-launcher-2288.jar:?]
        at org.nuxeo.launcher.connect.ConnectBroker.pkgRequest(ConnectBroker.java:1278) ~[nuxeo-launcher-2288.jar:?]
        at org.nuxeo.launcher.NuxeoLauncher.pkgRequest(NuxeoLauncher.java:2796) ~[nuxeo-launcher-2288.jar:?]
        at org.nuxeo.launcher.NuxeoLauncher.launch(NuxeoLauncher.java:1219) ~[nuxeo-launcher-2288.jar:?]
        at org.nuxeo.launcher.NuxeoLauncher.main(NuxeoLauncher.java:1113) [nuxeo-launcher-2288.jar:?]

Could not find artifact org.wikimodel:wem:jar:2.0.2 in public

Maven fails to build the package:

git clone https://github.com/nuxeo-sandbox/nuxeo-onlyoffice.git
cd nuxeo-onlyoffice
mvn clean install
[INFO] Scanning for projects...
Downloading: http://maven.nuxeo.org/nexus/content/groups/public/org/nuxeo/ecm/distribution/nuxeo-distribution/10.10/nuxeo-distribution-10.10.pom
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Nuxeo OnlyOffice ................................... SUCCESS [ 25.420 s]
[INFO] Nuxeo OnlyOffice :: Core Services .................. FAILURE [01:18 min]
[INFO] Nuxeo OnlyOffice :: REST Services .................. SKIPPED
[INFO] Nuxeo OnlyOffice :: Web UI ......................... SKIPPED
[INFO] Nuxeo OnlyOffice :: Marketplace Package ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:16 min
[INFO] Finished at: 2019-09-30T16:05:18+02:00
[INFO] Final Memory: 78M/188M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project nuxeo-onlyoffice-core: Could not resolve dependencies for project org.nuxeo.onlyoffice:nuxeo-onlyoffice-core:jar:10.10-SNAPSHOT: Could not find artifact org.wikimodel:wem:jar:2.0.2 in public (http://maven.nuxeo.org/nexus/content/groups/public) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :nuxeo-onlyoffice-core

Am I missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.