public class SingleRowJdbcPersonAttributeDao extends AbstractJdbcPersonAttributeDao<Map<String,Object>>
IPersonAttributeDao
implementation that maps from column names in the result of a SQL query
to attribute names. | Property | Description | Required | Default |
|---|---|---|---|
| columnsToAttributes |
The Map of String columns names to String or Sets
of Strings to use as attribute names in the returned Map. If a column name
is not in the map the column name will be used in as the returned attribute name.
|
No | Collections.EMPTY_MAP |
DEFAULT_CASE_CANONICALIZATION_MODE, DEFAULT_USERNAME_CASE_CANONICALIZATION_MODEloggerWILDCARD, WILDCARD_PATTERN| Constructor and Description |
|---|
SingleRowJdbcPersonAttributeDao() |
SingleRowJdbcPersonAttributeDao(DataSource ds,
String sql)
Creates a new MultiRowJdbcPersonAttributeDao specifying the DataSource and SQL to use.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<Map<String,Object>> |
getRowMapper() |
protected List<IPersonAttributes> |
parseAttributeMapFromResults(List<Map<String,Object>> queryResults,
String queryUserName)
Takes the
List from the query and parses it into the List of IPersonAttributes attributes to be returned. |
appendAttributeToQuery, canonicalizeDataAttributeForSql, getCaseInsensitiveDataAttributes, getDataAttributeCaseCanonicalizationFunctions, getPeopleForQuery, getQueryTemplate, getQueryType, setCaseInsensitiveDataAttributes, setCaseInsensitiveDataAttributesAsCollection, setDataAttributeCaseCanonicalizationFunctions, setQueryTypeappendCanonicalizedAttributeToQuery, canonicalizeAttribute, generateQuery, getAvailableQueryAttributes, getCaseCanonicalizationLocale, getCaseInsensitiveQueryAttributes, getCaseInsensitiveResultAttributes, getConfiguredUserNameAttribute, getDefaultCaseCanonicalizationMode, getPeopleWithMultivaluedAttributes, getPossibleUserAttributeNames, getQueryAttributeMapping, getResultAttributeMapping, getUnmappedUsernameAttribute, getUsernameCaseCanonicalizationMode, isRequireAllQueryAttributes, isUseAllQueryAttributes, isUserNameAttributeConfigured, mapPersonAttributes, setCaseCanonicalizationLocale, setCaseInsensitiveQueryAttributes, setCaseInsensitiveQueryAttributesAsCollection, setCaseInsensitiveResultAttributes, setCaseInsensitiveResultAttributesAsCollection, setDefaultCaseCanonicalizationMode, setQueryAttributeMapping, setRequireAllQueryAttributes, setResultAttributeMapping, setUnmappedUsernameAttribute, setUseAllQueryAttributes, setUsernameCaseCanonicalizationModegetPerson, getUsernameAttributeProvider, setUsernameAttributeProvider, toSeedMapgetPeople, toMultivaluedSeedflattenResults, getMultivaluedUserAttributes, getMultivaluedUserAttributes, getUserAttributes, getUserAttributespublic SingleRowJdbcPersonAttributeDao()
public SingleRowJdbcPersonAttributeDao(DataSource ds, String sql)
ds - The DataSource to get connections from for executing queries, may not be null.sql - The SQL to execute for user attributes, may not be null.protected org.springframework.jdbc.core.simple.ParameterizedRowMapper<Map<String,Object>> getRowMapper()
getRowMapper in class AbstractJdbcPersonAttributeDao<Map<String,Object>>protected List<IPersonAttributes> parseAttributeMapFromResults(List<Map<String,Object>> queryResults, String queryUserName)
AbstractJdbcPersonAttributeDaoList from the query and parses it into the List of IPersonAttributes attributes to be returned.parseAttributeMapFromResults in class AbstractJdbcPersonAttributeDao<Map<String,Object>>queryResults - Results from the query.queryUserName - The username passed in the query map, if no username attribute existed in the query Map null is provided.Copyright © 2015 Jasig. All Rights Reserved.