<?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_2.xsd http://www.exoplatform.org/xml/ns/kernel_1_2.xsd"
   xmlns="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd">

  
  <component>
    <key>org.exoplatform.services.ecm.publication.PublicationService</key>
    <type>org.exoplatform.services.ecm.publication.impl.PublicationServiceImpl</type>    
  </component>

  <component>
    <key>org.exoplatform.services.ecm.publication.PublicationPresentationService</key>
    <type>org.exoplatform.services.ecm.publication.impl.PublicationPresentationServiceImpl</type>
  </component> 
	
 <component>
    <key>org.exoplatform.services.wcm.publication.WCMPublicationService</key>
    <type>org.exoplatform.services.wcm.publication.WCMPublicationServiceImpl</type>
  </component>

  <component>
    <key>org.exoplatform.services.wcm.publication.WCMComposer</key>
    <type>org.exoplatform.services.wcm.publication.WCMComposerImpl</type>
  </component>

  <component>
    <key>org.exoplatform.services.wcm.metadata.PageMetadataService</key>
    <type>org.exoplatform.services.wcm.metadata.PageMetadataServiceImpl</type>
  </component>
	
	<component>
    <type>org.exoplatform.services.ecm.publication.REST.presentation.document.edit.GetEditedDocumentRESTService</type>
  </component>  
  
  <component>
    <type>org.exoplatform.services.ecm.publication.REST.presentation.document.publication.PublicationGetDocumentRESTService</type>
  </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="publication" value="http://www.exoplatform.com/jcr/publication/1.1/"/>
	      </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>
			<priority>99</priority>
	    <init-params>
	      <values-param>
	        <name>autoCreatedInNewRepository</name>
	        <description>Node types configuration file</description>
	        <value>war:/conf/wcm-core/nodetypes/nodetypes-publication-config.xml</value>
	      </values-param>
	    </init-params>
	  </component-plugin>
	</external-component-plugins>

</configuration>
