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

  <component>
    <type>org.exoplatform.services.jcr.ext.app.ThreadLocalSessionProviderService</type>
  </component>

  <component>
    <type>org.exoplatform.services.jcr.ext.resource.NodeRepresentationService</type>
  </component>

  <component>
    <type>org.exoplatform.services.jcr.ext.resource.representation.NtFileNodeRepresentationFactory</type>
  </component>

  <component>
    <type>org.exoplatform.services.jcr.ext.resource.representation.NtResourceNodeRepresentationFactory</type>
  </component>

  <component profiles="cluster">
    <key>org.exoplatform.services.jcr.ext.index.persistent.api.JCRIndexingQueueDAO</key>
    <type>org.exoplatform.services.jcr.ext.index.persistent.impl.JCRIndexingQueueDAOImpl</type>
  </component>

  <component profiles="cluster">
    <key>org.exoplatform.services.jcr.ext.index.persistent.api.JCRIndexingService</key>
    <type>org.exoplatform.services.jcr.ext.index.persistent.impl.JCRIndexingServiceImpl</type>
    <init-params>
      <value-param>
        <name>cluster.node.name</name>
        <description>Cluster node name</description>
        <value>${exo.cluster.node.name:}</value>
      </value-param>
      <value-param>
        <name>batch.number</name>
        <description>Batching count when processing elements from queue
        after retrieving indexes from coordinator/master</description>
        <value>${exo.jcr.indexing.persistent.queue.batch.number:100}</value>
      </value-param>
      <value-param>
        <name>queue.periodicity.seconds</name>
        <description>Periodicity of asunchronous queue processing
        to index nodes that has changes made by other Cluster nodes</description>
        <value>${exo.jcr.indexing.persistent.queue.periodicity.seconds:5}</value>
      </value-param>
    </init-params>
  </component>

  <external-component-plugins>
    <target-component>org.exoplatform.services.jcr.RepositoryService</target-component>
    <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/activity-nodetypes-config.xml</value>
          <value>jar:/conf/jcr-audit-nodetypes.xml</value>
        </values-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>

</configuration>
