
br.com.jhonsapp.finaluser.persistence.PersonUserDAO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of final-user Show documentation
Show all versions of final-user Show documentation
A bunch of classes that help developers building login and authentication.
The newest version!
package br.com.jhonsapp.finaluser.persistence;
import javax.ejb.Local;
import br.com.jhonsapp.finaluser.domain.PersonUser;
/**
* EJB service that defines the PersonUser data access object. This service was
* designed to be used in login implementations.
*
* @see PersonUser
* @see UserDAO
*
* @author Jhonathan Camacho
*/
@Local
public interface PersonUserDAO extends UserDAO{
/**
* Find a persisted user by his e-mail.
*
* @param email
* the user's e-mail
* @return the User that have the e-mail passed by parameter or null
* otherwise.
*/
public T findByEmail(String email);
public boolean canLogin(String email, String password);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy