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

Preferences - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.migration.model22.other
Interface Preferences

All Superinterfaces:
ValueMap

public interface Preferences
extends ValueMap

Extend the value map interface to provide meta information.


Method Summary
 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.
 
Methods inherited from interface org.jboss.portal.migration.model22.other.ValueMap
getKeys, getValue, setValue
 

Method Detail

isReadOnly

public boolean isReadOnly(java.lang.String key)
                   throws java.lang.IllegalArgumentException
Return the read only value for the given preference.

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
Update the read only value for the given key. Implementation can throw an unsupported operation exception when it is abnormal to perform an update.

Parameters:
key - the key to update
readOnly - the new read only value
Throws:
java.lang.UnsupportedOperationException - if the operation is not supported
java.lang.IllegalArgumentException - if the key is null