Portal, Express Beta Version 6.1
Operating systems: i5/OS, Linux,Windows |
The following objects are used by portlets:
The PortletContext interface defines a portlet's view of the portlet container within which each portlet is running. PortletContext also allows a portlet to access resources available to it. For example, using the context, a portlet can access the portlet log, access context parameters common to all portlets within the portlet application, obtain URL references to resources or access portlet services.
The most important information related to the PortletContext is described in detail below.
This object is also available from the getPortletLog() method from the PortletAdapter class.
The PortletWindow object represents the window that encloses a portlet. For example, on an HTML page, the portlet window can typically be rendered as a table cell. The portlet window can send events on manipulation of its various window controls, like when the user clicks minimize or close. The portlet, in turn, can interrogate the window about its current state. For example, a portlet can render its content differently depending on whether its window is maximized or not. The PortletWindow is available using the getWindow() method of the PortletRequest object.
The User interface represents the users of the portal and provides methods for accessing a subset of the attributes that make up the user profile, such as the user's full name or the user name. The User interface abstracts the underlying physical implementation of the one or more data stores which actually hold the user information.
Note: The getUser() method is located at the PortletRequest and PortletSession. The PortletSession.getUser() method is deprecated and only returns null.The PUMA SPI includes the User and Group interfaces, which include methods that provide fuller access to the attributes of these objects in the user subsystem of Member Services. See PUMA SPI overview for more information.