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