org.jasig.services.persondir.support
Class ComplexStubPersonAttributeDao
java.lang.Object
org.jasig.services.persondir.support.AbstractFlatteningPersonAttributeDao
org.jasig.services.persondir.support.AbstractDefaultAttributePersonAttributeDao
org.jasig.services.persondir.support.ComplexStubPersonAttributeDao
- All Implemented Interfaces:
- org.jasig.services.persondir.IPersonAttributeDao
public class ComplexStubPersonAttributeDao
- extends AbstractDefaultAttributePersonAttributeDao
Looks up the user's attribute Map in the backingMap. If using the IPersonAttributeDao.getUserAttributes(Map)
method the attribute value returned for the key AbstractDefaultAttributePersonAttributeDao.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 |
- Version:
- $Revision: 43106 $ $Date: 2008-02-14 11:22:40 -0600 (Thu, 14 Feb 2008) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComplexStubPersonAttributeDao
public ComplexStubPersonAttributeDao()
- Creates a new, empty, dao.
ComplexStubPersonAttributeDao
public ComplexStubPersonAttributeDao(Map<String,Map<String,List<Object>>> backingMap)
- Creates a new DAO with the specified backing map.
- Parameters:
backingMap - The backingMap to call setBackingMap(Map) with.
getBackingMap
public Map<String,Map<String,List<Object>>> getBackingMap()
- Returns:
- Returns the backingMap.
setBackingMap
public void setBackingMap(Map<String,Map<String,List<Object>>> backingMap)
- Parameters:
backingMap - The backingMap to set.
getPossibleUserAttributeNames
public Set<String> getPossibleUserAttributeNames()
getMultivaluedUserAttributes
public Map<String,List<Object>> getMultivaluedUserAttributes(Map<String,List<Object>> seed)
Copyright © 1998-2008 Java Architectures Special Interest Group. All Rights Reserved.