Copyright© 2008-2022 Sitevision AB, all rights reserved.
@Requireable(value="PortletUtil") public interface PortletUtil extends VelocityAccess.PortletUtilConstants
Portlet utility interface.
An instance of the Sitevision class implementing this interface can be obtained via Utils.getPortletUtil()
.
See Utils
for how to obtain an instance of the Utils
interface.
Modifier and Type | Field and Description |
---|---|
static int |
PORTLET_PREFERENCES_TYPE_USER
The personal portlet preferences type.
|
Modifier and Type | Method and Description |
---|---|
PortletPreferences |
getPortletPreferences(Node portlet,
Node user,
int portletPreferencesType)
Extracts the user specific
PortletPreferences for the specified portlet. |
getPORTLET_PREFERENCES_TYPE_USER
static final int PORTLET_PREFERENCES_TYPE_USER
PortletPreferences getPortletPreferences(Node portlet, Node user, int portletPreferencesType)
Extracts the user specific PortletPreferences
for the specified portlet.
This method is a complement to the accessor provided by PortletRequest.getPreferences
which returns the PortletPreferences
for the current user.
Note that this method only returns the portlet preferences that are stored. Any local modifications that has not yet been stored will be ignored.
portlet
- The Node
corresponding to a portletuser
- The Node
corresponding to a userportletPreferencesType
- The preferences type (for now, only PORTLET_PREFERENCES_TYPE_USER
is allowed)PortletPreferences
that is effective for the provided user for
the specified portletSitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.