public abstract class AbstractDefaultAttributePersonAttributeDao extends AbstractFlatteningPersonAttributeDao
IPersonAttributeDao.getPerson(String)
by delegation to IPersonAttributeDao.getPeopleWithMultivaluedAttributes(Map) using a configurable
default attribute name. If IPersonAttributeDao.getPeopleWithMultivaluedAttributes(Map) returnes
more than one IPersonAttributes is returned IncorrectResultSizeDataAccessException is thrown.
| Property | Description | Required | Default |
|---|---|---|---|
| usernameAttributeProvider |
The provider used to determine the username attribute to use when no attribute is specified in the query. This
is primarily used for calls to getPerson(String).
|
No | SimpleUsernameAttributeProvider |
loggerWILDCARD, WILDCARD_PATTERN| Constructor and Description |
|---|
AbstractDefaultAttributePersonAttributeDao() |
| Modifier and Type | Method and Description |
|---|---|
IPersonAttributes |
getPerson(String uid) |
IUsernameAttributeProvider |
getUsernameAttributeProvider() |
void |
setUsernameAttributeProvider(IUsernameAttributeProvider usernameAttributeProvider)
The
IUsernameAttributeProvider to use for determining the username attribute
to use when none is provided. |
protected Map<String,List<Object>> |
toSeedMap(String uid)
Converts the uid to a multi-valued seed Map using the value from
getUsernameAttributeProvider()
as the key. |
getPeople, toMultivaluedSeedflattenResults, getMultivaluedUserAttributes, getMultivaluedUserAttributes, getUserAttributes, getUserAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAvailableQueryAttributes, getPeopleWithMultivaluedAttributes, getPossibleUserAttributeNamespublic AbstractDefaultAttributePersonAttributeDao()
public IPersonAttributes getPerson(String uid)
org.springframework.dao.IncorrectResultSizeDataAccessException - if more than one matching IPersonAttributes is found.IPersonAttributeDao.getPerson(java.lang.String)protected Map<String,List<Object>> toSeedMap(String uid)
getUsernameAttributeProvider()
as the key.uid - userIdpublic IUsernameAttributeProvider getUsernameAttributeProvider()
public void setUsernameAttributeProvider(IUsernameAttributeProvider usernameAttributeProvider)
IUsernameAttributeProvider to use for determining the username attribute
to use when none is provided. The provider is used when calls are made to getPerson(String)
to build a query Map and then call IPersonAttributeDao.getPeopleWithMultivaluedAttributes(Map)usernameAttributeProvider - the usernameAttributeProvider to setCopyright © 2015 Jasig. All Rights Reserved.