Platform Explorer / Nuxeo Platform 5.6

Contribution org.nuxeo.ecm.user.center.urlservice--codecs

This contribution is part of XML component org.nuxeo.ecm.user.center.urlservice inside nuxeo-user-center-5.6.jar

The user codec uses the given username to select and display a user. Urls are of the form http://site/nuxeo/user/username(/view).

The view is optional, and defaults to view_home if not present.

Extension point

Extension point codecs of component DocumentViewCodecService.

Contributed items

  • <documentViewCodec class="org.nuxeo.ecm.platform.url.codec.DocumentPathCodec" default="false" enabled="true" name="docpathhome" prefix="nxhome"/>
  • <documentViewCodec class="org.nuxeo.ecm.user.center.UserCodec" default="false" enabled="true" name="user" prefix="user"/>

XML source

<extension point="codecs" target="org.nuxeo.ecm.platform.url.service.DocumentViewCodecService">

    <documentViewCodec class="org.nuxeo.ecm.platform.url.codec.DocumentPathCodec" default="false" enabled="true" name="docpathhome" prefix="nxhome"/>

    <documentation>
      The user codec uses the given username to select and display a user.
      Urls are of the form http://site/nuxeo/user/username(/view).

      The view is optional, and defaults to view_home if not present.
    </documentation>
    <documentViewCodec class="org.nuxeo.ecm.user.center.UserCodec" default="false" enabled="true" name="user" prefix="user"/>

  </extension>