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

PreferencesGroupImpl - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.core.impl.user
Class PreferencesGroupImpl

java.lang.Object
  extended byorg.jboss.portal.core.impl.user.PreferencesGroupImpl
All Implemented Interfaces:
PreferencesGroup

public class PreferencesGroupImpl
extends java.lang.Object
implements PreferencesGroup


Field Summary
protected  java.lang.String groupId
          The id.
protected  java.lang.Long key
          The key.
protected  java.util.Map prefMap
          The preferences map.
 
Constructor Summary
protected PreferencesGroupImpl()
          Used by hibernate only.
  PreferencesGroupImpl(java.lang.String id)
           
 
Method Summary
protected  java.lang.String getGroupId()
          Called by Hibernate.
protected  java.lang.Long getKey()
          Called by Hibernate.
 ValueMap getPreferences(java.lang.String id, boolean create)
          Return a preference set for the given id.
protected  java.util.Map getPrefMap()
          Called by Hibernate.
protected  void setGroupId(java.lang.String groupId)
          Called by Hibernate.
protected  void setKey(java.lang.Long key)
          Called by Hibernate.
protected  void setPrefMap(java.util.Map prefMap)
          Called by Hibernate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

protected java.lang.Long key
The key.


groupId

protected java.lang.String groupId
The id.


prefMap

protected java.util.Map prefMap
The preferences map.

Constructor Detail

PreferencesGroupImpl

public PreferencesGroupImpl(java.lang.String id)

PreferencesGroupImpl

protected PreferencesGroupImpl()
Used by hibernate only.

Method Detail

getKey

protected java.lang.Long getKey()
Called by Hibernate.


setKey

protected void setKey(java.lang.Long key)
Called by Hibernate.


getGroupId

protected java.lang.String getGroupId()
Called by Hibernate.


setGroupId

protected void setGroupId(java.lang.String groupId)
Called by Hibernate.


getPrefMap

protected java.util.Map getPrefMap()
Called by Hibernate.


setPrefMap

protected void setPrefMap(java.util.Map prefMap)
Called by Hibernate.


getPreferences

public ValueMap getPreferences(java.lang.String id,
                               boolean create)
                        throws java.lang.IllegalArgumentException
Description copied from interface: PreferencesGroup
Return a preference set for the given id.

Specified by:
getPreferences in interface PreferencesGroup
Parameters:
id - the set id
create - if true create the pref if it does not exist otherwise return the pref or null
Returns:
the preference set or null if it does not exist when the creation has not been requested
Throws:
java.lang.IllegalArgumentException - if the id is null