Package jakarta.portlet
Interface PortalContext
-
- All Known Implementing Classes:
PortalContextWrapper
public interface PortalContextThePortalContextinterface gives the portlet the ability to retrieve information about the portal calling this portlet.The portlet can only read the
PortalContextdata.
-
-
Field Summary
Fields Modifier and Type Field Description static StringMARKUP_HEAD_ELEMENT_SUPPORTProperty indicating if the portal application supports theMimeResponsepropertyMARKUP_HEAD_ELEMENT.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetPortalInfo()Returns information about the portal like vendor, version, etc.StringgetProperty(String name)Returns the portal property with the given name, or anullif there is no property by that name.Enumeration<String>getPropertyNames()Returns all portal property names, or an emptyEnumerationif there are no property names.Enumeration<PortletMode>getSupportedPortletModes()Returns all supported portlet modes by the portal as an enumeration ofPortletModeobjects.Enumeration<WindowState>getSupportedWindowStates()Returns all supported window states by the portal as an enumeration ofWindowStateobjects.
-
-
-
Field Detail
-
MARKUP_HEAD_ELEMENT_SUPPORT
static final String MARKUP_HEAD_ELEMENT_SUPPORT
Property indicating if the portal application supports theMimeResponsepropertyMARKUP_HEAD_ELEMENT.A non-null value indicates that the portal application supports the
MARKUP_HEAD_ELEMENTproperty.The value is
"jakarta.portlet.markup.head.element.support".- Since:
- 2.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getProperty
String getProperty(String name)
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<String> getPropertyNames()
Returns all portal property names, or an emptyEnumerationif there are no property names.- Returns:
- All portal property names as an
EnumerationofStringobjects
-
getSupportedPortletModes
Enumeration<PortletMode> getSupportedPortletModes()
Returns all supported portlet modes by the portal as an enumeration ofPortletModeobjects.The portlet modes must at least include the standard portlet modes
EDIT, HELP, VIEW.- Returns:
- All supported portal modes by the portal
as an enumeration of
PortletModeobjects.
-
getSupportedWindowStates
Enumeration<WindowState> getSupportedWindowStates()
Returns all supported window states by the portal as an enumeration ofWindowStateobjects.The window states must at least include the standard window states
MINIMIZED, NORMAL, MAXIMIZED.- Returns:
- All supported window states by the portal
as an enumeration of
WindowStateobjects.
-
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 string
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).- Returns:
- a
Stringcontaining at least the portal name and version number
-
-