Platform Explorer / CMF 1.8

Contribution org.nuxeo.cm.URLService.contrib--urlpatterns

This contribution is part of XML component org.nuxeo.cm.URLService.contrib inside nuxeo-case-management-web-1.8.jar

Documentation

Override default document view to provide currentEmail info

Extension Point

Extension point urlpatterns of component URLService.

Contributed Items

  • <urlPattern enabled="false" name="default"/>
  • <urlPattern enabled="true" name="cm">
          <defaultURLPolicy>true</defaultURLPolicy>
          <needBaseURL>true</needBaseURL>
          <needRedirectFilter>true</needRedirectFilter>
          <needFilterPreprocessing>true</needFilterPreprocessing>
          <codecName>docpath</codecName>
          <actionBinding>#{restHelper.initContextFromRestRequest}</actionBinding>
          <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
          <newDocumentViewBinding>
            #{restHelper.newDocumentView}
          </newDocumentViewBinding>
          <bindings>
            <binding name="tabId">#{webActions.currentTabId}</binding>
            <binding name="subTabId">#{webActions.currentSubTabId}</binding>
            <binding name="currentCaseItemId">#{cmContextActions.currentCaseItemId}</binding>
            <binding name="tabIds">#{webActions.currentTabIds}</binding>
          </bindings>
        </urlPattern>

XML Source

<extension point="urlpatterns" target="org.nuxeo.ecm.platform.ui.web.rest.URLService">

    <documentation>
      Override default document view to provide currentEmail info
    </documentation>

    <!-- override: component does not implement merging -->
    <urlPattern enabled="false" name="default"/>

    <urlPattern enabled="true" name="cm">
      <defaultURLPolicy>true</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>true</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>docpath</codecName>
      <actionBinding>#{restHelper.initContextFromRestRequest}</actionBinding>
      <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
      <newDocumentViewBinding>
        #{restHelper.newDocumentView}
      </newDocumentViewBinding>
      <bindings>
        <binding name="tabId">#{webActions.currentTabId}</binding>
        <binding name="subTabId">#{webActions.currentSubTabId}</binding>
        <binding name="currentCaseItemId">#{cmContextActions.currentCaseItemId}</binding>
        <binding name="tabIds">#{webActions.currentTabIds}</binding>
      </bindings>
    </urlPattern>

  </extension>