Platform Explorer / CMF 1.8

Component org.nuxeo.ecm.platform.routing.CoreExtensions

Contributions

XML Source

<component name="org.nuxeo.ecm.platform.routing.CoreExtensions" version="1.0">

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

  <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema">
    <schema name="base" src="schemas/base.xsd" />
    <schema name="document_route_instance" prefix="docri"
      src="schemas/document_route_instance.xsd" />
    <schema name="document_route_model" prefix="docrm"
      src="schemas/document_route_model.xsd" />
    <schema name="step_folder" prefix="stepf" src="schemas/step_folder.xsd" />
    <schema name="info_comments" src="schemas/info_comments.xsd" prefix="infocom" />
  
  </extension>

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

    <facet name="Routable" />
    <facet name="DocumentRoute" />
    <facet name="RouteStep" />
    
    <facet name="CommentsInfoHolder">
      <schema name="info_comments" />
    </facet>

    <doctype name="DocumentRouteInstancesRoot" extends="Folder">
      <subtypes>
        <type>Folder</type>
      </subtypes>
    </doctype>

    <doctype name="Domain" extends="Folder">
      <subtypes>
        <type>DocumentRouteInstancesRoot</type>
      </subtypes>
    </doctype>

    <doctype name="DocumentRoute" extends="StepFolder">
      <facet name="DocumentRoute" />
      <schema name="document_route_instance" />
      <schema name="document_route_model" />
      <subtypes>
        <type>StepFolder</type>
        <type>DocumentRouteStep</type>
      </subtypes>
    </doctype>

    <doctype name="StepFolder" extends="OrderedFolder">
      <schema name="step_folder" />
      <subtypes>
        <type>StepFolder</type>
        <type>DocumentRouteStep</type>
      </subtypes>
    </doctype>

    <doctype name="DocumentRouteStep" extends="Document">
      <schema name="dublincore" />
      <facet name="RouteStep" />
      <facet name="Commentable" />
      <facet name="CommentsInfoHolder"/>
    </doctype>

  </extension>

</component>