Platform Explorer / Nuxeo Platform LTS 2015 7.10

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-7.10-HF01.jar /OSGI-INF/urlservice-contrib.xml

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"/>
  • <documentViewCodec class="org.nuxeo.ecm.user.center.GroupCodec" default="false" enabled="true" name="group" prefix="group"/>

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"/>
    <documentViewCodec class="org.nuxeo.ecm.user.center.GroupCodec" default="false" enabled="true" name="group" prefix="group"/>

  </extension>