| Constructor and Description |
|---|
HibernateUserDAO() |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory - public User getUserByUsername(String username)
getUserByUsername in interface UserDAOUserService.getUserByUsername(java.lang.String)public User getUserByEmail(String email)
getUserByEmail in interface UserDAOorg.openmrs.api.UserService#getUserByEmail(java.lang.String)public LoginCredential getLoginCredentialByActivationKey(String activationKey)
UserDAOgetLoginCredentialByActivationKey in interface UserDAOactivationKey - User's activation key for password resetUserDAO.getLoginCredentialByActivationKey(java.lang.String)public boolean hasDuplicateUsername(String username, String systemId, Integer userId)
hasDuplicateUsername in interface UserDAOUserService.hasDuplicateUsername(org.openmrs.User)public User getUser(Integer userId)
getUser in interface UserDAOUserService.getUser(java.lang.Integer)public List<User> getAllUsers() throws DAOException
getAllUsers in interface UserDAODAOExceptionUserService.getAllUsers()public void deleteUser(User user)
deleteUser in interface UserDAOorg.openmrs.api.UserService#deleteUser(org.openmrs.User)public List<Privilege> getAllPrivileges() throws DAOException
getAllPrivileges in interface UserDAODAOExceptionUserService.getAllPrivileges()public Privilege getPrivilege(String p) throws DAOException
getPrivilege in interface UserDAODAOExceptionUserService.getPrivilege(String)public void deletePrivilege(Privilege privilege) throws DAOException
deletePrivilege in interface UserDAODAOExceptionUserDAO.deletePrivilege(org.openmrs.Privilege)public Privilege savePrivilege(Privilege privilege) throws DAOException
savePrivilege in interface UserDAODAOExceptionUserDAO.savePrivilege(org.openmrs.Privilege)public void deleteRole(Role role) throws DAOException
deleteRole in interface UserDAODAOExceptionUserService.purgeRole(org.openmrs.Role)public Role saveRole(Role role) throws DAOException
saveRole in interface UserDAODAOExceptionUserService.saveRole(org.openmrs.Role)public List<Role> getAllRoles() throws DAOException
getAllRoles in interface UserDAODAOExceptionUserService.getAllRoles()public Role getRole(String r) throws DAOException
getRole in interface UserDAODAOExceptionUserService.getRole(String)public void changePassword(User u, String pw) throws DAOException
changePassword in interface UserDAODAOExceptionUserDAO.changePassword(org.openmrs.User, java.lang.String)public void changeHashedPassword(User user, String hashedPassword, String salt) throws DAOException
changeHashedPassword in interface UserDAODAOExceptionUserDAO.changeHashedPassword(User, String, String)public void changePassword(String oldPassword, String newPassword) throws DAOException
changePassword in interface UserDAODAOExceptionUserService.changePassword(java.lang.String, java.lang.String)public void changeQuestionAnswer(String pw, String question, String answer) throws DAOException
changeQuestionAnswer in interface UserDAODAOExceptionUserService.changeQuestionAnswer(java.lang.String, java.lang.String,
java.lang.String)public void changeQuestionAnswer(User u, String question, String answer) throws DAOException
changeQuestionAnswer in interface UserDAODAOExceptionUserService.changeQuestionAnswer(User, String, String)public boolean isSecretAnswer(User u, String answer) throws DAOException
isSecretAnswer in interface UserDAODAOExceptionUserService.isSecretAnswer(User, java.lang.String)public List<User> getUsers(String name, List<Role> roles, boolean includeRetired, Integer start, Integer length)
getUsers in interface UserDAOUserDAO.getUsers(String, List, boolean, Integer, Integer)public Integer generateSystemId()
generateSystemId in interface UserDAOUserService.generateSystemId()public List<User> getUsersByName(String givenName, String familyName, boolean includeRetired)
getUsersByName in interface UserDAOUserService.getUsersByName(java.lang.String, java.lang.String, boolean)public Privilege getPrivilegeByUuid(String uuid)
getPrivilegeByUuid in interface UserDAOUserDAO.getPrivilegeByUuid(java.lang.String)public Role getRoleByUuid(String uuid)
getRoleByUuid in interface UserDAOUserDAO.getRoleByUuid(java.lang.String)public User getUserByUuid(String uuid)
getUserByUuid in interface UserDAOUserDAO.getUserByUuid(java.lang.String)public LoginCredential getLoginCredential(User user)
getLoginCredential in interface UserDAOUserDAO.getLoginCredential(org.openmrs.User)public LoginCredential getLoginCredentialByUuid(String uuid)
getLoginCredentialByUuid in interface UserDAOUserDAO.getLoginCredential(org.openmrs.User)public void updateLoginCredential(LoginCredential credential)
UserDAOupdateLoginCredential in interface UserDAOUserDAO.updateLoginCredential(LoginCredential)public List<User> getUsersByPerson(Person person, boolean includeRetired)
getUsersByPerson in interface UserDAOUserDAO.getUsersByPerson(org.openmrs.Person, boolean)public Integer getCountOfUsers(String name, List<Role> roles, boolean includeRetired)
getCountOfUsers in interface UserDAOUserDAO.getCountOfUsers(String, List, boolean)public void setUserActivationKey(LoginCredential credentials)
setUserActivationKey in interface UserDAOorg.openmrs.api.db.UserDAO#createActivationKey(org.openmrs.User)public String getLastLoginTime(User user)
getLastLoginTime in interface UserDAOUserDAO.getLastLoginTime(org.openmrs.User)Copyright © 2024 OpenMRS Inc.. All rights reserved.