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

com.formkiq.server.dao.UserDao Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
package com.formkiq.server.dao;

import com.formkiq.server.domain.User;
import com.formkiq.server.domain.UserClient;
import com.formkiq.server.domain.type.UserDTO;
import com.formkiq.server.domain.type.UserListDTO;

/**
 * UserDao.
 *
 */
public interface UserDao extends AbstractDao {

    /** Additional Information Key. */
    String CLIENT_NAME = "clientName";

	/**
	 * Find User by Email.
	 * @param email String
	 * @return User
	 */
	User findUser(String email);

	/**
	 * Finds User Client.
	 * @param user User
	 * @param client String
	 * @return UserClient
	 */
    UserClient findUserClient(User user, String client);

	/**
	 * Find User DTO.
	 * @param email String
	 * @return UserDTO
	 */
    UserDTO findUserDTO(String email);

	/**
	 * Find Users.
	 * @return List<UserDetails>
	 */
	UserListDTO findUsers();

	/**
	 * Save User.
	 * @param user User
	 * @return User
	 */
	User saveUser(User user);

	/**
	 * Save User Client.
	 * @param userClient UserClient
	 * @return UserClient
	 */
	UserClient saveUserClient(UserClient userClient);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy