@Test(expected = ReadOnlyException.class) public void testSetReadOnlyValue() throws ReadOnlyException, ValidatorException, IOException { addPref(basePrefs, "key", true, new String[] {"default"}); portletPreferences.setValue("key", "modified"); }
@Override public final void setValue(String key, String value) throws ReadOnlyException { this.setValues(key, new String[] {value}); }
AbstractPortletPreferencesImpl implements PortletPreferences { @Override public final void setValue(String key, String value) throws ReadOnlyException { this.setValues(key, new String[] {value}); } }
AbstractPortletPreferencesImpl implements PortletPreferences { @Override public final void setValue(String key, String value) throws ReadOnlyException { this.setValues(key, new String[] {value}); } AbstractPortletPreferencesImpl(boolean render); }
AbstractPortletPreferencesImpl implements PortletPreferences { @Override public final void setValue(String key, String value) throws ReadOnlyException { this.setValues(key, new String[] {value}); } AbstractPortletPreferencesImpl(boolean render); @Override final boolean isReadOnly(String key); @Override final String getValue(String key, String def); @Override final String[] getValues(String key, String[] def); @Override final void setValue(String key, String value); @Override final void setValues(String key, String[] values); @Override final Enumeration<String> getNames(); @Override final Map<String, String[]> getMap(); @Override final void reset(String key); @Override final void store(); }
AbstractPortletPreferencesImpl implements PortletPreferences { @Override public final void setValue(String key, String value) throws ReadOnlyException { this.setValues(key, new String[] {value}); } AbstractPortletPreferencesImpl(boolean render); @Override final boolean isReadOnly(String key); @Override final String getValue(String key, String def); @Override final String[] getValues(String key, String[] def); @Override final void setValue(String key, String value); @Override final void setValues(String key, String[] values); @Override final Enumeration<String> getNames(); @Override final Map<String, String[]> getMap(); @Override final void reset(String key); @Override final void store();  }