Portal, Express Beta Version 6.1
Operating systems: i5/OS, Linux,Windows |
You can set the portlet preferences for portlet entities.
To set the portlet preferences for a portlet entity, proceed by the following steps:
// obtain portlet model controller final PortletModelController pmController = getPortletModelController(portletModel); // obtain modifiable instance of a portlet entity final Modifiable modifiable = pmController.getModifiableNode(portletEntity); // obtain modifiable preferences layer final ModifiablePortletPreferences preferences = ((ModifiablePortletEntity) modifiable).getModifiablePortletPreferencesLayer(); // set a single value preferences.setStringValue("name", "value");Parent topic: Set portlet preferences Related information