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
,
WindowState
public MockPortalContext(List<javax.portlet.PortletMode> supportedPortletModes, List<javax.portlet.WindowState> supportedWindowStates)
supportedPortletModes
- the List of supported PortletMode instancessupportedWindowStates
- the List of supported WindowState instancesPortletMode
,
WindowState
public String getPortalInfo()
getPortalInfo
in interface javax.portlet.PortalContext
public String getProperty(String name)
getProperty
in interface javax.portlet.PortalContext
public Enumeration<String> getPropertyNames()
getPropertyNames
in interface javax.portlet.PortalContext
public Enumeration<javax.portlet.PortletMode> getSupportedPortletModes()
getSupportedPortletModes
in interface javax.portlet.PortalContext
public Enumeration<javax.portlet.WindowState> getSupportedWindowStates()
getSupportedWindowStates
in interface javax.portlet.PortalContext
Copyright © 2015. All rights reserved.