/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { Node } from "../../types/javax/jcr/Node"; import type { PortletUtilConstants } from "../../types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants"; /** *

Portlet utility interface.

* *

* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getPortletUtil()}. * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the Utils interface. *

* @author Mikael Wikblom * @since Sitevision 2.6_06 */ export interface PortletUtil extends PortletUtilConstants { /** * The personal portlet preferences type. */ PORTLET_PREFERENCES_TYPE_USER: 11; /** *

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.

* @param portlet The Node corresponding to a portlet * @param user The Node corresponding to a user * @param portletPreferencesType The preferences type (for now, only {@link #PORTLET_PREFERENCES_TYPE_USER} is allowed) * @return PortletPreferences that is effective for the provided user for the specified portlet */ getPortletPreferences( portlet: Node, user: Node, portletPreferencesType: number ): unknown; } declare namespace PortletUtil {} declare var portletUtil: PortletUtil; export default portletUtil;