use of org.apereo.services.persondir.support.GrouperPersonAttributeDao in project cas by apereo.
the class CasPersonDirectoryConfiguration method grouperAttributeRepositories.
@ConditionalOnMissingBean(name = "grouperAttributeRepositories")
@Bean
@RefreshScope
public List<IPersonAttributeDao> grouperAttributeRepositories() {
final List<IPersonAttributeDao> list = new ArrayList<>();
final PrincipalAttributesProperties.Grouper gp = casProperties.getAuthn().getAttributeRepository().getGrouper();
if (gp.isEnabled()) {
final GrouperPersonAttributeDao dao = new GrouperPersonAttributeDao();
dao.setOrder(gp.getOrder());
LOGGER.debug("Configured Grouper attribute source");
list.add(dao);
}
return list;
}
Aggregations