An
org.jasig.portal.services.persondir.IPersonAttributeDao implementation that maps from column names in the result of a SQL query
to attribute names.
You must set a Map from column names to attribute names and only column names
appearing as keys in that map will be used.
getColumnsToAttributes() Get the Map from non-null String column names to Sets of non-null Strings
representing the names of the uPortal attributes to be initialized from
the specified column.
Create the DAO, configured with the needed query information.
Parameters: ds - The DataSource to run the queries against. Parameters: attrList - The list of arguments for the query. Parameters: sql - The SQL query to run.
Get the Map from non-null String column names to Sets of non-null Strings
representing the names of the uPortal attributes to be initialized from
the specified column.
Returns the attributeMappings mapping.
public void setColumnsToAttributes(Map columnsToAttributesMap)(Code)
Set the
Map to use for mapping from a column name to a attribute
name or
Set of attribute names. Column names that are specified
but have null mappings will use the column name for the attribute name.
Column names that are not specified as keys in this
Map will be
ignored.
The passed
Map must have keys of type
String and values
of type
String or a
Set of
String .
Parameters: columnsToAttributesMap - Map from column names to attribute names. throws: IllegalArgumentException - If the Map doesn't follow the rules stated above. See Also:MultivaluedPersonAttributeUtils.parseAttributeToAttributeMapping(Map)