org.jasig.services.persondir.support
Class ComplexStubPersonAttributeDao

java.lang.Object
  extended by org.jasig.services.persondir.support.AbstractFlatteningPersonAttributeDao
      extended by org.jasig.services.persondir.support.AbstractDefaultAttributePersonAttributeDao
          extended by 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) $

Field Summary
 
Fields inherited from class org.jasig.services.persondir.support.AbstractFlatteningPersonAttributeDao
logger
 
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.
 
Method Summary
 Map<String,Map<String,List<Object>>> getBackingMap()
           
 Map<String,List<Object>> getMultivaluedUserAttributes(Map<String,List<Object>> seed)
           
 Set<String> getPossibleUserAttributeNames()
           
 void setBackingMap(Map<String,Map<String,List<Object>>> backingMap)
           
 
Methods inherited from class org.jasig.services.persondir.support.AbstractDefaultAttributePersonAttributeDao
getDefaultAttributeName, getMultivaluedUserAttributes, setDefaultAttributeName
 
Methods inherited from class org.jasig.services.persondir.support.AbstractFlatteningPersonAttributeDao
flattenResults, getUserAttributes, getUserAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.