better logging

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1451780 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-03-01 23:44:13 +00:00
parent 7a54ae0aaf
commit a8f651e8a6

View File

@ -41,7 +41,7 @@
* @author Olivier Lamy * @author Olivier Lamy
* @since 2.1 * @since 2.1
*/ */
@Service( "ldapRoleMapperConfiguration#default" ) @Service("ldapRoleMapperConfiguration#default")
public class DefaultLdapRoleMapperConfiguration public class DefaultLdapRoleMapperConfiguration
implements LdapRoleMapperConfiguration implements LdapRoleMapperConfiguration
{ {
@ -51,14 +51,14 @@ public class DefaultLdapRoleMapperConfiguration
private Map<String, List<String>> ldapMappings = new HashMap<String, List<String>>(); private Map<String, List<String>> ldapMappings = new HashMap<String, List<String>>();
@Inject @Inject
@Named( value = "userConfiguration#default" ) @Named(value = "userConfiguration#default")
private UserConfiguration userConf; private UserConfiguration userConf;
public void addLdapMapping( String ldapGroup, List<String> roles ) public void addLdapMapping( String ldapGroup, List<String> roles )
throws MappingException throws MappingException
{ {
ldapMappings.put( ldapGroup, roles ); ldapMappings.put( ldapGroup, roles );
log.warn( "addLdapMapping implemented but only in memory save" ); log.warn( "addLdapMapping implemented but only in memory save: group '{}' roles '{}'", ldapGroup, roles );
} }
public void removeLdapMapping( String group ) public void removeLdapMapping( String group )
@ -70,7 +70,7 @@ public void updateLdapMapping( String ldapGroup, List<String> roles )
throws MappingException throws MappingException
{ {
ldapMappings.put( ldapGroup, roles ); ldapMappings.put( ldapGroup, roles );
log.warn( "updateLdapMapping implemented but only in memory save" ); log.warn( "updateLdapMapping implemented but only in memory save: group '{}' roles '{}'", ldapGroup, roles );
} }
public void setLdapGroupMappings( Map<String, List<String>> mappings ) public void setLdapGroupMappings( Map<String, List<String>> mappings )