|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.services.persondir.support.MultivaluedPersonAttributeUtils
public final class MultivaluedPersonAttributeUtils
| Method Summary | |
|---|---|
static void |
addResult(Map results,
Object key,
Object value)
Adds a key/value pair to the specified Map, creating multi-valued
values when appropriate. |
static Collection |
flattenCollection(Collection source)
Takes a Collection and creates a flattened Collection out
of it. |
static Map |
parseAttributeToAttributeMapping(Map mapping)
Translate from a more flexible Attribute to Attribute mapping format to a Map from String to Set of Strings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Map parseAttributeToAttributeMapping(Map mapping)
Map that must have keys of
type String and values of type String or Set of
Strings. The argument must not be null and must have no null
keys. It must contain no keys other than Strings and no values other
than Strings or Sets of Strings. This method will throw
IllegalArgumentException if the method argument doesn't meet these
requirements.
This method returns a Map equivalent to its argument except whereever there
was a String value in the Map there will instead be an immutable Set containing
the String value. That is, the return value is normalized to be a Map from
String to Set (of String).
mapping - Map from String names of attributes in the underlying store
to uP attribute names or Sets of such names.
IllegalArgumentException - If the Map doesn't follow the rules stated above.
public static void addResult(Map results,
Object key,
Object value)
Map, creating multi-valued
values when appropriate.
List, passing in a List of any type will
cause its contents to be added to the results
Map directly under the specified key
results - The Map to modify.key - The key to add the value for.value - The value to add for the key.
IllegalArgumentException - if any argument is nullpublic static Collection flattenCollection(Collection source)
Collection and creates a flattened Collection out
of it.
source - The Collection to flatten.
Collection that contains all entries from all levels of source.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||