Interface LdapController
-
- All Known Implementing Classes:
DefaultLdapController
public interface LdapController
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateUser(User user, DirContext context, boolean encodePasswordIfChanged)Map<String,Collection<String>>findUsersWithRoles(DirContext dirContext)LdapUsergetUser(String key, DirContext context)Collection<User>getUsers(DirContext context)List<User>getUsersByQuery(LdapUserQuery query, DirContext context)voidinitialize()voidremoveUser(String principal, DirContext context)voidupdateUser(User user, DirContext context)booleanuserExists(String key, DirContext context)
-
-
-
Method Detail
-
removeUser
void removeUser(String principal, DirContext context) throws LdapControllerException
- Throws:
LdapControllerException
-
updateUser
void updateUser(User user, DirContext context) throws LdapControllerException, MappingException
-
userExists
boolean userExists(String key, DirContext context) throws LdapControllerException
- Throws:
LdapControllerException
-
getUsers
Collection<User> getUsers(DirContext context) throws LdapControllerException, MappingException
-
createUser
void createUser(User user, DirContext context, boolean encodePasswordIfChanged) throws LdapControllerException, MappingException
-
getUser
LdapUser getUser(String key, DirContext context) throws LdapControllerException, MappingException
-
getUsersByQuery
List<User> getUsersByQuery(LdapUserQuery query, DirContext context) throws LdapControllerException, MappingException
-
initialize
void initialize()
-
findUsersWithRoles
Map<String,Collection<String>> findUsersWithRoles(DirContext dirContext) throws LdapControllerException
- Parameters:
dirContext-- Returns:
- Map key == username and value == list of role names
- Throws:
LdapControllerException
-
-