<?xml version="1.0" encoding="ISO-8859-1"?>
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd http://www.exoplaform.org/xml/ns/kernel_1_0.xsd"
   xmlns="http://www.exoplaform.org/xml/ns/kernel_1_0.xsd">

   <component>
     <key>org.xcmis.restatom.CmisRestApplication</key>
     <type>org.xcmis.restatom.CmisRestApplicationSingle</type>
   </component>
   
  <component>
    <key>org.exoplatform.services.jdbc.DataSourceProvider</key>
    <type>org.exoplatform.services.jdbc.impl.DataSourceProviderImpl</type>
   </component>
   
   <component>
      <type>org.exoplatform.ecms.xcmis.sp.DriveCmisRegistry</type>
      <init-params>
         <!-- Disabled by default. Uncomment if you need query support in CMIS. -->
         <!-- value-param>
            <name>indexDir</name>
            <value>${gatein.jcr.index.data.dir}/cmis-index${container.name.suffix}</value>
         </value-param-->
         <value-param>
            <name>exo.cmis.renditions.persistent</name>
            <value>true</value>
         </value-param>
         <values-param>
            <name>renditionProviders</name>
            <description>Redition providers classes.</description>
            <!-- <value>org.xcmis.renditions.impl.PDFDocumentRenditionProvider</value> -->
            <value>org.xcmis.renditions.impl.ImageRenditionProvider</value>
         </values-param>
      </init-params>
   </component>

   <external-component-plugins>
      <target-component>org.exoplatform.services.jcr.RepositoryService</target-component>
      <component-plugin>
         <name>add.namespaces</name>
         <set-method>addPlugin</set-method>
         <type>org.exoplatform.services.jcr.impl.AddNamespacesPlugin</type>
         <init-params>
            <properties-param>
               <name>namespaces</name>
               <property name="cmis" value="http://www.exoplatform.com/jcr/cmis/1.0"/>
               <property name="xcmis" value="http://www.exoplatform.com/jcr/xcmis/1.0"/>
            </properties-param>
         </init-params>
      </component-plugin>
      <component-plugin>
         <name>add.nodeType</name>
         <set-method>addPlugin</set-method>
         <type>org.exoplatform.services.jcr.impl.AddNodeTypePlugin</type>
         <init-params>
            <values-param>
               <name>autoCreatedInNewRepository</name>
               <description>Node types configuration file</description>
               <value>jar:/conf/cmis-nodetypes-config.xml</value>
            </values-param>
         </init-params>
      </component-plugin>
   </external-component-plugins>

</configuration>
