public interface UserDAO
Context
,
UserService
User saveUser(User user, String password) throws DAOException
DAOException
org.openmrs.api.UserService#saveUser(org.openmrs.User, java.lang.String)
User getUser(Integer userId) throws DAOException
DAOException
UserService.getUser(Integer)
User getUserByUsername(String username) throws DAOException
DAOException
UserService.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
DAOException
UserService.hasDuplicateUsername(org.openmrs.User)
void deleteUser(User user) throws DAOException
DAOException
UserService.purgeUser(org.openmrs.User)
List<User> getAllUsers() throws DAOException
DAOException
UserService.getAllUsers()
Role saveRole(Role role) throws DAOException
DAOException
UserService.saveRole(org.openmrs.Role)
void deleteRole(Role role) throws DAOException
DAOException
UserService.purgeRole(org.openmrs.Role)
Role getRole(String r) throws DAOException
DAOException
UserService.getRole(java.lang.String)
List<Role> getAllRoles() throws DAOException
DAOException
UserService.getAllRoles()
Privilege savePrivilege(Privilege privilege) throws DAOException
DAOException
UserService.savePrivilege(org.openmrs.Privilege)
Privilege getPrivilege(String p) throws DAOException
DAOException
UserService.getPrivilege(java.lang.String)
List<Privilege> getAllPrivileges() throws DAOException
DAOException
UserService.getAllPrivileges()
void deletePrivilege(Privilege privilege) throws DAOException
DAOException
UserService.purgePrivilege(org.openmrs.Privilege)
List<User> getUsersByName(String givenName, String familyName, boolean includeVoided)
void changePassword(User u, String pw) throws DAOException
DAOException
UserService.changePassword(org.openmrs.User, java.lang.String)
void changePassword(String pw, String pw2) throws DAOException
DAOException
UserService.changePassword(java.lang.String, java.lang.String)
void changeHashedPassword(User user, String hashedPassword, String salt) throws DAOException
DAOException
UserService.changeHashedPassword(User, String, String)
void changeQuestionAnswer(User u, String question, String answer) throws DAOException
DAOException
UserService.changeQuestionAnswer(User, String, String)
void changeQuestionAnswer(String pw, String q, String a) throws DAOException
boolean isSecretAnswer(User u, String answer) throws DAOException
DAOException
UserService.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
DAOException
UserService.generateSystemId()
List<User> getUsers(String name, List<Role> roles, boolean includeRetired, Integer start, Integer length) throws DAOException
DAOException
UserService.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.