2.2.2.5. Portlet Preference Required

This plugin is used to configure the list of portlet names which will have portlet preference of space context.

To use the plugin in the component configuration, you must use the following target-component:


<target-component>org.exoplatform.social.core.space.spi.SpaceService</target-component>

Sample configuration:


<component-plugin>
  <name>portlets.prefs.required</name>
  <set-method>setPortletsPrefsRequired</set-method>
  <type>org.exoplatform.social.core.application.PortletPreferenceRequiredPlugin</type>
  <init-params>
    <values-param>
      <name>portletsPrefsRequired</name>
      <value>SpaceActivityStreamPortlet</value>
      <value>SpaceSettingPortlet</value>
      <value>MembersPortlet</value>
    </values-param>
  </init-params>
</component-plugin>

In which:

NamePossible valueDefault valueDescription
portletsPrefsRequired Portlet names SpaceActivityStreamPortlet; SpaceSettingPortlet; MembersPortlet The list of portlets which need to be saved and get the space context name.
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus