站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

MappedPreferences - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.impl.preferences
Class MappedPreferences

java.lang.Object
  extended byorg.jboss.portal.core.impl.preferences.MappedPreferences
All Implemented Interfaces:
ValueMap
Direct Known Subclasses:
PreferencesImpl

public class MappedPreferences
extends java.lang.Object
implements ValueMap


Field Summary
protected  java.util.Map map
           
 
Constructor Summary
MappedPreferences()
          Hibernate constructor.
MappedPreferences(java.lang.String id)
           
 
Method Summary
 java.util.Map getContent()
           
 java.lang.String getId()
           
 java.lang.Long getKey()
           
 java.util.Set getKeys()
          Return the key set of the map.
 Value getValue(java.lang.String key)
          Return the value for the given key or null if it does not exist.
 boolean isReadOnly(java.lang.String key)
           
protected  MappedPreference newPreference(java.lang.String name, Value value)
          Override to provide the implementation object.
 void setContent(java.util.Map content)
           
 void setId(java.lang.String id)
          Called by hibernate.
 void setKey(java.lang.Long key)
          Called by hibernate.
 void setReadOnly(java.lang.String key, boolean readOnly)
           
 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
 

Field Detail

map

protected java.util.Map map
Constructor Detail

MappedPreferences

public MappedPreferences()
Hibernate constructor.


MappedPreferences

public MappedPreferences(java.lang.String id)
Method Detail

getKey

public java.lang.Long getKey()

setKey

public void setKey(java.lang.Long key)
Called by hibernate.


getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)
Called by hibernate.


getContent

public java.util.Map getContent()

setContent

public void setContent(java.util.Map content)

getKeys

public java.util.Set getKeys()
Description copied from interface: ValueMap
Return the key set of the map.

Specified by:
getKeys in interface ValueMap

getValue

public Value getValue(java.lang.String key)
Description copied from interface: ValueMap
Return the value for the given key or null if it does not exist.

Specified by:
getValue in interface ValueMap
Parameters:
key - the requested key
Returns:
the requested value or null if it does not exist

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
Parameters:
key - the key to update
value - the new value

isReadOnly

public boolean isReadOnly(java.lang.String key)
                   throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

setReadOnly

public void setReadOnly(java.lang.String key,
                        boolean readOnly)
                 throws java.lang.IllegalArgumentException,
                        java.lang.UnsupportedOperationException
Throws:
java.lang.IllegalArgumentException
java.lang.UnsupportedOperationException

newPreference

protected MappedPreference newPreference(java.lang.String name,
                                         Value value)
Override to provide the implementation object.