Platform Explorer / Nuxeo Platform 2021.58

Component org.nuxeo.ecm.platform.comment.coreTypes

Requirements

Resolution Order

313
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.comment.coreTypes">

  <require>org.nuxeo.ecm.core.CoreExtensions</require>

  <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
    <schema name="comment" prefix="comment" src="schema/comment.xsd" />
    <schema name="annotation" src="schema/annotation.xsd" prefix="annotation"/>
    <schema name="externalEntity" src="schema/externalEntity.xsd" prefix="externalEntity" />

    <property schema="annotation" name="xpath" indexOrder="ascending" />
    <!-- TODO remove it when PropertyCommentManager will be removed -->
    <property schema="comment" name="parentId" indexOrder="ascending" />
  </extension>

  <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">

    <facet name="ExternalEntity">
      <schema name="externalEntity" />
    </facet>

    <doctype name="CommentRoot" extends="Folder" special="true">
      <facet name="HiddenInNavigation" />
      <facet name="HiddenInCreation" />
      <subtypes>
        <type>Folder</type>
        <type>HiddenFolder</type>
      </subtypes>
    </doctype>

    <doctype name="Comment" extends="Document">
      <schema name="comment" />
      <schema name="common" />
      <schema name="dublincore" />
      <facet name="HiddenInNavigation" />
      <prefetch>
        dc:title, dc:modified, comment.author, comment.text,
        comment.creationDate
      </prefetch>
    </doctype>

    <doctype name="Domain" append="true">
      <subtypes>
        <type>CommentRoot</type>
      </subtypes>
    </doctype>

    <doctype name="Annotation" extends="Comment">
      <schema name="annotation"/>
    </doctype>

  </extension>

  <extension target="org.nuxeo.ecm.core.lifecycle.LifeCycleService"
    point="types">
    <types>
      <type name="CommentRoot">default</type>
    </types>
    <types>
      <type name="HiddenFolder">default</type>
    </types>
  </extension>

</component>