| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
HibernateUserDAO() |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory - public User saveUser(User user, String password)
saveUser in interface UserDAOUserService.saveUser(org.openmrs.User, java.lang.String)public User getUserByUsername(String username)
getUserByUsername in interface UserDAOUserService.getUserByUsername(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 UserDAOUserService.deleteUser(org.openmrs.User)public List<User> getUsersByRole(Role role) throws DAOException
DAOExceptionUserService.getUsersByRole(org.openmrs.Role)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 pw, String pw2) 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)
UserDAOgetPrivilegeByUuid in interface UserDAOUserDAO.getPrivilegeByUuid(java.lang.String)public Role getRoleByUuid(String uuid)
UserDAOgetRoleByUuid in interface UserDAOUserDAO.getRoleByUuid(java.lang.String)public User getUserByUuid(String uuid)
UserDAOgetUserByUuid 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)
UserDAOgetLoginCredentialByUuid in interface UserDAOUserDAO.getLoginCredential(org.openmrs.User)public void updateLoginCredential(LoginCredential credential)
UserDAOupdateLoginCredential in interface UserDAOorg.openmrs.api.db.UserDAO#updateLoginCredential(org.openmrs.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)Copyright © 2018 OpenMRS LLC.. All Rights Reserved.