Nuxeo 5

Nuxeo 5 Component
org.nuxeo.ecm.platform.url.service.DocumentViewCodecService.contrib

Individual Documentation Coverage

done proportion
100.0 %


Contributions for basic rest navigation through the application.




Author: Anahide Tchertchian ([email protected])

Version: 1.0

Location: nuxeo-services/nuxeo-platform-url-core/src/main/resources/OSGI-INF/docviewurlservice-contrib.xml

Require

No requirements

Required by

Not required

Implementation

No implementation


Is a contribution to:


The docid codec uses the document uid to resolve the context. Urls are of
the form http://site/nuxeo/nxdoc/demo/docuid/view.

The docpath codec uses the document path to resolve the context. Urls are
of the form http://site/nuxeo/nxpath/demo/path/to/my/doc@view.

  • target org.nuxeo.ecm.platform.url.service.DocumentViewCodecService
  • point codecs
  • documentViewCodec
    • default true
    • prefix nxdoc
    • enabled true
    • class org.nuxeo.ecm.platform.url.codec.DocumentIdCodec
    • name docid
  • documentViewCodec
    • default false
    • prefix nxpath
    • enabled true
    • class org.nuxeo.ecm.platform.url.codec.DocumentPathCodec
    • name docpath


The document file codec uses the document uid to resolve the document
model and extract a file held in its properties. Urls are of the form
http://site/nuxeo/nxfile/demo/docuid/file:content/mydoc.odt.

We declare three codecs using this same class but different prefixes
(nxfile, nxeditfile,...) so that we can define several url patterns,
performing different actions, but still using the same syntax.

  • target org.nuxeo.ecm.platform.url.service.DocumentViewCodecService
  • point codecs
  • documentViewCodec
    • prefix nxfile
    • enabled true
    • class org.nuxeo.ecm.platform.url.codec.DocumentFileCodec
    • name downloadFile
  • documentViewCodec
    • prefix nxeditfile
    • enabled true
    • class org.nuxeo.ecm.platform.url.codec.DocumentFileCodec
    • name editFile
  • documentViewCodec
    • prefix nxpdffile
    • enabled true
    • class org.nuxeo.ecm.platform.url.codec.DocumentFileCodec
    • name pdfFile

Last generation: 18:21:25 CEST 11/07/2009