Interface LdapController
-
- All Known Implementing Classes:
DefaultLdapController
public interface LdapController
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
createUser(User user, DirContext context, boolean encodePasswordIfChanged)
Map<String,Collection<String>>
findUsersWithRoles(DirContext dirContext)
LdapUser
getUser(String key, DirContext context)
Collection<User>
getUsers(DirContext context)
List<User>
getUsersByQuery(LdapUserQuery query, DirContext context)
void
initialize()
void
removeUser(String principal, DirContext context)
void
updateUser(User user, DirContext context)
boolean
userExists(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
-
-