public class AdditionalDescriptors extends Object implements IAdditionalDescriptors
IPersonAttributes for use with
AdditionalDescriptorsPersonAttributeDao. Unlike most other
implementations, AdditionalDescriptors is mutable. An instance
of this class typically lives for the duration of a session or application,
and external components are expected to add attributes to the collection
after creation.| Constructor and Description |
|---|
AdditionalDescriptors() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(Map<String,List<Object>> attributes) |
boolean |
equals(Object object) |
Map<String,List<Object>> |
getAttributes() |
Object |
getAttributeValue(String name) |
List<Object> |
getAttributeValues(String name) |
String |
getName() |
int |
hashCode() |
List<Object> |
removeAttribute(String name) |
void |
setAttributes(Map<String,List<Object>> attributes)
This should be atomic to the view of other methods on this interface.
|
List<Object> |
setAttributeValues(String name,
List<Object> values)
Sets the specified attribute values
|
void |
setName(String name) |
String |
toString() |
public Object getAttributeValue(String name)
getAttributeValue in interface IPersonAttributespublic List<Object> getAttributeValues(String name)
getAttributeValues in interface IPersonAttributespublic Map<String,List<Object>> getAttributes()
getAttributes in interface IPersonAttributespublic void setName(String name)
setName in interface IAdditionalDescriptorsname - The user name for the attributespublic void addAttributes(Map<String,List<Object>> attributes)
addAttributes in interface IAdditionalDescriptorsattributes - Attributes to add to the existing attribute Mappublic void setAttributes(Map<String,List<Object>> attributes)
IAdditionalDescriptorssetAttributes in interface IAdditionalDescriptorsattributes - Replace all existing attributes witht he specified Mappublic List<Object> setAttributeValues(String name, List<Object> values)
IAdditionalDescriptorssetAttributeValues in interface IAdditionalDescriptorsname - Name of the attribute, must not be nullvalues - Values for the attribute, may be nullpublic List<Object> removeAttribute(String name)
removeAttribute in interface IAdditionalDescriptorsname - Removes the specified attribute, must not be nullpublic boolean equals(Object object)
equals in interface Principalequals in class ObjectObject.equals(Object)public int hashCode()
hashCode in interface PrincipalhashCode in class ObjectObject.hashCode()Copyright © 2015 Jasig. All Rights Reserved.