add more caching for ldap roles

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1437804 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-01-23 23:51:18 +00:00
parent f11ba97b41
commit 54c5daeba3
1 changed files with 3 additions and 1 deletions

View File

@ -364,9 +364,11 @@ public class LdapRbacManager
{
for ( String roleName : roleNames )
{
Role role = getRole( roleName );
Role role = this.rbacImpl.getRole( roleName );
role = ( role == null ) ? new RoleImpl( roleName ) : role;
if ( role != null )
{
rolesCache.put( role.getName(), role );
roles.add( role );
}
}