|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IPersonAttributes
An immutable representation of a person with a uid (userName) and attributes. A user's attributes can be of any type
and can be multi-valued.
Principal.getName() is used for the uid (userName).
The equality and hashCode of an IPersonAttributes should ONLY include the name property and none of the attributes.
| Method Summary | |
|---|---|
Map<String,List<Object>> |
getAttributes()
|
Object |
getAttributeValue(String name)
The value for the attribute, null if no value exists or the first value is null, if there are multiple values the first is returned. |
List<Object> |
getAttributeValues(String name)
All values of the attribute, null if no values exist. |
| Methods inherited from interface java.security.Principal |
|---|
equals, getName, hashCode, toString |
| Method Detail |
|---|
Map<String,List<Object>> getAttributes()
Object getAttributeValue(String name)
name - The name of the attribute to get the value for
List<Object> getAttributeValues(String name)
name - The name of the attribute to get the values for
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||