Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.platform.ui.web.rest.URLService.webapp.contrib--urlpatterns

This contribution is part of XML component org.nuxeo.ecm.platform.ui.web.rest.URLService.webapp.contrib inside nuxeo-platform-webapp-core-5.6.jar

Basic pattern for download: it resolve the file on given property of given document and makes its available for download.

Extension point

Extension point urlpatterns of component URLService.

Contributed items

  • <urlPattern enabled="true" name="downloadFile">
          <defaultURLPolicy>false</defaultURLPolicy>
          <needBaseURL>true</needBaseURL>
          <needRedirectFilter>false</needRedirectFilter>
          <needFilterPreprocessing>true</needFilterPreprocessing>
          <codecName>downloadFile</codecName>
          <actionBinding>#{documentActions.download}</actionBinding>
          <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
          <newDocumentViewBinding>#{restHelper.newDocumentView}</newDocumentViewBinding>
        </urlPattern>

XML source

<extension point="urlpatterns" target="org.nuxeo.ecm.platform.ui.web.rest.URLService">
    <documentation>
      Basic pattern for download: it resolve the file on given property of given
      document and makes its available for download.
    </documentation>

    <urlPattern enabled="true" name="downloadFile">
      <defaultURLPolicy>false</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>false</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>downloadFile</codecName>
      <actionBinding>#{documentActions.download}</actionBinding>
      <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
      <newDocumentViewBinding>#{restHelper.newDocumentView}</newDocumentViewBinding>
    </urlPattern>

    <!-- TODO: add patterns for pdf + edit online links -->

  </extension>