]> source.dussan.org Git - archiva.git/commitdiff
change signatures to ease ui
authorOlivier Lamy <olamy@apache.org>
Wed, 30 Jan 2013 17:42:14 +0000 (17:42 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 30 Jan 2013 17:42:14 +0000 (17:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1440547 13f79535-47bb-0310-9956-ffa450edef68

redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/role/DefaultLdapRoleMapperConfiguration.java
redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/role/LdapRoleMapperConfiguration.java

index 909c5578fc30e6f1bc4d133b4027140d5d0356ce..1ad54af4597bd21360ad5a64425bd4f6724f53c6 100644 (file)
@@ -31,13 +31,14 @@ import org.springframework.stereotype.Service;
 import javax.inject.Inject;
 import javax.inject.Named;
 import java.util.Collection;
+import java.util.List;
 import java.util.Map;
 
 /**
  * @author Olivier Lamy
  * @since 2.1
  */
-@Service( "ldapRoleMapperConfiguration#default" )
+@Service("ldapRoleMapperConfiguration#default")
 public class DefaultLdapRoleMapperConfiguration
     implements LdapRoleMapperConfiguration
 {
@@ -45,15 +46,17 @@ public class DefaultLdapRoleMapperConfiguration
     private Logger log = LoggerFactory.getLogger( getClass() );
 
     @Inject
-    @Named( value = "userConfiguration#default" )
+    @Named(value = "userConfiguration#default")
     private UserConfiguration userConf;
 
-    public void addLdapMapping( String role, String ldapGroup )
+
+    public void addLdapMapping( String ldapGroup, List<String> roles )
+        throws MappingException
     {
         log.warn( "addLdapMapping not implemented" );
     }
 
-    public void removeLdapMapping( String role )
+    public void removeLdapMapping( String group )
     {
         log.warn( "removeLdapMapping not implemented" );
     }
index baab69364916658421b17e44a5aaba037f0d2522..d3fc17d5831841d549053d81a2f1b851fbb8310d 100644 (file)
@@ -21,6 +21,7 @@ package org.apache.archiva.redback.common.ldap.role;
 import org.apache.archiva.redback.common.ldap.MappingException;
 
 import java.util.Collection;
+import java.util.List;
 import java.util.Map;
 
 /**
@@ -30,20 +31,20 @@ import java.util.Map;
 public interface LdapRoleMapperConfiguration
 {
     /**
-     * add mapping redback role <-> ldap group
+     * add mapping ldap group <-> redback roles
      *
-     * @param role      redback role
+     * @param roles     list of Role names
      * @param ldapGroup ldap group
      */
-    void addLdapMapping( String role, String ldapGroup )
+    void addLdapMapping( String ldapGroup, List<String> roles )
         throws MappingException;
 
     /**
      * remove a mapping
      *
-     * @param role redback role
+     * @param group ldap group
      */
-    void removeLdapMapping( String role )
+    void removeLdapMapping( String group )
         throws MappingException;
 
     /**