|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.services.persondir.support.BasePersonAttributeDao
org.jasig.services.persondir.support.AbstractFlatteningPersonAttributeDao
org.jasig.services.persondir.support.AbstractDefaultAttributePersonAttributeDao
org.jasig.services.persondir.support.AbstractQueryPersonAttributeDao<String>
org.jasig.services.persondir.support.ComplexStubPersonAttributeDao
public class ComplexStubPersonAttributeDao
Looks up the user's attribute Map in the backingMap. If using the IPersonAttributeDao.getUserAttributes(Map)
method the attribute value returned for the key #getDefaultAttributeName() will
be used as the key for the backingMap.
Configuration:
| 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 |
| Field Summary |
|---|
| Fields inherited from class org.jasig.services.persondir.support.BasePersonAttributeDao |
|---|
logger |
| Fields inherited from interface org.jasig.services.persondir.IPersonAttributeDao |
|---|
WILDCARD, WILDCARD_PATTERN |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 to key into the backing map. |
| Methods inherited from class org.jasig.services.persondir.support.AbstractDefaultAttributePersonAttributeDao |
|---|
getPerson, getUsernameAttributeProvider, setUsernameAttributeProvider, toSeedMap |
| Methods inherited from class org.jasig.services.persondir.support.AbstractFlatteningPersonAttributeDao |
|---|
getPeople, toMultivaluedSeed |
| Methods inherited from class org.jasig.services.persondir.support.BasePersonAttributeDao |
|---|
flattenResults, getMultivaluedUserAttributes, getMultivaluedUserAttributes, getUserAttributes, getUserAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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.| Method Detail |
|---|
public String getQueryAttributeName()
public void setQueryAttributeName(String queryAttributeName)
AbstractDefaultAttributePersonAttributeDao.getUsernameAttributeProvider() will be used.
public Map<String,Map<String,List<Object>>> getBackingMap()
public void setBackingMap(Map<String,Map<String,List<Object>>> backingMap)
public 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)
AbstractQueryPersonAttributeDao
appendAttributeToQuery in class AbstractQueryPersonAttributeDao<String>queryBuilder - The sub-class specific query builder objectdataAttribute - The full attribute name to appendqueryValues - The values for the data attribute
protected List<IPersonAttributes> getPeopleForQuery(String seedValue,
String queryUserName)
AbstractQueryPersonAttributeDao
getPeopleForQuery 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||