Platform Explorer / CMF 1.8

Component org.nuxeo.ecm.platform.content.template.service.ContentTemplateService.defaultContrib

Contributions

XML Source

<?xml version="1.0"?>
<component
    name="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService.defaultContrib">

  <extension
      target="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService"
      point="factory">

    <contentFactory
        name="SimpleTemplateFactory"
        class="org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedFactory"/>

    <contentFactory
        name="SimpleTemplateRootFactory"
        class="org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedRootFactory"/>

    <contentFactory
        name="ImportFactory"
        class="org.nuxeo.ecm.platform.content.template.factories.ImportBasedFactory"/>
  </extension>

  <extension
      target="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService"
      point="factoryBinding">

    <factoryBinding name="RootFactory" factoryName="SimpleTemplateRootFactory" targetType="Root">
      <acl>
        <ace principal="Administrator" permission="Everything" granted="true"/>
        <ace principal="members" permission="Read" granted="true"/>
      </acl>
      <template>
        <templateItem typeName="Domain" id="default-domain" title="Default domain"
            description="Default domain"/>
      </template>
    </factoryBinding>

    <factoryBinding name="DomainFactory" factoryName="SimpleTemplateFactory" targetType="Domain">
      <template>
        <templateItem typeName="WorkspaceRoot" id="workspaces" title="Workspaces"
            description="Workspaces"/>
        <templateItem typeName="SectionRoot" id="sections" title="Sections" description="Sections"/>
        <templateItem typeName="TemplateRoot" id="templates" title="Templates"
            description="Root of workspaces templates"/>
      </template>
    </factoryBinding>

  </extension>

</component>