Interface LdapRoleMapperConfiguration
-
- All Known Implementing Classes:
DefaultLdapRoleMapperConfiguration
public interface LdapRoleMapperConfiguration
- Since:
- 2.1
- Author:
- Olivier Lamy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddLdapMapping(String ldapGroup, List<String> roles)add mapping ldap group to redback rolesCollection<String>getLdapGroupMapping(String groupName)Returns the mapping for the given groupMap<String,Collection<String>>getLdapGroupMappings()voidremoveLdapMapping(String group)remove a mappingvoidsetLdapGroupMappings(Map<String,List<String>> mappings)voidupdateLdapMapping(String ldapGroup, List<String> roles)update an existing mapping
-
-
-
Method Detail
-
addLdapMapping
void addLdapMapping(String ldapGroup, List<String> roles) throws MappingException
add mapping ldap group to redback roles- Parameters:
roles- list of Role namesldapGroup- ldap group- Throws:
MappingException
-
updateLdapMapping
void updateLdapMapping(String ldapGroup, List<String> roles) throws MappingException
update an existing mapping- Parameters:
ldapGroup-roles-- Throws:
MappingException
-
removeLdapMapping
void removeLdapMapping(String group) throws MappingException
remove a mapping- Parameters:
group- ldap group- Throws:
MappingException
-
getLdapGroupMappings
Map<String,Collection<String>> getLdapGroupMappings() throws MappingException
- Returns:
- Map of corresponding LDAP group (key) and Redback roles (value)
- Throws:
MappingException
-
getLdapGroupMapping
Collection<String> getLdapGroupMapping(String groupName) throws MappingException
Returns the mapping for the given group- Parameters:
groupName- the group name- Returns:
- the list of roles
- Throws:
MappingException
-
setLdapGroupMappings
void setLdapGroupMappings(Map<String,List<String>> mappings) throws MappingException
- Throws:
MappingException
-
-