org.jasig.services.persondir.support
Class MessageFormatPersonAttributeDao

java.lang.Object
  extended by org.jasig.services.persondir.support.BasePersonAttributeDao
      extended by org.jasig.services.persondir.support.AbstractFlatteningPersonAttributeDao
          extended by org.jasig.services.persondir.support.AbstractDefaultAttributePersonAttributeDao
              extended by org.jasig.services.persondir.support.MessageFormatPersonAttributeDao
All Implemented Interfaces:
IPersonAttributeDao

public class MessageFormatPersonAttributeDao
extends AbstractDefaultAttributePersonAttributeDao

Provides creation of attributes via a MessageFormat string using other user attributes as the arguments to the format string.

Configuration:

Property Description Required Default
formatAttributes A Set of MessageFormatPersonAttributeDao.FormatAttribute objects that define the formatted user attributes to be generated. Yes null

Version:
$Revision$
Author:
Eric Dalquist

Nested Class Summary
static class MessageFormatPersonAttributeDao.FormatAttribute
          Sets up a formatted attribute
 
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
MessageFormatPersonAttributeDao()
           
 
Method Summary
 Set<String> getAvailableQueryAttributes()
           
 Set<MessageFormatPersonAttributeDao.FormatAttribute> getFormatAttributes()
           
 Set<IPersonAttributes> getPeopleWithMultivaluedAttributes(Map<String,List<Object>> query)
           
 Set<String> getPossibleUserAttributeNames()
           
 void setFormatAttributes(Set<MessageFormatPersonAttributeDao.FormatAttribute> formatAttributes)
           
 
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

MessageFormatPersonAttributeDao

public MessageFormatPersonAttributeDao()
Method Detail

getFormatAttributes

public Set<MessageFormatPersonAttributeDao.FormatAttribute> getFormatAttributes()

setFormatAttributes

public void setFormatAttributes(Set<MessageFormatPersonAttributeDao.FormatAttribute> formatAttributes)
Parameters:
formatAttributes - the formatAttributes to set

getAvailableQueryAttributes

public Set<String> getAvailableQueryAttributes()

getPeopleWithMultivaluedAttributes

public Set<IPersonAttributes> getPeopleWithMultivaluedAttributes(Map<String,List<Object>> query)

getPossibleUserAttributeNames

public Set<String> getPossibleUserAttributeNames()


Copyright © 2012 Jasig. All Rights Reserved.