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
{
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" );
}
import org.apache.archiva.redback.common.ldap.MappingException;
import java.util.Collection;
+import java.util.List;
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;
/**