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 |
Modifier and Type | Method and Description |
---|---|
Set<Role> |
Role.getAllChildRoles()
Recursive (if need be) method to return all child roles of this role
Should only return child roles
|
Set<Role> |
Role.getAllParentRoles()
Recursive (if need be) method to return all parent roles of this role
Should only return parent roles
|
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
|
Modifier and Type | Method and Description |
---|---|
List<User> |
UserService.getUsersByRole(Role role)
Get users by role granted
|
void |
UserService.purgeRole(Role role)
Complete remove a role from the database
|
Role |
UserService.saveRole(Role role)
Save the given role in the database
|
Modifier and Type | Method and Description |
---|---|
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) |
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() |
Modifier and Type | Method and Description |
---|---|
List<User> |
UserServiceImpl.getUsersByRole(Role role) |
void |
UserServiceImpl.purgeRole(Role role) |
Role |
UserServiceImpl.saveRole(Role role) |
Modifier and Type | Method and Description |
---|---|
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.sendMessage(Message message,
Role role) |
Modifier and Type | Method and Description |
---|---|
void |
MessageServiceImpl.sendMessage(Message message,
Role role)
Sends a message to a group of users identifier by their role.
|
Copyright © 2024 OpenMRS Inc.. All rights reserved.