All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.jhonsapp.finaluser.persistence.PersonUserDAO Maven / Gradle / Ivy

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