com.formkiq.server.dao.UserDao Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of formkiq-server Show documentation
Show all versions of formkiq-server Show documentation
Server-side integration for the FormKiQ ios application
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);
}