<?xml version="1.0" encoding="ISO-8859-1"?>
<!--

    Copyright (C) 2009 eXo Platform SAS.
    
    This is free software; you can redistribute it and/or modify it
    under the terms of the GNU Lesser General Public License as
    published by the Free Software Foundation; either version 2.1 of
    the License, or (at your option) any later version.
    
    This software is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    Lesser General Public License for more details.
    
    You should have received a copy of the GNU Lesser General Public
    License along with this software; if not, write to the Free
    Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
    02110-1301 USA, or see the FSF site: http://www.fsf.org.

-->

<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">


  <!-- Deploy template for Content List Viewer Portlet -->
  <external-component-plugins>
    <target-component>org.exoplatform.services.cms.views.ApplicationTemplateManagerService</target-component>
    <component-plugin>
      <name>clv.templates.plugin</name>
      <set-method>addPlugin</set-method>
      <type>org.exoplatform.services.cms.views.PortletTemplatePlugin</type>
      <description>This plugin is used to import views templates for Content List Viewer</description>
      <init-params>
        <value-param>
          <name>portletName</name>
          <value>content-list-viewer</value>
        </value-param>
        <value-param>
          <name>portlet.template.path</name>
          <value>war:/conf/wcm-artifacts/application-templates/content-list-viewer</value>
        </value-param>
        <object-param>
          <name>default.folder.list.viewer</name>
          <description>Default folder list viewer groovy template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>UIContentListPresentationDefault.gtmpl</string>
            </field>
            <field name="category">
              <string>list</string>
            </field>
            <!--
						<field  name="accessPermissions">
						<collection type="java.util.ArrayList">
						<value><string>*</string></value>	          		               
						</collection>
						</field>                            
						<field  name="editPermissions">
						<collection type="java.util.ArrayList">
						<value><string>*</string></value>	          		               
						</collection>
						</field>               
						-->
          </object>
        </object-param>
        <object-param>
          <name>big.folder.list.viewer</name>
          <description>Default folder list viewer groovy template with Big Image</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>UIContentListPresentationBigImage.gtmpl</string>
            </field>
            <field name="category">
              <string>list</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>small.folder.list.viewer</name>
          <description>Default folder list viewer groovy template with Small Image</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>UIContentListPresentationSmall.gtmpl</string>
            </field>
            <field name="category">
              <string>list</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>Two columns CLV template</name>
          <description>Two columns CLV template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>TwoColumnsCLVTemplate.gtmpl</string>
            </field>
            <field name="category">
              <string>list</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>One column CLV template</name>
          <description>One column CLV template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>OneColumnCLVTemplate.gtmpl</string>
            </field>
            <field name="category">
              <string>list</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>Category Tree</name>
          <description>Category Tree</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>CategoryTree.gtmpl</string>
            </field>
            <field name="category">
              <string>navigation</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>Category List</name>
          <description>Category List</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>CategoryList.gtmpl</string>
            </field>
            <field name="category">
              <string>navigation</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>Tags Cloud</name>
          <description>Tags Cloud</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>TagsCloud.gtmpl</string>
            </field>
            <field name="category">
              <string>navigation</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>Documents template</name>
          <description>Documents template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>DocumentsTemplate.gtmpl</string>
            </field>
            <field name="category">
              <string>list</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>folder.list.viewer</name>
          <description>Default folder list viewer groovy template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>ContentListViewerDefault.gtmpl</string>
            </field>
            <field name="category">
              <string>list</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>Big hot news template</name>
          <description>Big hot news template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>BigHotNewsTemplateCLV.gtmpl</string>
            </field>
            <field name="category">
              <string>list</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>Events template</name>
          <description>Events template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>EventsTemplateCLV.gtmpl</string>
            </field>
            <field name="category">
              <string>list</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>default.paginator</name>
          <description>Default paginator groovy template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>UIPaginatorDefault.gtmpl</string>
            </field>
            <field name="category">
              <string>paginators</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>empty.paginator</name>
          <description>Empty paginator groovy template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>UIPaginatorEmpty.gtmpl</string>
            </field>
            <field name="category">
              <string>paginators</string>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>

  <!-- Deploy template for Parameterized Content List Viewer Portlet -->
  <!--
  <external-component-plugins>
    <target-component>org.exoplatform.services.cms.views.ApplicationTemplateManagerService</target-component>
    <component-plugin>
      <name>pclv.templates.plugin</name>
      <set-method>addPlugin</set-method>
      <type>org.exoplatform.services.cms.views.PortletTemplatePlugin</type>
      <description>This plugin is used to import parameterized content list views templates for Parameterized Content List Viewer</description>
      <init-params>
        <value-param>
          <name>portletName</name>
          <value>Parameterized Content List Viewer</value>
        </value-param>
        <value-param>
          <name>portlet.template.path</name>
          <value>war:/conf/wcm-artifacts/application-templates/content-list-viewer</value>
        </value-param>
        <object-param>
          <name>default.folder.list.viewer</name>
          <description>Default folder list viewer groovy template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>UIParameterizedContentListViewerDefault.gtmpl</string>
            </field>
            <field name="category">
              <string>list</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>Big hot news template</name>
          <description>Big hot news template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>BigHotNewsTemplate.gtmpl</string>
            </field>
            <field name="category">
              <string>list</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>Events template</name>
          <description>Events template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>EventsTemplate.gtmpl</string>
            </field>
            <field name="category">
              <string>list</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>default.paginator</name>
          <description>Default paginator groovy template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>UIPaginatorDefault.gtmpl</string>
            </field>
            <field name="category">
              <string>paginators</string>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>
  -->

  <!-- Deploy template for Search Portlet -->
  <external-component-plugins>
    <target-component>org.exoplatform.services.cms.views.ApplicationTemplateManagerService</target-component>
    <component-plugin>
      <name>search.templates.plugin</name>
      <set-method>addPlugin</set-method>
      <type>org.exoplatform.services.cms.views.PortletTemplatePlugin</type>
      <description>This plugin is used to import views templates for search ui</description>
      <init-params>
        <value-param>
          <name>portletName</name>
          <value>WCM Advance Search</value>
        </value-param>
        <value-param>
          <name>portlet.template.path</name>
          <value>war:/conf/wcm-artifacts/application-templates/wcm-search</value>
        </value-param>
        <object-param>
          <name>default.searchPageLayout</name>
          <description>Default search page layout template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>UISearchPageLayoutDefault.gtmpl</string>
            </field>
            <field name="category">
              <string>search-page-layout</string>
            </field>
          </object>
        </object-param>        
        <object-param>
          <name>default.searchForm</name>
          <description>Default search form template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>UIDefaultSearchForm.gtmpl</string>
            </field>
            <field name="category">
              <string>search-form</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>default.searchResult</name>
          <description>Default search form template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>UIDefaultSearchResult.gtmpl</string>
            </field>
            <field name="category">
              <string>search-result</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>default.searchPaginator</name>
          <description>Default search paginator template</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>UIDefaultSearchPaginator.gtmpl</string>
            </field>
            <field name="category">
              <string>search-paginator</string>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>

  <!-- Deploy template for Category Navigation Portlet -->
  <!--
  <external-component-plugins>
    <target-component>org.exoplatform.services.cms.views.ApplicationTemplateManagerService</target-component>
    <component-plugin>
      <name>search.templates.plugin</name>
      <set-method>addPlugin</set-method>
      <type>org.exoplatform.services.cms.views.PortletTemplatePlugin</type>
      <description>This plugin is used to import views templates for Category Navigation Portlet</description>
      <init-params>
        <value-param>
          <name>portletName</name>
          <value>Category Navigation Portlet</value>
        </value-param>
        <value-param>
          <name>portlet.template.path</name>
          <value>war:/conf/wcm-artifacts/application-templates/category-navigation</value>
        </value-param>
        -->
        <!-- object-param>
            <name>DefaultVerticalHierachy</name>
            <description>Default vertical hierachy with two levels</description>
            <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
              <field  name="templateName"><string>DefaultVerticalHierachy.gtmpl</string></field>  
              <field  name="category"><string>vertical-hierachy</string></field>
            </object>
          </object-param -->
        <!--
        <object-param>
          <name>SimpleVerticalHierachy</name>
          <description>Simple vertical hierachy with all levels</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>SimpleVerticalHierachy.gtmpl</string>
            </field>
            <field name="category">
              <string>vertical-hierachy</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>SimpleHorizontal</name>
          <description>Simple horizontal hierachy with one level</description>
          <object type="org.exoplatform.services.cms.views.PortletTemplatePlugin$PortletTemplateConfig">
            <field name="templateName">
              <string>SimpleHorizontal.gtmpl</string>
            </field>
            <field name="category">
              <string>vertical-hierachy</string>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>
  -->

</configuration>
