|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserDAO
Database methods for the UserService
Context
,
UserService
Method Summary | |
---|---|
void |
changeHashedPassword(User user,
java.lang.String hashedPassword,
java.lang.String salt)
|
void |
changePassword(java.lang.String pw,
java.lang.String pw2)
|
void |
changePassword(User u,
java.lang.String pw)
|
void |
changeQuestionAnswer(java.lang.String pw,
java.lang.String q,
java.lang.String a)
|
void |
changeQuestionAnswer(User u,
java.lang.String question,
java.lang.String answer)
|
void |
deletePrivilege(Privilege privilege)
|
void |
deleteRole(Role role)
|
void |
deleteUser(User user)
|
java.lang.Integer |
generateSystemId()
|
java.util.List<Privilege> |
getAllPrivileges()
|
java.util.List<Role> |
getAllRoles()
|
java.util.List<User> |
getAllUsers()
|
LoginCredential |
getLoginCredential(User user)
|
LoginCredential |
getLoginCredentialByUuid(java.lang.String uuid)
Auto generated method comment |
Privilege |
getPrivilege(java.lang.String p)
|
Privilege |
getPrivilegeByUuid(java.lang.String uuid)
Auto generated method comment |
Role |
getRole(java.lang.String r)
|
Role |
getRoleByUuid(java.lang.String uuid)
Auto generated method comment |
User |
getUser(java.lang.Integer userId)
|
User |
getUserByUsername(java.lang.String username)
|
User |
getUserByUuid(java.lang.String uuid)
Auto generated method comment |
java.util.List<User> |
getUsers(java.lang.String nameSearch,
java.util.List<Role> roles,
boolean includeVoided)
|
java.util.List<User> |
getUsersByName(java.lang.String givenName,
java.lang.String familyName,
boolean includeVoided)
|
java.util.List<User> |
getUsersByPerson(Person person,
boolean includeRetired)
|
boolean |
hasDuplicateUsername(java.lang.String username,
java.lang.String systemId,
java.lang.Integer userId)
|
boolean |
isSecretAnswer(User u,
java.lang.String answer)
|
Privilege |
savePrivilege(Privilege privilege)
|
Role |
saveRole(Role role)
|
User |
saveUser(User user,
java.lang.String password)
|
void |
updateLoginCredential(LoginCredential credential)
Updates a user's login credentials. |
Method Detail |
---|
User saveUser(User user, java.lang.String password) throws DAOException
DAOException
UserService.saveUser(org.openmrs.User, java.lang.String)
User getUser(java.lang.Integer userId) throws DAOException
DAOException
UserService.getUser(Integer)
User getUserByUsername(java.lang.String username) throws DAOException
DAOException
UserService.getUserByUsername(java.lang.String)
boolean hasDuplicateUsername(java.lang.String username, java.lang.String systemId, java.lang.Integer userId) throws DAOException
DAOException
UserService.hasDuplicateUsername(org.openmrs.User)
void deleteUser(User user) throws DAOException
DAOException
UserService.purgeUser(org.openmrs.User)
java.util.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(java.lang.String r) throws DAOException
DAOException
UserService.getRole(java.lang.String)
java.util.List<Role> getAllRoles() throws DAOException
DAOException
UserService.getAllRoles()
Privilege savePrivilege(Privilege privilege) throws DAOException
DAOException
UserService.savePrivilege(org.openmrs.Privilege)
Privilege getPrivilege(java.lang.String p) throws DAOException
DAOException
UserService.getPrivilege(java.lang.String)
java.util.List<Privilege> getAllPrivileges() throws DAOException
DAOException
UserService.getAllPrivileges()
void deletePrivilege(Privilege privilege) throws DAOException
DAOException
UserService.purgePrivilege(org.openmrs.Privilege)
java.util.List<User> getUsers(java.lang.String nameSearch, java.util.List<Role> roles, boolean includeVoided) throws DAOException
DAOException
UserService.getUsers(java.lang.String, java.util.List, boolean)
java.util.List<User> getUsersByName(java.lang.String givenName, java.lang.String familyName, boolean includeVoided)
UserService.getUsersByName(java.lang.String, java.lang.String, boolean)
void changePassword(User u, java.lang.String pw) throws DAOException
DAOException
UserService.changePassword(org.openmrs.User, java.lang.String)
void changePassword(java.lang.String pw, java.lang.String pw2) throws DAOException
DAOException
UserService.changePassword(java.lang.String, java.lang.String)
void changeHashedPassword(User user, java.lang.String hashedPassword, java.lang.String salt) throws DAOException
DAOException
UserService.changeHashedPassword(User, String, String)
void changeQuestionAnswer(User u, java.lang.String question, java.lang.String answer) throws DAOException
DAOException
UserService.changeQuestionAnswer(User, String, String)
void changeQuestionAnswer(java.lang.String pw, java.lang.String q, java.lang.String a) throws DAOException
DAOException
UserService.changeQuestionAnswer(java.lang.String, java.lang.String,
java.lang.String)
boolean isSecretAnswer(User u, java.lang.String answer) throws DAOException
DAOException
UserService.isSecretAnswer(org.openmrs.User, java.lang.String)
Privilege getPrivilegeByUuid(java.lang.String uuid)
uuid
-
Role getRoleByUuid(java.lang.String uuid)
uuid
-
User getUserByUuid(java.lang.String uuid)
uuid
-
LoginCredential getLoginCredential(User user)
user
-
LoginCredential getLoginCredentialByUuid(java.lang.String uuid)
uuid
-
void updateLoginCredential(LoginCredential credential)
credential
- java.lang.Integer generateSystemId() throws DAOException
DAOException
UserService.generateSystemId()
java.util.List<User> getUsersByPerson(Person person, boolean includeRetired)
UserService.getUsersByPerson(Person, boolean)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |