2.6.1. Overriding portal data

To activate the data import on specific portal metadata, you must set the override parameter of the NewPortalConfigListener component registering this portal metadata to true. If this parameter is missing, its value is false and the portal metadata is not re-imported. The following example shows how to activate the data import:


<component-plugin>
  <!-- The name of the plugin -->
  <name>new.portal.config.user.listener</name>
  <!-- The name of the method to call on the UserPortalConfigService in order to register the NewPortalConfigs -->
  <set-method>initListener</set-method>
  <!-- The full qualified name of the NewPortalConfigListener -->
  <type>org.exoplatform.portal.config.NewPortalConfigListener</type>
  <description>this listener init the portal configuration</description>
  <init-params>
    <value-param>
      <name>override</name>
      <description>The flag parameter to decide if portal metadata is overridden on restarting server.</description>
      <value>true</value>
    </value-param>
    <!-- List of NewPortalConfig instances-->
    ...
  </init-params>
</component-plugin>
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus