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

PreferencesResolver - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.common.prefs
Interface PreferencesResolver

All Known Implementing Classes:
CombinedPreferencesResolver

public interface PreferencesResolver

Merge several property set into one.


Method Summary
 java.util.Set getKeys()
          Return the merged key set.
 Value getValue(java.lang.String key)
          Return a preference among the sets or null if no suitable preference is found.
 boolean isReadOnly(java.lang.String key)
          Say if the preference is marked as read only.
 

Method Detail

getValue

public Value getValue(java.lang.String key)
               throws java.lang.IllegalArgumentException
Return a preference among the sets or null if no suitable preference is found.

Parameters:
key - the requested key
Returns:
the found preference or null
Throws:
java.lang.IllegalArgumentException - if the key or the array is null

isReadOnly

public boolean isReadOnly(java.lang.String key)
                   throws java.lang.IllegalArgumentException
Say if the preference is marked as read only.

Parameters:
key - the requested key
Returns:
the read only value
Throws:
java.lang.IllegalArgumentException - if the key or the array is null

getKeys

public java.util.Set getKeys()
                      throws java.lang.IllegalArgumentException
Return the merged key set.

Returns:
the merged key set
Throws:
java.lang.IllegalArgumentException - if the array is null