<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_3.xsd http://www.exoplatform.org/xml/ns/kernel_1_3.xsd" xmlns="http://www.exoplatform.org/xml/ns/kernel_1_3.xsd">
  <external-component-plugins>
    <target-component>org.exoplatform.portal.config.UserPortalConfigService</target-component>
    <component-plugin>
      <name>new.portal.config.user.listener</name>
      <set-method>initListener</set-method>
      <type>org.exoplatform.portal.config.NewPortalConfigListener</type>
      <description>This listener creates Agenda application Page</description>
      <init-params>
        <object-param>
          <name>portal.configuration</name>
          <description>description</description>
          <object type="org.exoplatform.portal.config.NewPortalConfig">
            <field name="ownerType">
              <string>portal</string>
            </field>
            <field name="predefinedOwner">
              <collection type="java.util.HashSet">
                <value>
                  <string>global</string>
                </value>
              </collection>
            </field>
            <field name="location">
              <string>war:/conf/agenda/portal</string>
            </field>
            <field name="override">
              <boolean>${exo.agenda.portalConfig.metadata.override:true}</boolean>
            </field>
            <field name="importMode">
              <string>${exo.agenda.portalConfig.metadata.importmode:insert}</string>
            </field>
          </object>
        </object-param>
        <object-param>
          <name>group.configuration</name>
          <description>description</description>
          <object type="org.exoplatform.portal.config.NewPortalConfig">
            <field name="predefinedOwner">
              <collection type="java.util.HashSet">
                <value>
                  <string>/platform/administrators</string>
                </value>
              </collection>
            </field>
            <field name="ownerType">
              <string>group</string>
            </field>
            <field name="override">
              <boolean>${exo.agenda.portalConfig.metadata.override:true}</boolean>
            </field>
            <field name="importMode">
              <string>${exo.agenda.portalConfig.metadata.importmode:insert}</string>
            </field>
            <field name="templateLocation">
              <string>war:/conf/agenda/portal</string>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>

  <external-component-plugins>
    <target-component>org.exoplatform.commons.addons.AddOnService</target-component>
    <component-plugin>
      <name>addPlugin</name>
      <set-method>addPlugin</set-method>
      <type>org.exoplatform.commons.addons.AddOnPluginImpl</type>
      <description></description>
      <init-params>
        <value-param>
          <name>priority</name>
          <value>1</value>
        </value-param>
        <value-param>
          <name>containerName</name>
          <value>agenda-container</value>
        </value-param>
        <object-param>
          <name>agenda-portlet</name>
          <description></description>
          <object type="org.exoplatform.commons.addons.PortletModel">
            <field name="contentId">
              <string>agenda/Agenda</string>
            </field>
            <field name="permissions">
              <collection type="java.util.ArrayList">
                <value>
                  <string>*:/platform/users</string>
                </value>
                <value>
                  <string>*:/platform/externals</string>
                </value>
              </collection>
            </field>
            <field name="title">
              <string>>Agenda Portlet</string>
            </field>
            <field name="showInfoBar">
              <boolean>false</boolean>
            </field>
            <field name="showApplicationState">
              <boolean>false</boolean>
            </field>
            <field name="showApplicationMode">
              <boolean>false</boolean>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
    <component-plugin>
      <name>addPlugin</name>
      <set-method>addPlugin</set-method>
      <type>org.exoplatform.commons.addons.AddOnPluginImpl</type>
      <description></description>
      <init-params>
        <value-param>
          <name>priority</name>
          <value>1</value>
        </value-param>
        <value-param>
          <name>containerName</name>
          <value>settings-bottom-container</value>
        </value-param>
        <object-param>
          <name>settings-agenda-portlet</name>
          <description></description>
          <object type="org.exoplatform.commons.addons.PortletModel">
            <field name="contentId">
              <string>agenda/AgendaSettings</string>
            </field>
            <field name="permissions">
              <collection type="java.util.ArrayList">
                <value>
                  <string>*:/platform/users</string>
                </value>
                <value>
                  <string>*:/platform/externals</string>
                </value>
              </collection>
            </field>
            <field name="title">
              <string>>Agenda Settings Portlet</string>
            </field>
            <field name="showInfoBar">
              <boolean>false</boolean>
            </field>
            <field name="showApplicationState">
              <boolean>false</boolean>
            </field>
            <field name="showApplicationMode">
              <boolean>false</boolean>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>

</configuration>
