public class ComplexStubPersonAttributeDao extends AbstractQueryPersonAttributeDao<String>
IPersonAttributeDao.getUserAttributes(Map)
method the attribute value returned for the key AbstractDefaultAttributePersonAttributeDao.getUsernameAttributeProvider() will
be used as the key for the backingMap.
| Property | Description | Required | Default |
|---|---|---|---|
| backingMap |
Sets the backing map to use to return user attributes from. The backing map
should have keys of type String which are the uid for the user. The
values should be of type Map which follow the Map restrictions decribed
by IPersonAttributeDao.getUserAttributes(Map).
|
No | Collections.EMPTY_MAP |
DEFAULT_CASE_CANONICALIZATION_MODE, DEFAULT_USERNAME_CASE_CANONICALIZATION_MODEloggerWILDCARD, WILDCARD_PATTERN| Constructor and Description |
|---|
ComplexStubPersonAttributeDao()
Creates a new, empty, dao.
|
ComplexStubPersonAttributeDao(Map<String,Map<String,List<Object>>> backingMap)
Creates a new DAO with the specified backing map.
|
ComplexStubPersonAttributeDao(String queryAttributeName,
Map<String,Map<String,List<Object>>> backingMap)
Creates a new DAO with the specified backing map and query attribute.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
appendAttributeToQuery(String queryBuilder,
String dataAttribute,
List<Object> queryValues)
Append the attribute and value to the queryBuilder.
|
Set<String> |
getAvailableQueryAttributes() |
Map<String,Map<String,List<Object>>> |
getBackingMap() |
protected List<IPersonAttributes> |
getPeopleForQuery(String seedValue,
String queryUserName)
Executes the query for the generated queryBuilder object and returns a list where each entry is a Map of
attributes for a single IPersonAttributes.
|
Set<String> |
getPossibleUserAttributeNames() |
String |
getQueryAttributeName() |
void |
setBackingMap(Map<String,Map<String,List<Object>>> backingMap)
The backing Map to use for queries, the outer map is keyed on the query attribute.
|
void |
setQueryAttributeName(String queryAttributeName)
Name of the attribute to look for as key into the backing map.
|
appendCanonicalizedAttributeToQuery, canonicalizeAttribute, generateQuery, getCaseCanonicalizationLocale, getCaseInsensitiveQueryAttributes, getCaseInsensitiveResultAttributes, getConfiguredUserNameAttribute, getDefaultCaseCanonicalizationMode, getPeopleWithMultivaluedAttributes, 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 ComplexStubPersonAttributeDao()
public ComplexStubPersonAttributeDao(Map<String,Map<String,List<Object>>> backingMap)
backingMap - The backingMap to call setBackingMap(Map) with.public ComplexStubPersonAttributeDao(String queryAttributeName, Map<String,Map<String,List<Object>>> backingMap)
queryAttributeName - The queryAttributeName to call setQueryAttributeName(String) with.backingMap - The backingMap to call setBackingMap(Map) with.public String getQueryAttributeName()
public void setQueryAttributeName(String queryAttributeName)
AbstractDefaultAttributePersonAttributeDao.getUsernameAttributeProvider() will be used.queryAttributeName - query attribute namepublic void setBackingMap(Map<String,Map<String,List<Object>>> backingMap)
backingMap - backing mappublic Set<String> getPossibleUserAttributeNames()
getPossibleUserAttributeNames in interface IPersonAttributeDaogetPossibleUserAttributeNames in class AbstractQueryPersonAttributeDao<String>public Set<String> getAvailableQueryAttributes()
getAvailableQueryAttributes in interface IPersonAttributeDaogetAvailableQueryAttributes in class AbstractQueryPersonAttributeDao<String>protected String appendAttributeToQuery(String queryBuilder, String dataAttribute, List<Object> queryValues)
AbstractQueryPersonAttributeDaoappendAttributeToQuery in class AbstractQueryPersonAttributeDao<String>queryBuilder - The sub-class specific query builder objectdataAttribute - The full attribute name to appendqueryValues - The values for the data attributeprotected List<IPersonAttributes> getPeopleForQuery(String seedValue, String queryUserName)
AbstractQueryPersonAttributeDaogetPeopleForQuery in class AbstractQueryPersonAttributeDao<String>seedValue - The query generated by calls to AbstractQueryPersonAttributeDao.appendAttributeToQuery(Object, String, List)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.