@Test public void testIsReadOnly() throws ReadOnlyException, ValidatorException, IOException { addPref(basePrefs, "key1", true, new String[] {"default"}); addPref(basePrefs, "key2", false, new String[] {"default"}); boolean readOnly = portletPreferences.isReadOnly("key1"); assertTrue(readOnly); readOnly = portletPreferences.isReadOnly("key2"); assertFalse(readOnly); readOnly = portletPreferences.isReadOnly("key3"); assertFalse(readOnly); }
protected boolean isReadOnly(IPortletPreference portletPreference) { return portletPreference != null && portletPreference.isReadOnly(); }
AbstractPortletPreferencesImpl implements PortletPreferences { protected boolean isReadOnly(IPortletPreference portletPreference) { return portletPreference != null && portletPreference.isReadOnly(); } }
AbstractPortletPreferencesImpl implements PortletPreferences { protected boolean isReadOnly(IPortletPreference portletPreference) { return portletPreference != null && portletPreference.isReadOnly(); } AbstractPortletPreferencesImpl(boolean render); }
AbstractPortletPreferencesImpl implements PortletPreferences { protected boolean isReadOnly(IPortletPreference portletPreference) { return portletPreference != null && portletPreference.isReadOnly(); } 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 { protected boolean isReadOnly(IPortletPreference portletPreference) { return portletPreference != null && portletPreference.isReadOnly(); } 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();  }