<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>ExoDrivesPageUpgrade</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>140</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>drives.upgrade</name>
          <object type="io.meeds.social.upgrade.model.LayoutUpgrade">
            <field name="updatePageLayout">
              <boolean>true</boolean>
            </field>
            <field name="configPath">
              <string>war:/conf/documents/portal</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>drives</string>
                </value>
              </collection>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
    <component-plugin>
      <name>DocumentsApplicationPageUpgrade</name>
      <set-method>addUpgradePlugin</set-method>
      <type>io.meeds.social.upgrade.LayoutUpgradePlugin</type>
      <init-params>
        <value-param>
          <name>product.group.id</name>
          <value>org.exoplatform.social</value>
        </value-param>
        <value-param>
          <name>plugin.execution.order</name>
          <value>180</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>global.upgrade</name>
          <object type="io.meeds.social.upgrade.model.LayoutUpgrade">
            <field name="updateNavigation">
              <boolean>true</boolean>
            </field>
            <field name="configPath">
              <string>war:/conf/documents/portal</string>
            </field>
            <field name="portalType">
              <string>portal</string>
            </field>
            <field name="portalName">
              <string>global</string>
            </field>
            <field name="importMode">
              <string>merge</string>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
    <component-plugin>
      <name>DocumentsGlobalPagePageUpgrade</name>
      <set-method>addUpgradePlugin</set-method>
      <type>io.meeds.social.upgrade.LayoutUpgradePlugin</type>
      <init-params>
        <value-param>
          <name>product.group.id</name>
          <value>org.exoplatform.social</value>
        </value-param>
        <value-param>
          <name>plugin.execution.order</name>
          <value>180</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>global.upgrade</name>
          <object type="io.meeds.social.upgrade.model.LayoutUpgrade">
            <field name="updateNavigation">
              <boolean>true</boolean>
            </field>
            <field name="configPath">
              <string>war:/conf/documents/portal</string>
            </field>
            <field name="portalType">
              <string>portal</string>
            </field>
            <field name="portalName">
              <string>global</string>
            </field>
            <field name="importMode">
              <string>merge</string>
            </field>
          </object>
        </object-param>
      </init-params>
    </component-plugin>
  </external-component-plugins>
</configuration>