public interface UserDAO
Context,
UserServiceUser saveUser(User user, String password) throws DAOException
DAOExceptionorg.openmrs.api.UserService#saveUser(org.openmrs.User, java.lang.String)User getUser(Integer userId) throws DAOException
DAOExceptionUserService.getUser(Integer)User getUserByUsername(String username) throws DAOException
DAOExceptionUserService.getUserByUsername(java.lang.String)User getUserByEmail(String email)
org.openmrs.api.UserService#getUserByEmail(java.lang.String)boolean hasDuplicateUsername(String username, String systemId, Integer userId) throws DAOException
DAOExceptionUserService.hasDuplicateUsername(org.openmrs.User)void deleteUser(User user) throws DAOException
DAOExceptionUserService.purgeUser(org.openmrs.User)List<User> getAllUsers() throws DAOException
DAOExceptionUserService.getAllUsers()Role saveRole(Role role) throws DAOException
DAOExceptionUserService.saveRole(org.openmrs.Role)void deleteRole(Role role) throws DAOException
DAOExceptionUserService.purgeRole(org.openmrs.Role)Role getRole(String r) throws DAOException
DAOExceptionUserService.getRole(java.lang.String)List<Role> getAllRoles() throws DAOException
DAOExceptionUserService.getAllRoles()Privilege savePrivilege(Privilege privilege) throws DAOException
DAOExceptionUserService.savePrivilege(org.openmrs.Privilege)Privilege getPrivilege(String p) throws DAOException
DAOExceptionUserService.getPrivilege(java.lang.String)List<Privilege> getAllPrivileges() throws DAOException
DAOExceptionUserService.getAllPrivileges()void deletePrivilege(Privilege privilege) throws DAOException
DAOExceptionUserService.purgePrivilege(org.openmrs.Privilege)List<User> getUsersByName(String givenName, String familyName, boolean includeVoided)
void changePassword(User u, String pw) throws DAOException
DAOExceptionUserService.changePassword(org.openmrs.User, java.lang.String)void changePassword(String pw, String pw2) throws DAOException
DAOExceptionUserService.changePassword(java.lang.String, java.lang.String)void changeHashedPassword(User user, String hashedPassword, String salt) throws DAOException
DAOExceptionUserService.changeHashedPassword(User, String, String)void changeQuestionAnswer(User u, String question, String answer) throws DAOException
DAOExceptionUserService.changeQuestionAnswer(User, String, String)void changeQuestionAnswer(String pw, String q, String a) throws DAOException
boolean isSecretAnswer(User u, String answer) throws DAOException
DAOExceptionUserService.isSecretAnswer(org.openmrs.User, java.lang.String)Privilege getPrivilegeByUuid(String uuid)
uuid - LoginCredential getLoginCredential(User user)
user - LoginCredential getLoginCredentialByUuid(String uuid)
uuid - void updateLoginCredential(LoginCredential credential)
credential - LoginCredential getLoginCredentialByActivationKey(String activationKey)
activationKey - User's activation key for password resetInteger generateSystemId() throws DAOException
DAOExceptionUserService.generateSystemId()List<User> getUsers(String name, List<Role> roles, boolean includeRetired, Integer start, Integer length) throws DAOException
DAOExceptionUserService.getUsers(String, List, boolean, Integer, Integer)void setUserActivationKey(LoginCredential credentials)
UserService#setUserActivationKey(LoginCredential)String getLastLoginTime(User user)
UserService.getLastLoginTime(User)Copyright © 2024 OpenMRS Inc.. All rights reserved.