org.jasig.services.persondir.support.xml
Class XmlPersonAttributeDao

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.xml.XmlPersonAttributeDao
All Implemented Interfaces:
IPersonAttributeDao, org.springframework.beans.factory.InitializingBean

public class XmlPersonAttributeDao
extends AbstractDefaultAttributePersonAttributeDao
implements org.springframework.beans.factory.InitializingBean

XML backed person attribute DAO that supports wildcard searching. The XML files provided must conform to the PersonData.xsd which resides at the root of the classpath.

Version:
$Revision$
Author:
Eric Dalquist

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
XmlPersonAttributeDao()
           
 
Method Summary
 void afterPropertiesSet()
           
 Set<String> getAvailableQueryAttributes()
           
 CachingJaxbLoader<PersonData> getJaxbLoader()
           
 org.springframework.core.io.Resource getMappedXmlResource()
           
 Set<IPersonAttributes> getPeopleWithMultivaluedAttributes(Map<String,List<Object>> query)
           
 IPersonAttributes getPerson(String uid)
           
 Set<String> getPossibleUserAttributeNames()
           
 void setJaxbLoader(CachingJaxbLoader<PersonData> jaxbLoader)
          The CachingJaxbLoader to use to load the PersonData, if set the mappedXmlResource property is ignored.
 void setMappedXmlResource(org.springframework.core.io.Resource mappedXmlResource)
          The XML Resource to load the PersonData from, required if the jaxbLoader property is not set.
 
Methods inherited from class org.jasig.services.persondir.support.AbstractDefaultAttributePersonAttributeDao
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

XmlPersonAttributeDao

public XmlPersonAttributeDao()
Method Detail

getJaxbLoader

public CachingJaxbLoader<PersonData> getJaxbLoader()

setJaxbLoader

public void setJaxbLoader(CachingJaxbLoader<PersonData> jaxbLoader)
The CachingJaxbLoader to use to load the PersonData, if set the mappedXmlResource property is ignored.


getMappedXmlResource

public org.springframework.core.io.Resource getMappedXmlResource()

setMappedXmlResource

public void setMappedXmlResource(org.springframework.core.io.Resource mappedXmlResource)
The XML Resource to load the PersonData from, required if the jaxbLoader property is not set.


afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

getAvailableQueryAttributes

public Set<String> getAvailableQueryAttributes()
Specified by:
getAvailableQueryAttributes in interface IPersonAttributeDao

getPossibleUserAttributeNames

public Set<String> getPossibleUserAttributeNames()
Specified by:
getPossibleUserAttributeNames in interface IPersonAttributeDao

getPerson

public IPersonAttributes getPerson(String uid)
Specified by:
getPerson in interface IPersonAttributeDao
Overrides:
getPerson in class AbstractDefaultAttributePersonAttributeDao
See Also:
IPersonAttributeDao.getPerson(java.lang.String)

getPeopleWithMultivaluedAttributes

public Set<IPersonAttributes> getPeopleWithMultivaluedAttributes(Map<String,List<Object>> query)
Specified by:
getPeopleWithMultivaluedAttributes in interface IPersonAttributeDao


Copyright © 2012 Jasig. All Rights Reserved.