public interface PortalContext
PortalContext interface gives the portlet the ability to retrieve information about the portal
calling this portlet.
The portlet can only read the PortalContext data.| Modifier and Type | Method and Description |
|---|---|
String |
getPortalInfo()
Returns information about the portal like vendor, version, etc.
|
String |
getProperty(String name)
Returns the portal property with the given name, or a
null if there is no property by that name. |
Enumeration |
getPropertyNames()
Returns all portal property names, or an empty
Enumeration if there are no property names. |
Enumeration |
getSupportedPortletModes()
Returns all supported portlet modes by the portal as an enumertation of
PorltetMode objects. |
Enumeration |
getSupportedWindowStates()
Returns all supported window states by the portal as an enumertation of
WindowState objects. |
String getPortalInfo()
Pluto/1.0.
The portlet container may return other optional information after the primary string in parentheses, for example,
Pluto/1.0 (JDK 1.3.1; Windows NT 4.0 x86).String containing at least the portal name and version numberString getProperty(String name)
null if there is no property by that name.name - property namenameIllegalArgumentException - if name is null.Enumeration getPropertyNames()
Enumeration if there are no property names.Enumeration of String objectsEnumeration getSupportedPortletModes()
PorltetMode objects.
The portlet modes must at least include the standard portlet modes EDIT, HELP, VIEW.PorltetMode objects.Enumeration getSupportedWindowStates()
WindowState objects.
The window states must at least include the standard window states MINIMIZED, NORMAL, MAXIMIZED.WindowState objects.Copyright © 2003-2016 GateIn. All Rights Reserved.