public class MockPortalContext
extends java.lang.Object
javax.portlet.PortalContext
interface.Modifier and Type | Field and Description |
---|---|
private java.util.List<PortletMode> |
portletModes |
private java.util.Map<java.lang.String,java.lang.String> |
properties |
private java.util.List<WindowState> |
windowStates |
Constructor and Description |
---|
MockPortalContext()
Create a new MockPortalContext
with default PortletModes (VIEW, EDIT, HELP)
and default WindowStates (NORMAL, MAXIMIZED, MINIMIZED).
|
MockPortalContext(java.util.List<PortletMode> supportedPortletModes,
java.util.List<WindowState> supportedWindowStates)
Create a new MockPortalContext with the given PortletModes and WindowStates.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPortalInfo() |
java.lang.String |
getProperty(java.lang.String name) |
java.util.Enumeration<java.lang.String> |
getPropertyNames() |
java.util.Enumeration<PortletMode> |
getSupportedPortletModes() |
java.util.Enumeration<WindowState> |
getSupportedWindowStates() |
void |
setProperty(java.lang.String name,
java.lang.String value) |
private final java.util.Map<java.lang.String,java.lang.String> properties
private final java.util.List<PortletMode> portletModes
private final java.util.List<WindowState> windowStates
public MockPortalContext()
javax.portlet.PortletMode
,
javax.portlet.WindowState
public MockPortalContext(java.util.List<PortletMode> supportedPortletModes, java.util.List<WindowState> supportedWindowStates)
supportedPortletModes
- the List of supported PortletMode instancessupportedWindowStates
- the List of supported WindowState instancesjavax.portlet.PortletMode
,
javax.portlet.WindowState
public java.lang.String getPortalInfo()
public void setProperty(java.lang.String name, java.lang.String value)
public java.lang.String getProperty(java.lang.String name)
public java.util.Enumeration<java.lang.String> getPropertyNames()
public java.util.Enumeration<PortletMode> getSupportedPortletModes()
public java.util.Enumeration<WindowState> getSupportedWindowStates()