<?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.cms.metadata.MetadataService</key>
    <type>org.exoplatform.services.cms.metadata.impl.MetadataServiceImpl</type>    
  </component>
    
  <external-component-plugins>
    <target-component>org.exoplatform.services.cms.metadata.MetadataService</target-component>
      <component-plugin>
        <name>addPlugins</name>
        <set-method>addPlugins</set-method>
        <type>org.exoplatform.services.cms.templates.impl.TemplatePlugin</type>    
        <init-params>
        	<value-param>
	        	<name>autoCreateInNewRepository</name>
	        	<value>true</value>
	        </value-param>
	        <value-param>
	        	<name>storedLocation</name>
	        	<value>war:/conf/dms-extension/dms/artifacts/metadata</value>
	        </value-param>
          <object-param>
            <name>metadata.template.configuration</name>
            <description>configuration for the localtion of templates to inject in jcr</description>
            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig">            	
              <field  name="nodeTypes">
                <collection type="java.util.ArrayList">               
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>dc:elementSet</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Dublin Core</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/elementSet/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field> 
                      <field name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/elementSet/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                   
                    </object>
                  </value>
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>rma:record</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Dublin core</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/record/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/record/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                    </object>
                  </value>
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>rma:vitalRecord</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Records Management</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/vitalRecord/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/vitalRecord/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                    </object>
                  </value>
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>rma:cutoffable</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Records Management</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/cutoffable/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/cutoffable/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                    </object>
                  </value>
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>rma:holdable</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Records Management</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/holdable/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/holdable/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                    </object>
                  </value>
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>rma:transferable</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Records Management</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/transferable/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/transferable/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                    </object>
                  </value>
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>rma:accessionable</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Records Management</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/accessionable/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/accessionable/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                    </object>
                  </value>
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>rma:destroyable</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Records Management</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/destroyable/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/destroyable/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                    </object>
                  </value>
                  
                  <!--
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>mix:referenceable</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Dublin core</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/referenceable/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/referenceable/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                     
                    </object>
                  </value>                  
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>mix:lockable</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Dublin core</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/lockable/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/lockable/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                                                                              
                    </object>
                  </value>                  
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>mix:versionable</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Dublin core</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/versionable/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/versionable/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                    </object>
                  </value>                  
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>exo:accessControllable</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Dublin core</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/accessControllable/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/accessControllable/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                    </object>
                  </value>     
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>exo:actionable</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Dublin core</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/actionable/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/actionable/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                    </object>
                  </value>     
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>exo:move</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Move</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/move/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/move/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                    </object>
                  </value>     
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>exo:relationable</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Relationable</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/relationable/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/relationable/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                    </object>
                  </value>
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>exo:rss-enable</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Rss-enable</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/rss-enable/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/rss-enable/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                    </object>
                  </value>
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>exo:published</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Published</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/published/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/published/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                    </object>
                  </value>
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>exo:categorized</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Categorized</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/categorized/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                      <field  name="referencedView">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/categorized/views/view1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                    </object>
                  </value>
                  
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>exo:watchable</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>Watchable</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/watchable/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                    </object>
                  </value>                  
                  <value>
                    <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$NodeType">
                      <field  name="nodetypeName"><string>exo:xmldsig</string></field>
                      <field  name="documentTemplate"><boolean>false</boolean></field>
                      <field  name="label"><string>xmldsig</string></field>
                      <field  name="referencedDialog">
                        <collection type="java.util.ArrayList">
                          <value>                    
                            <object type="org.exoplatform.services.cms.templates.impl.TemplateConfig$Template">             
                              <field name="templateFile"><string>/xmldsig/dialogs/dialog1.gtmpl</string></field>
                              <field name="roles"><string>*</string></field>                
                            </object>                      
                          </value>
                        </collection>
                      </field>                                    
                    </object>
                  </value>
                  -->
                </collection>
              </field>
            </object>
          </object-param>
        </init-params>       
      </component-plugin>
  </external-component-plugins>
  
</configuration>
