core/cas-server-core-configuration/src/main/java/org/apereo/cas/configuration/support/Beans.java
/**
     * New attribute repository person attribute dao.
     *
     * @param p the properties
     * @return the person attribute dao
     */
New attribute repository person attribute dao.
@param p the properties
@return the person attribute dao
New attribute repository person attribute dao . @param p the properties @return the person attribute dao
public static IPersonAttributeDao newStubAttributeRepository(final PrincipalAttributesProperties p) {
        try {
            final NamedStubPersonAttributeDao dao = new NamedStubPersonAttributeDao();
            final Map pdirMap = new HashMap<>();
            p.getAttributes().entrySet().forEach(entry -> {
                final String[] vals = org.springframework.util.StringUtils.commaDelimitedListToStringArray(entry.getValue());
                pdirMap.put(entry.getKey(), Lists.newArrayList(vals));
            });
            dao.setBackingMap(pdirMap);
            return dao;
        } catch (final Exception e) {
            throw Throwables.propagate(e);
        }
    }
public static IPersonAttributeDao newStubAttributeRepository ( final PrincipalAttributesProperties p ) { try { final NamedStubPersonAttributeDao dao = new NamedStubPersonAttributeDao ( ) ; final Map pdirMap = new HashMap < > ( ) ; p . getAttributes ( ) . entrySet ( ) . forEach ( entry -> { final String [ ] vals = org . springframework . util . StringUtils . commaDelimitedListToStringArray ( entry . getValue ( ) ) ; pdirMap . put ( entry . getKey ( ) , Lists . newArrayList ( vals ) ) ; } ) ; dao . setBackingMap ( pdirMap ) ; return dao ; } catch ( final Exception e ) { throw Throwables . propagate ( e ) ; } }
New attribute repository person attribute dao.
New attribute repository person attribute dao .