Search in sources :

Example 1 with AdditionalDescriptorsPersonAttributeDao

use of org.apereo.services.persondir.support.AdditionalDescriptorsPersonAttributeDao in project uPortal by Jasig.

the class PersonDirectoryConfiguration method getRequestAttributesDao.

/**
 * The person attributes DAO that returns the attributes from the request. Uses a
 * currentUserProvider since the username may not always be provided by the request object.
 */
@Bean(name = "requestAttributesDao")
@Qualifier("uPortalInternal")
public IPersonAttributeDao getRequestAttributesDao() {
    final AdditionalDescriptorsPersonAttributeDao rslt = new AdditionalDescriptorsPersonAttributeDao();
    rslt.setDescriptors(getRequestAdditionalDescriptors());
    rslt.setUsernameAttributeProvider(getUsernameAttributeProvider());
    rslt.setCurrentUserProvider(getCurrentUserProvider());
    return rslt;
}
Also used : AdditionalDescriptorsPersonAttributeDao(org.apereo.services.persondir.support.AdditionalDescriptorsPersonAttributeDao) Qualifier(org.springframework.beans.factory.annotation.Qualifier) Bean(org.springframework.context.annotation.Bean)

Aggregations

AdditionalDescriptorsPersonAttributeDao (org.apereo.services.persondir.support.AdditionalDescriptorsPersonAttributeDao)1 Qualifier (org.springframework.beans.factory.annotation.Qualifier)1 Bean (org.springframework.context.annotation.Bean)1