<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.commons.upgrade.UpgradeProductService</target-component>
    <component-plugin>
      <name>ExoChatPageUpgradeV1</name>
      <set-method>addUpgradePlugin</set-method>
      <type>io.meeds.social.upgrade.LayoutUpgradePlugin</type>
      <description>Replaces the old property value with the new property value</description>
      <init-params>
        <value-param>
          <name>product.group.id</name>
          <value>org.exoplatform.social</value>
        </value-param>
        <value-param>
          <name>plugin.execution.order</name>
          <value>120</value>
        </value-param>
        <value-param>
          <name>plugin.upgrade.execute.once</name>
          <value>true</value>
        </value-param>
        <value-param>
          <name>enabled</name>
          <value>true</value>
        </value-param>
        <object-param>
          <name>overview.upgrade</name>
          <object type="io.meeds.social.upgrade.model.LayoutUpgrade">
            <field name="updatePageLayout">
              <boolean>true</boolean>
            </field>
            <field name="configPath">
              <string>war:/conf/chat/</string>
            </field>
            <field name="portalType">
              <string>portal</string>
            </field>
            <field name="portalName">
              <string>global</string>
            </field>
            <field name="pageNames">
              <collection type="java.util.ArrayList" item-type="java.lang.String">
                <value>
                  <string>chat</string>
                </value>
              </collection>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>
</configuration>