You are looking at documentation for an older release. Not what you want? See the current release documentation.
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:
Name:
portlets.prefs.required
Set-method:
setPortletsPrefsRequired
Type:
org.exoplatform.social.core.application.PortletPreferenceRequiredPlugin
Init-params:
Name | Possible value | Default value | Description |
---|---|---|---|
portletsPrefsRequired |
Portlet names
|
SpaceActivityStreamPortlet; SpaceSettingPortlet; MembersPortlet
| The list of portlets which need to be saved and get the space context name. |