| Package | Description | 
|---|---|
| org.openmrs | 
 These classes represent the core domain objects for the OpenMRS project. 
 | 
| org.openmrs.api | 
 
The primary OpenMRS API interfaces. 
 | 
| org.openmrs.api.context | 
 This package describes the context framework through which
authentication is performed and services provided for the OpenMRS system. 
 | 
| org.openmrs.api.db | 
 
OpenMRS database layer interfaces. 
 | 
| org.openmrs.api.db.hibernate | 
 Resources for Hibernate ORM. 
 | 
| org.openmrs.api.impl | |
| org.openmrs.notification | |
| org.openmrs.notification.impl | |
| org.openmrs.web.controller.user | 
| Modifier and Type | Method and Description | 
|---|---|
Set<Role> | 
Role.getAllChildRoles()
Recursive (if need be) method to return all child roles of this role 
 | 
Set<Role> | 
Role.getAllParentRoles()
Recursive (if need be) method to return all parent roles of this role 
 | 
Set<Role> | 
User.getAllRoles()
Returns all roles attributed to this user by expanding the role list to include the parents
 of the assigned roles 
 | 
Set<Role> | 
Role.getChildRoles()  | 
Set<Role> | 
Role.getInheritedRoles()  | 
Set<Role> | 
User.getRoles()  | 
Set<Role> | 
Role.recurseOverChildren(Set<Role> total)
Returns the full set of child roles be looping over children. 
 | 
Set<Role> | 
Role.recurseOverParents(Set<Role> total)
Returns the full set of roles be looping over inherited roles. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
User | 
User.addRole(Role role)
Add the given Role to the list of roles for this User 
 | 
User | 
User.removeRole(Role role)
Remove the given Role from the list of roles for this User 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Set<Role> | 
Role.recurseOverChildren(Set<Role> total)
Returns the full set of child roles be looping over children. 
 | 
Set<Role> | 
Role.recurseOverParents(Set<Role> total)
Returns the full set of roles be looping over inherited roles. 
 | 
void | 
Role.setChildRoles(Set<Role> childRoles)  | 
void | 
Role.setInheritedRoles(Set<Role> inheritedRoles)  | 
void | 
User.setRoles(Set<Role> roles)  | 
| Modifier and Type | Method and Description | 
|---|---|
Role | 
UserService.getRole(String r)
Returns role object with given string role 
 | 
Role | 
UserService.getRoleByUuid(String uuid)
Get Role by its UUID 
 | 
Role | 
UserService.saveRole(Role role)
Save the given role in the database 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<Role> | 
UserService.getAllRoles()
Returns all roles currently possible for any User 
 | 
List<Role> | 
UserService.getInheritingRoles(Role role)
Deprecated. 
 
 | 
List<Role> | 
UserService.getRoles()
Deprecated. 
 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
AdministrationService.createRole(Role role)
Deprecated. 
 
 | 
void | 
AdministrationService.deleteRole(Role role)
Deprecated. 
 
 | 
List<Role> | 
UserService.getInheritingRoles(Role role)
Deprecated. 
 
 | 
List<User> | 
UserService.getUsersByRole(Role role)
Get users by role granted 
 | 
void | 
UserService.grantUserRole(User user,
             Role role)
Deprecated. 
 
 | 
void | 
UserService.purgeRole(Role role)
Complete remove a role from the database 
 | 
void | 
UserService.revokeUserRole(User user,
              Role role)
Deprecated. 
 
 | 
Role | 
UserService.saveRole(Role role)
Save the given role in the database 
 | 
void | 
AdministrationService.updateRole(Role role)
Deprecated. 
 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<User> | 
UserService.getAllUsers(List<Role> roles,
           boolean includeVoided)
Deprecated. 
 
 | 
Integer | 
UserService.getCountOfUsers(String name,
               List<Role> roles,
               boolean includeRetired)
Return the number of users with a matching name or system id and have at least one of the
 given roles assigned to them 
 | 
List<User> | 
UserService.getUsers(String nameSearch,
        List<Role> roles,
        boolean includeVoided)
Return a list of users sorted by personName (see  
PersonByNameComparator) if any part
 of the search matches first/last/system id and the user has one at least one of the given
 roles assigned to them | 
List<User> | 
UserService.getUsers(String name,
        List<Role> roles,
        boolean includeRetired,
        Integer start,
        Integer length)
Return a batch of users of a specific size sorted by personName (see
  
PersonByNameComparator) if any part of the search matches first/last/system id and
 the user has one at least one of the given roles assigned to them. | 
| Modifier and Type | Method and Description | 
|---|---|
Set<Role> | 
UserContext.getAllRoles()
Gets all the roles for the (un)authenticated user. 
 | 
Set<Role> | 
UserContext.getAllRoles(User user)
Gets all the roles for a user. 
 | 
static Set<Role> | 
Context.getAllRoles(User user)
Convenience method. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Role | 
UserDAO.getRole(String r)  | 
Role | 
UserDAO.getRoleByUuid(String uuid)
Auto generated method comment 
 | 
Role | 
UserDAO.saveRole(Role role)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<Role> | 
UserDAO.getAllRoles()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
UserDAO.deleteRole(Role role)  | 
Role | 
UserDAO.saveRole(Role role)  | 
| Modifier and Type | Method and Description | 
|---|---|
Integer | 
UserDAO.getCountOfUsers(String name,
               List<Role> roles,
               boolean includeRetired)  | 
List<User> | 
UserDAO.getUsers(String name,
        List<Role> roles,
        boolean includeRetired,
        Integer start,
        Integer length)  | 
| Modifier and Type | Method and Description | 
|---|---|
Role | 
HibernateUserDAO.getRole(String r)  | 
Role | 
HibernateUserDAO.getRoleByUuid(String uuid)  | 
Role | 
HibernateUserDAO.saveRole(Role role)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<Role> | 
HibernateUserDAO.getAllRoles()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
HibernateUserDAO.deleteRole(Role role)  | 
List<User> | 
HibernateUserDAO.getUsersByRole(Role role)  | 
Role | 
HibernateUserDAO.saveRole(Role role)  | 
| Modifier and Type | Method and Description | 
|---|---|
Integer | 
HibernateUserDAO.getCountOfUsers(String name,
               List<Role> roles,
               boolean includeRetired)  | 
List<User> | 
HibernateUserDAO.getUsers(String name,
        List<Role> roles,
        boolean includeRetired,
        Integer start,
        Integer length)  | 
| Modifier and Type | Method and Description | 
|---|---|
Role | 
UserServiceImpl.getRole(String r)  | 
Role | 
UserServiceImpl.getRoleByUuid(String uuid)  | 
Role | 
UserServiceImpl.saveRole(Role role)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<Role> | 
UserServiceImpl.getAllRoles()  | 
List<Role> | 
UserServiceImpl.getInheritingRoles(Role role)
Deprecated.   
 | 
List<Role> | 
UserServiceImpl.getRoles()
Deprecated.   
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
AdministrationServiceImpl.createRole(Role role)
Deprecated.   
 | 
void | 
AdministrationServiceImpl.deleteRole(Role role)
Deprecated.   
 | 
List<Role> | 
UserServiceImpl.getInheritingRoles(Role role)
Deprecated.   
 | 
List<User> | 
UserServiceImpl.getUsersByRole(Role role)  | 
void | 
UserServiceImpl.grantUserRole(User user,
             Role role)
Deprecated.   
 | 
void | 
UserServiceImpl.purgeRole(Role role)  | 
void | 
UserServiceImpl.revokeUserRole(User user,
              Role role)
Deprecated.   
 | 
Role | 
UserServiceImpl.saveRole(Role role)  | 
void | 
AdministrationServiceImpl.updateRole(Role role)
Deprecated.   
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<User> | 
UserServiceImpl.getAllUsers(List<Role> roles,
           boolean includeVoided)
Deprecated.   
 | 
Integer | 
UserServiceImpl.getCountOfUsers(String name,
               List<Role> roles,
               boolean includeRetired)  | 
List<User> | 
UserServiceImpl.getUsers(String nameSearch,
        List<Role> roles,
        boolean includeVoided)  | 
List<User> | 
UserServiceImpl.getUsers(String name,
        List<Role> roles,
        boolean includeRetired,
        Integer start,
        Integer length)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
MessageService.send(Message message,
    Role role)
Deprecated.  
 | 
void | 
MessageService.sendMessage(Message message,
           Role role)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
MessageServiceImpl.send(Message message,
    Role role)
Deprecated. 
 
 | 
void | 
MessageServiceImpl.sendMessage(Message message,
           Role role)
Sends a message to a group of users identifier by thir role. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
List<Role> | 
UserFormController.getRoles(org.springframework.web.context.request.WebRequest request)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
UserListController.displayUsers(org.springframework.ui.ModelMap model,
            String action,
            String name,
            Role role,
            Boolean includeDisabled)  | 
protected List<User> | 
UserListController.getUsers(String action,
        String name,
        Role role,
        Boolean includeDisabled)  | 
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.