Interface UserRepository


public interface UserRepository
Interface describing the operations allowed on user in the LDAP directory.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deletes a user from active directory.
    Find a user by using his email address.
    void
    Update user's personal details in the active directory.
  • Method Details

    • updateUser

      void updateUser(User usr) throws net.andresbustamante.yafoot.commons.exceptions.DirectoryException
      Update user's personal details in the active directory.
      Parameters:
      usr - User with updated details
      Throws:
      net.andresbustamante.yafoot.commons.exceptions.DirectoryException
    • deleteUser

      void deleteUser(User usr) throws net.andresbustamante.yafoot.commons.exceptions.DirectoryException
      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