public class MockPortalContext extends Object implements javax.portlet.PortalContext
PortalContext interface.| Constructor and Description |
|---|
MockPortalContext()
Create a new MockPortalContext
with default PortletModes (VIEW, EDIT, HELP)
and default WindowStates (NORMAL, MAXIMIZED, MINIMIZED).
|
MockPortalContext(List<javax.portlet.PortletMode> supportedPortletModes,
List<javax.portlet.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<javax.portlet.PortletMode> |
getSupportedPortletModes() |
Enumeration<javax.portlet.WindowState> |
getSupportedWindowStates() |
void |
setProperty(String name,
String value) |
public MockPortalContext()
PortletMode,
WindowStatepublic MockPortalContext(List<javax.portlet.PortletMode> supportedPortletModes, List<javax.portlet.WindowState> supportedWindowStates)
supportedPortletModes - the List of supported PortletMode instancessupportedWindowStates - the List of supported WindowState instancesPortletMode,
WindowStatepublic String getPortalInfo()
getPortalInfo in interface javax.portlet.PortalContextpublic String getProperty(String name)
getProperty in interface javax.portlet.PortalContextpublic Enumeration<String> getPropertyNames()
getPropertyNames in interface javax.portlet.PortalContextpublic Enumeration<javax.portlet.PortletMode> getSupportedPortletModes()
getSupportedPortletModes in interface javax.portlet.PortalContextpublic Enumeration<javax.portlet.WindowState> getSupportedWindowStates()
getSupportedWindowStates in interface javax.portlet.PortalContextCopyright © 2015. All rights reserved.