Esri Geoportal Server
1.0

com.esri.gpt.framework.security.principal
Class UserAttributeMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<String,T>
              extended by com.esri.gpt.framework.collection.CaseInsensitiveMap<UserAttribute>
                  extended by com.esri.gpt.framework.security.principal.UserAttributeMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,UserAttribute>

public class UserAttributeMap
extends CaseInsensitiveMap<UserAttribute>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
static String TAG_EMAIL
          The email address attribute tag = "email"
static String TAG_USER_NAME
          The username attribute tag = "username"
static String TAG_USER_PASSWORD
          The password attribute tag = "password"
 
Constructor Summary
UserAttributeMap()
          Default constructor.
UserAttributeMap(UserAttributeMap mapToClone)
          Constructs a clone of the supplied attribute map.
 
Method Summary
 void add(UserAttribute member)
          Adds a member to the collection.
 String getEmailAddress()
          Gets the email address.
 String getUsername()
          Gets the username.
 void set(String key, String value)
          Sets the value associated with a supplied key.
 void setEmailAddress(String emailAddress)
          Sets the email address.
 void setUsername(String username)
          Sets the email address.
 
Methods inherited from class com.esri.gpt.framework.collection.CaseInsensitiveMap
containsKey, get, getAllowEmptyKey, put, toString
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, entrySet, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
entrySet, equals, hashCode, isEmpty, keySet, putAll, remove, size, values
 

Field Detail

TAG_EMAIL

public static final String TAG_EMAIL
The email address attribute tag = "email"

See Also:
Constant Field Values

TAG_USER_NAME

public static final String TAG_USER_NAME
The username attribute tag = "username"

See Also:
Constant Field Values

TAG_USER_PASSWORD

public static final String TAG_USER_PASSWORD
The password attribute tag = "password"

See Also:
Constant Field Values
Constructor Detail

UserAttributeMap

public UserAttributeMap()
Default constructor.


UserAttributeMap

public UserAttributeMap(UserAttributeMap mapToClone)
Constructs a clone of the supplied attribute map.

Parameters:
mapToClone - the attribute map to clone
Method Detail

getEmailAddress

public String getEmailAddress()
Gets the email address.

Returns:
the email address

setEmailAddress

public void setEmailAddress(String emailAddress)
Sets the email address.

Parameters:
emailAddress - the email address

getUsername

public String getUsername()
Gets the username.

Returns:
the username

setUsername

public void setUsername(String username)
Sets the email address.

Parameters:
username - the user name

add

public void add(UserAttribute member)
Adds a member to the collection.
The member will not be added if it is null or if it has an empty key.

Parameters:
member - the member to add

set

public void set(String key,
                String value)
Sets the value associated with a supplied key. If an attribute associated with the key does not exist within the collection, a new attribute will be created and added.

Parameters:
key - the key associated with the value
value - the value to set

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.