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
,
WindowState
public MockPortalContext(List<PortletMode> supportedPortletModes, List<WindowState> supportedWindowStates)
supportedPortletModes
- the List of supported PortletMode instancessupportedWindowStates
- the List of supported WindowState instancesPortletMode
,
WindowState
public String getPortalInfo()
getPortalInfo
in interface PortalContext
public String getProperty(String name)
getProperty
in interface PortalContext
public Enumeration<String> getPropertyNames()
getPropertyNames
in interface PortalContext
public Enumeration<PortletMode> getSupportedPortletModes()
getSupportedPortletModes
in interface PortalContext
public Enumeration<WindowState> getSupportedWindowStates()
getSupportedWindowStates
in interface PortalContext