<?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">
  
  <external-component-plugins>
    <target-component>org.exoplatform.application.registry.ApplicationRegistryService</target-component>     
      <component-plugin>
        <name>dms.portlets.registry</name>
        <set-method>initListener</set-method>
        <type>org.exoplatform.application.registry.ApplicationCategoriesPlugins</type>
        <description>this listener init the portlets are registered in PortletRegister</description>
        <init-params>
          <object-param>
            <name>ECMSuite</name>
            <description>description</description>
            <object type="org.exoplatform.application.registry.ApplicationCategory">
              <field name="name"><string>ECMSuite</string></field>
              <field name="displayName"><string>Content Management</string></field> 
              <field name="description"><string>Content Management</string></field>
              <field name="accessPermissions">
                <collection type="java.util.ArrayList" item-type="java.lang.String">                          
                  <value><string>*:/platform/users</string></value>                         
                </collection>
              </field>                               
              <field  name="applications">
                <collection type="java.util.ArrayList">
                  <value>                 
                    <object type="org.exoplatform.application.registry.Application">                     
                      <field name="applicationName"><string>ECMAdminPortlet</string></field>
                      <field name="categoryName"><string>ECMSuite</string></field>
                      <field name="displayName"><string>ECM Administrator</string></field>
                      <field name="description"><string>ECM Administrator</string></field>
                      <field name="type"><string>portlet</string></field>
                      <field name="contentId"><string>ecm/ECMAdminPortlet</string></field>
                      <field name="accessPermissions">
                        <collection type="java.util.ArrayList" item-type="java.lang.String">                          
                          <value><string>*:/platform/administrators</string></value>
                          <value><string>*:/organization/management/executive-board</string></value>
                        </collection>
                      </field>                 
                    </object>
                  </value>
                  <value>                 
                    <object type="org.exoplatform.application.registry.Application">
                      <field name="applicationName"><string>FastContentCreatorPortlet</string></field>                     
                      <field name="categoryName"><string>ECMSuite</string></field>                        
                      <field name="displayName"><string>Fast Content Creator Portlet</string></field>
                      <field name="description"><string>Fast Content Creator Portlet</string></field>
                      <field name="type"><string>portlet</string></field>
                      <field name="contentId"><string>ecm/FastContentCreatorPortlet</string></field>
                      <field name="accessPermissions">
                        <collection type="java.util.ArrayList" item-type="java.lang.String">                          
                          <value><string>*:/platform/users</string></value>                         
                        </collection>
                      </field>                 
                    </object>
                  </value>
                  <value>                 
                    <object type="org.exoplatform.application.registry.Application">
                      <field name="applicationName"><string>ContentBrowserPortlet</string></field>                     
                      <field name="categoryName"><string>ECMSuite</string></field>                        
                      <field name="displayName"><string>Content Browser Portlet</string></field>
                      <field name="description"><string>Content Browser Portlet</string></field>
                      <field name="type"><string>portlet</string></field>
                      <field name="contentId"><string>ecm/ContentBrowserPortlet</string></field>
                      <field name="accessPermissions">
                        <collection type="java.util.ArrayList" item-type="java.lang.String">                          
                          <value><string>*:/platform/users</string></value>                         
                        </collection>
                      </field>                 
                    </object>
                  </value>
                  <value>                 
                    <object type="org.exoplatform.application.registry.Application">
                      <field name="applicationName"><string>FileExplorerPortlet</string></field>                     
                      <field name="categoryName"><string>ECMSuite</string></field>                        
                      <field name="displayName"><string>File Explorer Portlet</string></field>
                      <field name="description"><string>File Explorer Portlet</string></field>
                      <field name="type"><string>portlet</string></field>
                      <field name="contentId"><string>ecm/FileExplorerPortlet</string></field>
                      <field name="accessPermissions">
                        <collection type="java.util.ArrayList" item-type="java.lang.String">                          
                          <value><string>*:/platform/users</string></value>                         
                        </collection>
                      </field>                 
                    </object>
                  </value>
                </collection>                               
              </field> 
            </object>        
          </object-param>         
        </init-params>
      </component-plugin>   
  </external-component-plugins>
</configuration>
