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

ProfileMapImpl - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.identity.db
Class ProfileMapImpl

java.lang.Object
  extended byorg.jboss.portal.identity.db.ProfileMapImpl
All Implemented Interfaces:
java.util.Map, ProfileMap

public class ProfileMapImpl
extends java.lang.Object
implements ProfileMap

A mutable map that expose user properties.

Version:
$Revision: 5448 $
Author:
Julien Viet

Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
private  UserImpl user
          .
 
Constructor Summary
ProfileMapImpl(UserImpl user)
           
 
Method Summary
 void clear()
          Clear only dynamic properties.
 boolean containsKey(java.lang.Object key)
           
 boolean containsValue(java.lang.Object value)
           
 java.util.Set entrySet()
          Returns an immutable collection of entries.
 java.lang.Object get(java.lang.Object key)
           
 boolean isEmpty()
           
 boolean isReadOnly(java.lang.Object key)
          Return true if the profile value is read only.
 java.util.Set keySet()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object newValue)
          Put a value in the dynamic map.
 void putAll(java.util.Map map)
           
 java.lang.Object remove(java.lang.Object key)
          Only affect dynamic properties, otherwise it throws an IllegalArgumentException.
 int size()
           
 java.util.Collection values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

user

private UserImpl user
.

Constructor Detail

ProfileMapImpl

public ProfileMapImpl(UserImpl user)
Method Detail

isReadOnly

public boolean isReadOnly(java.lang.Object key)
Description copied from interface: ProfileMap
Return true if the profile value is read only.

Specified by:
isReadOnly in interface ProfileMap
Parameters:
key -
Returns:
true if the profile value is read only

size

public int size()
Specified by:
size in interface java.util.Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map

containsKey

public boolean containsKey(java.lang.Object key)
                    throws java.lang.ClassCastException
Specified by:
containsKey in interface java.util.Map
Throws:
java.lang.ClassCastException - if the key is not an instance of string

containsValue

public boolean containsValue(java.lang.Object value)
                      throws java.lang.ClassCastException
Specified by:
containsValue in interface java.util.Map
Throws:
java.lang.ClassCastException - if the value is not an instance of string

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map
Throws:
java.lang.ClassCastException - if the key is not an instance of string

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object newValue)
                     throws java.lang.IllegalArgumentException
Put a value in the dynamic map.

If the key is not an instance of string then an IllegalArgumentException is thrown. If the value is mapped to an accessor of a non writable field then an IllegalArgumentException is thrown. If the value is mapped to an accessor of a non nullable field and the field is null then an IllegalArgumentException is thrown.

Specified by:
put in interface java.util.Map
Throws:
java.lang.IllegalArgumentException

remove

public java.lang.Object remove(java.lang.Object key)
                        throws java.lang.IllegalArgumentException
Only affect dynamic properties, otherwise it throws an IllegalArgumentException.

Specified by:
remove in interface java.util.Map
Throws:
java.lang.IllegalArgumentException - if the key is a not a dynamic property

clear

public void clear()
Clear only dynamic properties.

Specified by:
clear in interface java.util.Map

keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map

values

public java.util.Collection values()
Specified by:
values in interface java.util.Map

entrySet

public java.util.Set entrySet()
Returns an immutable collection of entries.

Specified by:
entrySet in interface java.util.Map

putAll

public void putAll(java.util.Map map)
Specified by:
putAll in interface java.util.Map