@ Api public void setNamedRoles ( Map < String , List < NamedRoleInfo > > namedRoles ) { this . namedRoles = namedRoles ; ldapRoleMapping = new HashMap < String , Set < String > > ( ) ; for ( String roleName : namedRoles . keySet ( ) ) { if ( ! ldapRoleMapping . containsKey ( roleName ) ) { ldapRoleMapping . put ( roleName , new HashSet < String > ( ) ) ; } for ( NamedRoleInfo role : namedRoles . get ( roleName ) ) { ldapRoleMapping . get ( roleName ) . add ( role . getName ( ) ) ; } } }
Set the named roles which may be defined .