|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Attributes
Represents attributes that can be associated to users and groups. One attribute key can have multiple values associated to it.
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
getKeys()
Gets all the keys of the attributes. |
java.lang.String |
getValue(java.lang.String key)
Returns the value associated with the given key, returns null if there is no value,
or throws an exception if there is more than one value. |
java.util.Set<java.lang.String> |
getValues(java.lang.String key)
Get all the values associated with a given key. |
boolean |
isEmpty()
|
Method Detail |
---|
java.util.Set<java.lang.String> getValues(java.lang.String key)
key
- the key to retrieve the values for
java.lang.String getValue(java.lang.String key) throws DuplicateAttributeValueException
null
if there is no value,
or throws an exception if there is more than one value.
key
- the key to retrieve the value for
null
if there is no value
DuplicateAttributeValueException
- if the attribute has more than one value stored against itjava.util.Set<java.lang.String> getKeys()
boolean isEmpty()
true
if there are no attributes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |