当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
ComponentPreferencesPlugin - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.server.plugins.preferences
Class ComponentPreferencesPlugin
java.lang.Object
org.jboss.portal.common.value.SimpleValueMap
org.jboss.portal.server.plugins.preferences.ComponentPreferencesPlugin
- All Implemented Interfaces:
- AdapterPlugin, ComponentPreferences, Plugin, Preferences, ValueMap
- Direct Known Subclasses:
- PortletPreferencesPlugin
- public class ComponentPreferencesPlugin
- extends SimpleValueMap
- implements ComponentPreferences, AdapterPlugin
Method Summary |
void |
destroy()
|
java.lang.Class |
getAdaptedClass()
Return the classname adapted by the adapter. |
java.lang.Object |
getAdapter()
Return the adapter instance. |
LocalizedString |
getDescription(java.lang.String key)
Return the description for the specified key or null if it does not exist. |
void |
init(PluginContext pluginContext)
|
boolean |
isReadOnly(java.lang.String key)
Return the read only value for the given preference. |
void |
setReadOnly(java.lang.String key,
boolean readOnly)
Update the read only value for the given key. |
void |
setValue(java.lang.String key,
Value value)
Update the value of the given key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected org.apache.log4j.Logger log
metadata
protected PreferencesMetaData metadata
container
protected PluginContainer container
descs
protected LocalizedString descs
readOnlyMap
protected java.util.Map readOnlyMap
ComponentPreferencesPlugin
public ComponentPreferencesPlugin()
getAdaptedClass
public java.lang.Class getAdaptedClass()
- Description copied from interface:
AdapterPlugin
- Return the classname adapted by the adapter.
- Specified by:
getAdaptedClass
in interface AdapterPlugin
getAdapter
public java.lang.Object getAdapter()
- Description copied from interface:
AdapterPlugin
- Return the adapter instance.
- Specified by:
getAdapter
in interface AdapterPlugin
init
public void init(PluginContext pluginContext)
- Specified by:
init
in interface Plugin
- Parameters:
pluginContext
-
getDescription
public LocalizedString getDescription(java.lang.String key)
- Description copied from interface:
ComponentPreferences
- Return the description for the specified key or null if it does not exist.
- Specified by:
getDescription
in interface ComponentPreferences
- Parameters:
key
-
- Returns:
destroy
public void destroy()
- Specified by:
destroy
in interface Plugin
isReadOnly
public boolean isReadOnly(java.lang.String key)
throws java.lang.IllegalArgumentException
- Description copied from interface:
Preferences
- Return the read only value for the given preference.
- Specified by:
isReadOnly
in interface Preferences
- Parameters:
key
- the requested key
- Returns:
- the read only value
- Throws:
java.lang.IllegalArgumentException
- if the key is null
setReadOnly
public void setReadOnly(java.lang.String key,
boolean readOnly)
throws java.lang.IllegalArgumentException,
java.lang.UnsupportedOperationException
- Description copied from interface:
Preferences
- Update the read only value for the given key. Implementation can throw
an unsupported operation exception when it is abnormal to perform an update.
- Specified by:
setReadOnly
in interface Preferences
- Parameters:
key
- the key to updatereadOnly
- the new read only value
- Throws:
java.lang.IllegalArgumentException
- if the key is null
java.lang.UnsupportedOperationException
- if the operation is not supported
setValue
public void setValue(java.lang.String key,
Value value)
- Description copied from interface:
ValueMap
- Update the value of the given key. If the value object is null
it means that the entry must be removed. Implementation can throw
an unsupported operation exception when it is abnormal to perform an update.
- Specified by:
setValue
in interface ValueMap
- Overrides:
setValue
in class SimpleValueMap