public class MockPortalContext extends Object implements PortalContext
PortalContext interface.MARKUP_HEAD_ELEMENT_SUPPORT| Constructor and Description |
|---|
MockPortalContext()
Create a new MockPortalContext
with default PortletModes (VIEW, EDIT, HELP)
and default WindowStates (NORMAL, MAXIMIZED, MINIMIZED).
|
MockPortalContext(List<PortletMode> supportedPortletModes,
List<WindowState> supportedWindowStates)
Create a new MockPortalContext with the given PortletModes and WindowStates.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPortalInfo() |
String |
getProperty(String name) |
Enumeration<String> |
getPropertyNames() |
Enumeration<PortletMode> |
getSupportedPortletModes() |
Enumeration<WindowState> |
getSupportedWindowStates() |
void |
setProperty(String name,
String value) |
public MockPortalContext()
PortletMode,
WindowStatepublic MockPortalContext(List<PortletMode> supportedPortletModes, List<WindowState> supportedWindowStates)
supportedPortletModes - the List of supported PortletMode instancessupportedWindowStates - the List of supported WindowState instancesPortletMode,
WindowStatepublic String getPortalInfo()
getPortalInfo in interface PortalContextpublic String getProperty(String name)
getProperty in interface PortalContextpublic Enumeration<String> getPropertyNames()
getPropertyNames in interface PortalContextpublic Enumeration<PortletMode> getSupportedPortletModes()
getSupportedPortletModes in interface PortalContextpublic Enumeration<WindowState> getSupportedWindowStates()
getSupportedWindowStates in interface PortalContext