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;
}
Aggregations