public class MockPortletPreferences extends java.lang.Object implements PortletPreferences
PortletPreferences
interface.Constructor and Description |
---|
MockPortletPreferences() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String[]> |
getMap() |
java.util.Enumeration<java.lang.String> |
getNames() |
java.lang.String |
getValue(java.lang.String key,
java.lang.String def) |
java.lang.String[] |
getValues(java.lang.String key,
java.lang.String[] def) |
boolean |
isReadOnly(java.lang.String key) |
void |
reset(java.lang.String key) |
void |
setPreferencesValidator(PreferencesValidator preferencesValidator) |
void |
setReadOnly(java.lang.String key,
boolean readOnly) |
void |
setValue(java.lang.String key,
java.lang.String value) |
void |
setValues(java.lang.String key,
java.lang.String[] values) |
void |
store() |
public void setReadOnly(java.lang.String key, boolean readOnly)
public boolean isReadOnly(java.lang.String key)
isReadOnly
in interface PortletPreferences
public java.lang.String getValue(java.lang.String key, java.lang.String def)
getValue
in interface PortletPreferences
public java.lang.String[] getValues(java.lang.String key, java.lang.String[] def)
getValues
in interface PortletPreferences
public void setValue(java.lang.String key, java.lang.String value) throws ReadOnlyException
setValue
in interface PortletPreferences
ReadOnlyException
public void setValues(java.lang.String key, java.lang.String[] values) throws ReadOnlyException
setValues
in interface PortletPreferences
ReadOnlyException
public java.util.Enumeration<java.lang.String> getNames()
getNames
in interface PortletPreferences
public java.util.Map<java.lang.String,java.lang.String[]> getMap()
getMap
in interface PortletPreferences
public void reset(java.lang.String key) throws ReadOnlyException
reset
in interface PortletPreferences
ReadOnlyException
public void setPreferencesValidator(PreferencesValidator preferencesValidator)
public void store() throws java.io.IOException, ValidatorException
store
in interface PortletPreferences
java.io.IOException
ValidatorException