Interface UserRepository
public interface UserRepository
Interface describing the operations allowed on user in the LDAP directory.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteUser
(User usr) Deletes a user from active directory.findUserByEmail
(String email) Find a user by using his email address.void
updateUser
(User usr) Update user's personal details in the active directory.
-
Method Details
-
updateUser
Update user's personal details in the active directory.- Parameters:
usr
- User with updated details- Throws:
net.andresbustamante.yafoot.commons.exceptions.DirectoryException
-
deleteUser
Deletes a user from active directory.- Parameters:
usr
- User to delete- Throws:
net.andresbustamante.yafoot.commons.exceptions.DirectoryException
-
findUserByEmail
User findUserByEmail(String email) throws net.andresbustamante.yafoot.commons.exceptions.DirectoryException Find a user by using his email address.- Parameters:
email
- Email address to search- Returns:
- User found using this email. Null if no user is found.
- Throws:
net.andresbustamante.yafoot.commons.exceptions.DirectoryException
-