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

    Copyright (C) 2010 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">
  
  <component>
    <key>org.exoplatform.webui.ext.UIExtensionManager</key>
    <type>org.exoplatform.webui.ext.impl.UIExtensionManagerImpl</type>
  </component>
  
  <external-component-plugins>
    <target-component>org.exoplatform.webui.ext.UIExtensionManager</target-component>
    <component-plugin>
      <name>add.action</name>
      <set-method>registerUIExtensionPlugin</set-method>
      <type>org.exoplatform.webui.ext.UIExtensionPlugin</type>
      <init-params>
        <object-param>
          <name>EditPage</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.UIPageToolBar</string></field>
            <field name="rank"><int>300</int></field>
            <field name="name"><string>EditPage</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.EditPageActionComponent</string></field>
          </object>
        </object-param>
        <object-param>
          <name>Add</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.UIPageToolBar</string></field>
            <field name="name"><string>Add</string></field>
            <field name="rank"><int>200</int></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.AddExtensionContainer</string></field>
          </object>
        </object-param>
				 <object-param>
          <name>AddPage</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.AddExtensionContainer</string></field>
            <field name="name"><string>AddPage</string></field>
            <field name="rank"><int>400</int></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.AddPageActionComponent</string></field>
          </object>
        </object-param>
				 <object-param>
          <name>AddPageFromTemplate</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.AddExtensionContainer</string></field>
            <field name="name"><string>AddPageFromTemplate</string></field>
            <field name="rank"><int>500</int></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.AddPageFromTemplateActionComponent</string></field>
          </object>
        </object-param>
        <object-param>
          <name>DeletePage</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.MoreExtensionContainer</string></field>
            <field name="rank"><int>100</int></field>
            <field name="name"><string>DeletePage</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.DeletePageActionComponent</string></field>
          </object>
        </object-param>        
        <object-param>
          <name>SavePage</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.UISubmitToolBar</string></field>
            <field name="rank"><int>200</int></field>
            <field name="name"><string>SavePage</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.SavePageActionComponent</string></field>
          </object>
        </object-param>
				 <object-param>
          <name>SaveTemplate</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.UISubmitToolBar</string></field>
            <field name="rank"><int>200</int></field>
            <field name="name"><string>SaveTemplate</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.SaveTemplateActionComponent</string></field>
          </object>
        </object-param>
         <object-param>
          <name>MinorEdit</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.UISubmitToolBar</string></field>
            <field name="rank"><int>300</int></field>
            <field name="name"><string>MinorEdit</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.MinorEditActionComponent</string></field>
          </object>
        </object-param>        
        <object-param>
          <name>Cancel</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.UISubmitToolBar</string></field>
            <field name="rank"><int>400</int></field>
            <field name="name"><string>Cancel</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.CancelActionComponent</string></field>
          </object>
        </object-param>
        <object-param>
          <name>PreviewPage</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.UIEditorTabs</string></field>
            <field name="rank"><int>300</int></field>
            <field name="name"><string>PreviewPage</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.PreviewPageActionComponent</string></field>
          </object>
        </object-param>
        <object-param>
          <name>Help</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.UIEditorTabs</string></field>
            <field name="rank"><int>400</int></field>
            <field name="name"><string>Help</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.HelpActionComponent</string></field>
          </object>
        </object-param>
        <object-param>
          <name>RichText</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.UIEditorTabs</string></field>
            <field name="rank"><int>200</int></field>
            <field name="name"><string>RichText</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.RichTextActionComponent</string></field>
          </object>
        </object-param>
        <object-param>
          <name>More</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.UIPageToolBar</string></field>
            <field name="rank"><int>50</int></field>
            <field name="name"><string>More</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.MoreExtensionContainer</string></field>
          </object>
        </object-param>
        <object-param>
          <name>MovePage</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.MoreExtensionContainer</string></field>
            <field name="rank"><int>50</int></field>
            <field name="name"><string>MovePage</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.MovePageActionComponent</string></field>
          </object>
        </object-param>
        <object-param>
          <name>WatchPage</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.MoreExtensionContainer</string></field>
            <field name="rank"><int>40</int></field>
            <field name="name"><string>WatchPage</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.WatchPageActionComponent</string></field>
          </object>
        </object-param>
        <object-param>
          <name>PagePermission</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.MoreExtensionContainer</string></field>
            <field name="rank"><int>30</int></field>
            <field name="name"><string>PagePermission</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.PagePermissionActionComponent</string></field>
          </object>
        </object-param>                          
        <object-param>
	         <name>PageInfo</name>
	         <object type="org.exoplatform.webui.ext.UIExtension">
	           <field name="type"><string>org.exoplatform.wiki.webui.control.MoreExtensionContainer</string></field>
	           <field name="rank"><int>1000</int></field>
	           <field name="name"><string>PageInfo</string></field>
	           <field name="component"><string>org.exoplatform.wiki.webui.control.action.PageInfoActionComponent</string></field>
	         </object>
        </object-param>
        <object-param>
          <name>Browse</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.UIWikiToolBar</string></field>
            <field name="rank"><int>50</int></field>
            <field name="name"><string>Browse</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.BrowseExtensionContainer</string></field>
          </object>
        </object-param>   
        <object-param>
          <name>SpaceSetting</name>
          <object type="org.exoplatform.webui.ext.UIExtension">
            <field name="type"><string>org.exoplatform.wiki.webui.control.BrowseExtensionContainer</string></field>
            <field name="rank"><int>300</int></field>
            <field name="name"><string>SpaceSetting</string></field>
            <field name="component"><string>org.exoplatform.wiki.webui.control.action.SpaceSettingActionComponent</string></field>
          </object>
        </object-param>
        <object-param>
           <name>PermissionSetting</name>
           <object type="org.exoplatform.webui.ext.UIExtension">
             <field name="type"><string>org.exoplatform.wiki.webui.popup.UIWikiSettingContainer</string></field>
             <field name="rank"><int>100</int></field>
             <field name="name"><string>PermissionSetting</string></field>
             <field name="component"><string>org.exoplatform.wiki.webui.UIWikiPermissionForm</string></field>             
           </object>
        </object-param>
        <object-param>
           <name>TemplateSetting</name>
           <object type="org.exoplatform.webui.ext.UIExtension">
             <field name="type"><string>org.exoplatform.wiki.webui.popup.UIWikiSettingContainer</string></field>
             <field name="rank"><int>200</int></field>
             <field name="name"><string>TemplateSetting</string></field>
             <field name="component"><string>org.exoplatform.wiki.webui.extension.UITemplateSettingForm</string></field>             
           </object>
        </object-param>
        <object-param>
           <name>RemoveRelatedPage</name>
           <object type="org.exoplatform.webui.ext.UIExtension">
             <field name="type"><string>org.exoplatform.wiki.webui.control.UIRelatedPagesContainer</string></field>
             <field name="rank"><int>400</int></field>
             <field name="name"><string>RemoveRelatedPage</string></field>
             <field name="component"><string>org.exoplatform.wiki.webui.control.action.RemoveRelatedPageActionComponent</string></field>             
           </object>
        </object-param>
        <object-param>
           <name>AddRelatedPage</name>
           <object type="org.exoplatform.webui.ext.UIExtension">
             <field name="type"><string>org.exoplatform.wiki.webui.control.UIRelatedPagesContainer</string></field>
             <field name="rank"><int>200</int></field>
             <field name="name"><string>AddRelatedPage</string></field>
             <field name="component"><string>org.exoplatform.wiki.webui.control.action.AddRelatedPageActionComponent</string></field>             
           </object>
        </object-param>
        <object-param>
           <name>UploadAttachment</name>
           <object type="org.exoplatform.webui.ext.UIExtension">
             <field name="type"><string>org.exoplatform.wiki.webui.control.UIAttachmentContainer</string></field>
             <field name="rank"><int>100</int></field>
             <field name="name"><string>UploadAttachment</string></field>
             <field name="component"><string>org.exoplatform.wiki.webui.UIWikiUploadAttachment</string></field>             
           </object>
        </object-param>
        <object-param>
           <name>RemoveAttachment</name>
           <object type="org.exoplatform.webui.ext.UIExtension">
             <field name="type"><string>org.exoplatform.wiki.webui.UIWikiAttachmentUploadListForm</string></field>
             <field name="rank"><int>100</int></field>
             <field name="name"><string>RemoveAttachment</string></field>
             <field name="component"><string>org.exoplatform.wiki.webui.control.action.RemoveAttachmentActionComponent</string></field>             
           </object>
        </object-param>
        <object-param>
           <name>SavePageTitle</name>
           <object type="org.exoplatform.webui.ext.UIExtension">
             <field name="type"><string>org.exoplatform.wiki.webui.UIWikiPageTitleControlArea</string></field>
             <field name="rank"><int>100</int></field>
             <field name="name"><string>SavePageTitle</string></field>
             <field name="component"><string>org.exoplatform.wiki.webui.UIFieldEditableForm</string></field>             
           </object>
        </object-param>
        <object-param>
           <name>RestoreRevision</name>
           <object type="org.exoplatform.webui.ext.UIExtension">
             <field name="type"><string>org.exoplatform.wiki.webui.UIWikiPageVersionsList</string></field>
             <field name="rank"><int>100</int></field>
             <field name="name"><string>RestoreRevision</string></field>
             <field name="component"><string>org.exoplatform.wiki.webui.control.action.RestoreRevisionActionComponent</string></field>             
           </object>
        </object-param>
        <object-param>
           <name>RestoreThisRevision</name>
           <object type="org.exoplatform.webui.ext.UIExtension">
             <field name="type"><string>org.exoplatform.wiki.webui.UIWikiVersionSelect</string></field>
             <field name="rank"><int>100</int></field>
             <field name="name"><string>RestoreRevision</string></field>
             <field name="component"><string>org.exoplatform.wiki.webui.control.action.RestoreRevisionActionComponent</string></field>             
           </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>
  
  <!-- The section for configuring data for user/group -->
  <external-component-plugins>
    <target-component>org.exoplatform.services.organization.OrganizationService</target-component>
    <component-plugin>
      <name>ecm.new.group.event.listener</name>
      <set-method>addListenerPlugin</set-method>
      <type>org.exoplatform.services.jcr.ext.hierarchy.impl.NewGroupListener</type>
      <description>description</description>
      <init-params>
        <object-param>
          <name>configuration></name>
          <description>description</description>
          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig">
            <field  name="jcrPaths">
              <collection type="java.util.ArrayList">
                <value>               
                  <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$JcrPath">                 
                    <field name="alias"><string>groupApplicationData</string></field>
                    <field name="path"><string>ApplicationData</string></field>
                    <field name="nodeType"><string>nt:unstructured</string></field>
                    <field name="permissions">
                      <collection type="java.util.ArrayList">               
                        <value>                            
                          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$Permission">             
                            <field name="identity"><string>*:/platform/administrators</string></field>
                            <field name="read"><string>true</string></field>                
                            <field name="addNode"><string>true</string></field>                
                            <field name="setProperty"><string>true</string></field>                
                            <field name="remove"><string>true</string></field>                
                          </object>  
                        </value>                        
                      </collection>
                    </field>                                           
                  </object>
                </value>                                                           
              </collection>
            </field>            
          </object>
        </object-param>
      </init-params> 
    </component-plugin>
    <component-plugin>
      <name>ecm.new.user.event.listener</name>
      <set-method>addListenerPlugin</set-method>
      <type>org.exoplatform.services.jcr.ext.hierarchy.impl.NewUserListener</type>
      <description>description</description>
      <init-params>
        <object-param>
          <name>configuration</name>
          <description>description</description>
          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig">
            <field  name="jcrPaths">
              <collection type="java.util.ArrayList">
                <value>               
                  <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$JcrPath">                 
                    <field name="alias"><string>userApplicationData</string></field>
                    <field name="path"><string>ApplicationData</string></field>
                    <field name="nodeType"><string>nt:unstructured</string></field>
                    <field name="permissions">
                      <collection type="java.util.ArrayList">               
                        <value>                            
                          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$Permission">             
                            <field name="identity"><string>*:/platform/administrators</string></field>
                            <field name="read"><string>true</string></field>                
                            <field name="addNode"><string>true</string></field>                
                            <field name="setProperty"><string>true</string></field>                
                            <field name="remove"><string>true</string></field>                
                          </object>  
                        </value>                        
                      </collection>
                    </field>                                           
                  </object>
                </value>                
              </collection>
            </field>            
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>
  
  <external-component-plugins>
    <target-component>org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator</target-component>
    <component-plugin>
      <name>addPaths</name>
      <set-method>addPlugin</set-method>
      <type>org.exoplatform.services.jcr.ext.hierarchy.impl.AddPathPlugin</type>
      <init-params>
        <object-param>
          <name>cms.configuration</name>
          <description>configuration for the cms path</description>
          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig">
            <field name="workspaces">
              <collection type="java.util.ArrayList">
                <value><string>knowledge</string></value> 
              </collection>
            </field>
            <field name="workspaces" profiles="all,default,minimal">
              <collection type="java.util.ArrayList">
                <value><string>collaboration</string></value> 
              </collection>
            </field>
            <field  name="jcrPaths">
              <collection type="java.util.ArrayList">
                <value>
                  <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$JcrPath">
                    <field  name="alias"><string>eXoApplications</string></field>
                    <field  name="path"><string>/exo:applications</string></field>
                    <field name="permissions">
                      <collection type="java.util.ArrayList">
                        <value>
                          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$Permission">
                            <field name="identity"><string>*:/platform/administrators</string></field>
                            <field name="read"><string>true</string></field>
                            <field name="addNode"><string>true</string></field>
                            <field name="setProperty"><string>true</string></field>
                            <field name="remove"><string>true</string></field>
                          </object>
                        </value>
                      </collection>
                    </field>
                  </object>
                </value>
                <value>
                  <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$JcrPath">
                    <field name="alias"><string>eXoServices</string></field>
                    <field name="path"><string>/exo:services</string></field>
                    <field name="permissions">
                      <collection type="java.util.ArrayList">
                        <value>
                          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$Permission">
                            <field name="identity"><string>*:/platform/administrators</string></field>
                            <field name="read"><string>true</string></field>
                            <field name="addNode"><string>true</string></field>
                            <field name="setProperty"><string>true</string></field>
                            <field name="remove"><string>true</string></field>
                          </object>
                        </value>
                      </collection>
                    </field>
                  </object>
                </value>
                <!-- value>
                  <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$JcrPath">
                    <field  name="alias"><string>portalWiki</string></field>
                    <field  name="path"><string>/exo:applications/eXoWiki</string></field>
                    <field name="permissions">
                      <collection type="java.util.ArrayList">
                        <value>
                          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$Permission">
                            <field name="identity"><string>*:/platform/administrators</string></field>
                            <field name="read"><string>true</string></field>
                            <field name="addNode"><string>true</string></field>
                            <field name="setProperty"><string>true</string></field>
                            <field name="remove"><string>true</string></field>
                          </object>
                        </value>
                      </collection>
                    </field>
                  </object>
                </value>
                <value>
                  <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$JcrPath">
                    <field  name="alias"><string>portalWikis</string></field>
                    <field  name="path"><string>/exo:applications/eXoWiki/wikis</string></field>
                    <field name="permissions">
                      <collection type="java.util.ArrayList">
                        <value>
                          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$Permission">
                            <field name="identity"><string>*:/platform/administrators</string></field>
                            <field name="read"><string>true</string></field>
                            <field name="addNode"><string>true</string></field>
                            <field name="setProperty"><string>true</string></field>
                            <field name="remove"><string>true</string></field>
                          </object>
                        </value>
                      </collection>
                    </field>
                  </object>
                </value-->
                <value>
                  <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$JcrPath">
                    <field  name="alias"><string>usersPath</string></field>
                    <field  name="path"><string>/Users</string></field>
                    <field name="permissions">
                      <collection type="java.util.ArrayList">
                        <value>
                          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$Permission">
                            <field name="identity"><string>*:/platform/administrators</string></field>
                            <field name="read"><string>true</string></field>
                            <field name="addNode"><string>true</string></field>
                            <field name="setProperty"><string>true</string></field>
                            <field name="remove"><string>true</string></field>
                          </object>
                        </value>
                        <value>
                          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$Permission">
                            <field name="identity"><string>any</string></field>
                            <field name="read"><string>true</string></field>
                            <field name="addNode"><string>false</string></field>
                            <field name="setProperty"><string>true</string></field>
                            <field name="remove"><string>false</string></field>
                          </object>
                        </value>
                      </collection>
                    </field>
                  </object>
                </value>
                <value>
                  <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$JcrPath">
                    <field  name="alias"><string>groupsPath</string></field>
                    <field  name="path"><string>/Groups</string></field>
                    <field name="permissions">
                      <collection type="java.util.ArrayList">
                        <value>
                          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$Permission">
                            <field name="identity"><string>*:/platform/administrators</string></field>
                            <field name="read"><string>true</string></field>
                            <field name="addNode"><string>true</string></field>
                            <field name="setProperty"><string>true</string></field>
                            <field name="remove"><string>true</string></field>
                          </object>
                        </value>
                        <value>
                          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$Permission">
                            <field name="identity"><string>any</string></field>
                            <field name="read"><string>true</string></field>
                            <field name="addNode"><string>false</string></field>
                            <field name="setProperty"><string>true</string></field>
                            <field name="remove"><string>false</string></field>
                          </object>
                        </value>
                      </collection>
                    </field>
                  </object>
                </value>
                <value>
                  <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$JcrPath">
                    <field  name="alias"><string>userApplicationData</string></field>
                    <field  name="path"><string>ApplicationData</string></field>
                    <field name="permissions">
                      <collection type="java.util.ArrayList">
                        <value>
                          <object type="org.exoplatform.services.jcr.ext.hierarchy.impl.HierarchyConfig$Permission">
                            <field name="identity"><string>*:/platform/administrators</string></field>
                            <field name="read"><string>true</string></field>
                            <field name="addNode"><string>true</string></field>
                            <field name="setProperty"><string>true</string></field>
                            <field name="remove"><string>true</string></field>
                          </object>
                        </value>
                      </collection>
                    </field>
                  </object>
                </value>
             </collection>
           </field>
         </object>
       </object-param>
     </init-params>
     </component-plugin>
  </external-component-plugins>
  
  <external-component-plugins>
    <target-component>org.exoplatform.services.organization.OrganizationService</target-component>
    <component-plugin>
      <name>init.service.listener</name>
      <set-method>addListenerPlugin</set-method>
      <type>org.exoplatform.services.organization.OrganizationDatabaseInitializer</type>
      <description>this listener populate organization data for the first launch</description>
      <init-params>
        <value-param>
          <name>checkDatabaseAlgorithm</name>
          <description>check database</description>
          <value>entry</value>
        </value-param>
        <value-param>
          <name>printInformation</name>
          <description>Print information init database</description>
          <value>false</value>
        </value-param>
        <object-param>
          <name>configuration</name>
          <description>description</description>
          <object type="org.exoplatform.services.organization.OrganizationConfig">
            <field name="group">
              <collection type="java.util.ArrayList">
                <value>
                  <object type="org.exoplatform.services.organization.OrganizationConfig$Group">
                    <field name="name">
                      <string>sandbox</string>
                    </field>
                    <field name="parentId">
                      <string></string>
                    </field>
                    <field name="description">
                      <string>the /sandbox group</string>
                    </field>
                    <field name="label">
                      <string>Sandbox</string>
                    </field>
                  </object>
                </value>
              </collection>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>

  <external-component-plugins>
    <target-component>org.exoplatform.services.deployment.ContentInitializerService</target-component>
    <component-plugin>
      <name>Content Initializer Service</name>
      <set-method>addPlugin</set-method>
      <type>org.exoplatform.services.deployment.plugins.XMLDeploymentPlugin</type>
      <description>XML Deployment Plugin</description>
      <init-params>
        <object-param>
          <name>Wiki sandbox data</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.DeploymentDescriptor">
            <field name="target">
              <object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
                <field name="workspace">
                  <string>knowledge</string>
                </field>
                <field name="workspace" profiles="all,default,minimal">
                  <string>collaboration</string>
                </field>
                <field name="nodePath">
                  <string>/Groups/sandbox/ApplicationData</string>
                </field>
              </object>
            </field>
            <field name="sourcePath">
              <string>war:/conf/data/sandbox.xml</string>
            </field>
            <field name="cleanupPublication">
              <boolean>false</boolean>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>
  
  <external-component-plugins>
    <target-component>org.exoplatform.wiki.service.WikiService</target-component>
    <component-plugin>
      <name>Emotion icons initializer</name>
      <set-method>addComponentPlugin</set-method>
      <type>org.exoplatform.services.deployment.plugins.XMLDeploymentPlugin</type>
      <description>XML Deployment Plugin</description>
      <init-params>
        <object-param>
          <name>Wiki emotion icons</name>
          <description>Deployment Descriptor</description>
          <object type="org.exoplatform.services.deployment.DeploymentDescriptor">
            <field name="target">
              <object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
                <field name="workspace">
                  <string>knowledge</string>
                </field>
                <field name="workspace" profiles="all,default,minimal">
                  <string>collaboration</string>
                </field>
                <field name="nodePath">
                  <string>/exo:applications/eXoWiki/wikimetadata</string>
                </field>
              </object>
            </field>
            <field name="sourcePath">
              <string>war:/conf/data/icons.xml</string>
            </field>
            <field name="cleanupPublication">
              <boolean>false</boolean>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
    <component-plugin>
      <name>Template page initializer</name>
      <set-method>addWikiTemplatePagePlugin</set-method>
      <type>org.exoplatform.wiki.template.plugin.WikiTemplatePagePlugin</type>
      <description>XML Deployment Plugin</description>
      <init-params>
        <values-param>
          <name>sourcePaths</name>
          <description>path of file imported. </description>
          <value>war:/conf/data/template.xml</value>
          <!--value>war:/conf/data/file-name.xml</value -->
        </values-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>
  
  <!-- Configurations for wiki service -->
  <import>jar:/conf/portal/wiki/configuration.xml</import>
  
</configuration>