Package javax.portlet
Interface PortalContext
public interface PortalContext
The
PortalContext interface gives the portlet the ability to retrieve information about the portal
calling this portlet.
The portlet can only read the PortalContext data.- Version:
- $Revision: 5441 $
- Author:
- Julien Viet
-
Method Summary
Modifier and TypeMethodDescriptionReturns information about the portal like vendor, version, etc.getProperty(String name) Returns the portal property with the given name, or anullif there is no property by that name.Returns all portal property names, or an emptyEnumerationif there are no property names.Returns all supported portlet modes by the portal as an enumertation ofPorltetModeobjects.Returns all supported window states by the portal as an enumertation ofWindowStateobjects.
-
Method Details
-
getPortalInfo
String getPortalInfo()Returns information about the portal like vendor, version, etc. The form of the returned string is servername/versionnumber. For example, the reference implementation Pluto may return the stringPluto/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).- Returns:
- a
Stringcontaining at least the portal name and version number
-
getProperty
Returns the portal property with the given name, or anullif there is no property by that name.- Parameters:
name- property name- Returns:
- portal property with key
name - Throws:
IllegalArgumentException- if name isnull.
-
getPropertyNames
Enumeration getPropertyNames()Returns all portal property names, or an emptyEnumerationif there are no property names.- Returns:
- All portal property names as an
EnumerationofStringobjects
-
getSupportedPortletModes
Enumeration getSupportedPortletModes()Returns all supported portlet modes by the portal as an enumertation ofPorltetModeobjects. The portlet modes must at least include the standard portlet modesEDIT, HELP, VIEW.- Returns:
- All supported portal modes by the portal as an enumertation of
PorltetModeobjects.
-
getSupportedWindowStates
Enumeration getSupportedWindowStates()Returns all supported window states by the portal as an enumertation ofWindowStateobjects. The window states must at least include the standard window statesMINIMIZED, NORMAL, MAXIMIZED.- Returns:
- All supported window states by the portal as an enumertation of
WindowStateobjects.
-