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 | Field and Description |
|---|---|
| public static final String | MARKUP_HEAD_ELEMENT_SUPPORT
Property indicating if the portal application supports the
|
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: aString containing at least the portal name and version numberReturns information about the portal like vendor, version, etc. The form of the returned string is servername/versionnumber. |
| public String | Returns: portal property with keynameproperty name name)Returns the portal property with the given name,
or a |
| public Enumeration | Returns: All portal property names as anEnumeration of String objectsReturns all portal property names, or an empty
|
| public Enumeration | Returns: All supported portal modes by the portal as an enumeration ofPortletMode objects.Returns all supported portlet modes by the portal
as an enumeration of |
| public Enumeration | Returns: All supported window states by the portal as an enumeration ofWindowState objects.Returns all supported window states by the portal
as an enumeration of |
| MARKUP_HEAD_ELEMENT_SUPPORT | back to summary |
|---|---|
| public static final String MARKUP_HEAD_ELEMENT_SUPPORT Property indicating if the portal application supports the
A non-null value indicates that the portal application supports
the
The value is
| |
| getPortalInfo | back to summary |
|---|---|
| public 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
The portlet container may return other optional information after the
primary string in parentheses, for example,
| |
| getProperty | back to summary |
|---|---|
| public String getProperty(String name) Returns the portal property with the given name,
or a
| |
| getPropertyNames | back to summary |
|---|---|
| public Enumeration Returns all portal property names, or an empty
| |
| getSupportedPortletModes | back to summary |
|---|---|
| public Enumeration Returns all supported portlet modes by the portal
as an enumeration of
The portlet modes must at least include the
standard portlet modes
| |
| getSupportedWindowStates | back to summary |
|---|---|
| public Enumeration Returns all supported window states by the portal
as an enumeration of
The window states must at least include the
standard window states
| |