org.jasig.services.persondir.support
Class BasePersonAttributeDao

java.lang.Object
  extended by org.jasig.services.persondir.support.BasePersonAttributeDao
All Implemented Interfaces:
IPersonAttributeDao
Direct Known Subclasses:
AbstractFlatteningPersonAttributeDao

public abstract class BasePersonAttributeDao
extends Object
implements IPersonAttributeDao

Base IPersonAttributeDao that provides implementations of the deprecated methods. This class will be removed in 1.6

Version:
$Revision$
Author:
Eric Dalquist

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Fields inherited from interface org.jasig.services.persondir.IPersonAttributeDao
WILDCARD, WILDCARD_PATTERN
 
Constructor Summary
BasePersonAttributeDao()
           
 
Method Summary
protected  Map<String,Object> flattenResults(Map<String,List<Object>> multivaluedUserAttributes)
          Deprecated. This method is just used internally and will be removed with this class in 1.6
 Map<String,List<Object>> getMultivaluedUserAttributes(Map<String,List<Object>> seed)
           
 Map<String,List<Object>> getMultivaluedUserAttributes(String uid)
           
 Map<String,Object> getUserAttributes(Map<String,Object> seed)
           
 Map<String,Object> getUserAttributes(String uid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jasig.services.persondir.IPersonAttributeDao
getAvailableQueryAttributes, getPeople, getPeopleWithMultivaluedAttributes, getPerson, getPossibleUserAttributeNames
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

BasePersonAttributeDao

public BasePersonAttributeDao()
Method Detail

getMultivaluedUserAttributes

public final Map<String,List<Object>> getMultivaluedUserAttributes(Map<String,List<Object>> seed)
Specified by:
getMultivaluedUserAttributes in interface IPersonAttributeDao

getMultivaluedUserAttributes

public final Map<String,List<Object>> getMultivaluedUserAttributes(String uid)
Specified by:
getMultivaluedUserAttributes in interface IPersonAttributeDao

getUserAttributes

public final Map<String,Object> getUserAttributes(Map<String,Object> seed)
Specified by:
getUserAttributes in interface IPersonAttributeDao

getUserAttributes

public final Map<String,Object> getUserAttributes(String uid)
Specified by:
getUserAttributes in interface IPersonAttributeDao

flattenResults

@Deprecated
protected Map<String,Object> flattenResults(Map<String,List<Object>> multivaluedUserAttributes)
Deprecated. This method is just used internally and will be removed with this class in 1.6

Takes a <String, List<Object>> Map and coverts it to a <String, Object> Map. This implementation takes the first value of each List to use as the value for the new Map.

Parameters:
multivaluedUserAttributes - The attribute map to flatten.
Returns:
A flattened version of the Map, null if the argument was null.


Copyright © 2012 Jasig. All Rights Reserved.