Package | Description |
---|---|
org.openmrs |
These classes represent the core domain objects for the OpenMRS project.
|
org.openmrs.aop |
This package contains the classes associated with Aspect Oriented Programming (AOP).
|
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.handler | |
org.openmrs.api.impl | |
org.openmrs.notification | |
org.openmrs.notification.db | |
org.openmrs.notification.db.hibernate | |
org.openmrs.notification.impl | |
org.openmrs.propertyeditor | |
org.openmrs.util |
Shared utilities for OpenMRS classes
|
Modifier and Type | Field and Description |
---|---|
protected User |
BaseOpenmrsData.creator |
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.getChangedBy() |
User |
OpenmrsMetadata.getChangedBy()
Deprecated.
As of version 2.2 OpenmrsMetadata is immutable by default, it's up to the
subclasses to make themselves mutable by extending BaseChangeableOpenmrsMetadata,
this method will be removed in 2.3
|
User |
OpenmrsData.getChangedBy()
Deprecated.
As of version 2.2, OpenmrsData is immutable by default, it's up to the subclasses
to make themselves mutable by extending BaseChangeableOpenmrsData, this method
will be removed in 2.3
|
User |
GlobalProperty.getChangedBy() |
User |
FormResource.getChangedBy() |
User |
DrugReferenceMap.getChangedBy() |
User |
ConceptSet.getChangedBy()
Not currently used.
|
User |
ConceptProposal.getChangedBy() |
User |
ConceptNameTag.getChangedBy() |
User |
ConceptName.getChangedBy() |
User |
ConceptDescription.getChangedBy() |
User |
ConceptAnswer.getChangedBy()
Not currently used.
|
User |
Concept.getChangedBy() |
User |
Changeable.getChangedBy() |
User |
BaseOpenmrsMetadata.getChangedBy()
Deprecated.
as of version 2.2
|
User |
BaseOpenmrsData.getChangedBy()
Deprecated.
as of version 2.2
|
User |
BaseConceptMap.getChangedBy() |
User |
User.getCreator() |
User |
FieldAnswer.getCreator() |
User |
DrugReferenceMap.getCreator() |
User |
Creatable.getCreator() |
User |
ConceptSet.getCreator() |
User |
ConceptProposal.getCreator() |
User |
ConceptNameTag.getCreator() |
User |
ConceptName.getCreator() |
User |
ConceptDescription.getCreator() |
User |
ConceptAnswer.getCreator() |
User |
Concept.getCreator() |
User |
BaseOpenmrsMetadata.getCreator() |
User |
BaseOpenmrsData.getCreator() |
User |
BaseConceptMap.getCreator() |
User |
Person.getPersonChangedBy() |
User |
Person.getPersonCreator() |
User |
Person.getPersonVoidedBy() |
User |
User.getRetiredBy() |
User |
Retireable.getRetiredBy() |
User |
Concept.getRetiredBy() |
User |
BaseOpenmrsMetadata.getRetiredBy() |
User |
Voidable.getVoidedBy() |
User |
ConceptNameTag.getVoidedBy()
Returns the User who voided this ConceptName.
|
User |
ConceptName.getVoidedBy()
Returns the User who voided this ConceptName.
|
User |
BaseOpenmrsData.getVoidedBy() |
User |
User.hydrate(String userId) |
User |
User.removeRole(Role role)
Remove the given Role from the list of roles for this User
|
Modifier and Type | Method and Description |
---|---|
List<User> |
User.findPossibleValues(String searchText)
Deprecated.
|
List<User> |
User.getPossibleValues()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
UserSessionListener.loggedInOrOut(User user,
UserSessionListener.Event event,
UserSessionListener.Status status) |
void |
PrivilegeListener.privilegeChecked(User user,
String privilege,
boolean hasPrivilege)
Called whenever a privilege is checked.
|
void |
User.setChangedBy(User changedBy) |
void |
OpenmrsMetadata.setChangedBy(User changedBy)
Deprecated.
As of version 2.2 OpenmrsMetadata is immutable by default, it's up to the
subclasses to make themselves mutable by extending BaseChangeableOpenmrsMetadata,
this method will be removed in 2.3
|
void |
OpenmrsData.setChangedBy(User changedBy)
Deprecated.
As of version 2.2, OpenmrsData is immutable by default, it's up to the subclasses
to make themselves mutable by extending BaseChangeableOpenmrsData, this method
will be removed in 2.3
|
void |
GlobalProperty.setChangedBy(User changedBy) |
void |
FormResource.setChangedBy(User changedBy) |
void |
DrugReferenceMap.setChangedBy(User changedBy) |
void |
ConceptSet.setChangedBy(User changedBy)
Not currently used.
|
void |
ConceptProposal.setChangedBy(User changedBy) |
void |
ConceptNameTag.setChangedBy(User changedBy) |
void |
ConceptName.setChangedBy(User changedBy) |
void |
ConceptDescription.setChangedBy(User changedBy) |
void |
ConceptAnswer.setChangedBy(User changedBy)
Not currently used.
|
void |
Concept.setChangedBy(User changedBy) |
void |
Changeable.setChangedBy(User changedBy) |
void |
BaseOpenmrsMetadata.setChangedBy(User changedBy)
Deprecated.
as of version 2.2
|
void |
BaseOpenmrsData.setChangedBy(User changedBy)
Deprecated.
as of version 2.2
|
void |
BaseConceptMap.setChangedBy(User changedBy) |
void |
User.setCreator(User creator) |
void |
Obs.setCreator(User creator) |
void |
FieldAnswer.setCreator(User creator) |
void |
DrugReferenceMap.setCreator(User creator) |
void |
Creatable.setCreator(User creator) |
void |
ConceptSet.setCreator(User creator) |
void |
ConceptProposal.setCreator(User creator) |
void |
ConceptNameTag.setCreator(User creator) |
void |
ConceptName.setCreator(User creator) |
void |
ConceptDescription.setCreator(User creator) |
void |
ConceptAnswer.setCreator(User creator) |
void |
Concept.setCreator(User creator) |
void |
BaseOpenmrsMetadata.setCreator(User creator) |
void |
BaseOpenmrsData.setCreator(User creator) |
void |
BaseConceptMap.setCreator(User creator) |
void |
Person.setPersonChangedBy(User changedBy) |
void |
Person.setPersonCreator(User creator) |
void |
Person.setPersonVoidedBy(User voidedBy) |
void |
User.setRetiredBy(User retiredBy) |
void |
Retireable.setRetiredBy(User retiredBy) |
void |
Concept.setRetiredBy(User retiredBy) |
void |
BaseOpenmrsMetadata.setRetiredBy(User retiredBy) |
void |
Voidable.setVoidedBy(User voidedBy) |
void |
ConceptNameTag.setVoidedBy(User voidedBy)
Sets the User who voided this ConceptName.
|
void |
ConceptName.setVoidedBy(User voidedBy)
Sets the User who voided this ConceptName.
|
void |
BaseOpenmrsData.setVoidedBy(User voidedBy) |
void |
PatientProgram.voidLastState(ProgramWorkflow workflow,
User voidBy,
Date voidDate,
String voidReason)
Attempts to void the latest
PatientState in the PatientProgram If earlier
PatientStates exist, it will try to reset the endDate to null so that the next latest state
becomes the current PatientState |
Modifier and Type | Method and Description |
---|---|
static <H extends RequiredDataHandler<OpenmrsObject>> |
RequiredDataAdvice.recursivelyHandle(Class<H> handlerType,
OpenmrsObject openmrsObject,
User currentUser,
Date currentDate,
String other,
List<OpenmrsObject> alreadyHandled)
This loops over all declared collections on the given object and all declared collections on
parent objects to use the given
handlerType . |
static <H extends RequiredDataHandler<OpenmrsObject>> |
RequiredDataAdvice.recursivelyHandle(Class<H> handlerType,
OpenmrsObject openmrsObject,
User currentUser,
Date currentDate,
String other,
Set<OpenmrsObject> alreadyHandled)
This loops over all declared collections on the given object and all declared collections on
parent objects to use the given
handlerType . |
Modifier and Type | Method and Description |
---|---|
User |
UserService.createUser(User user,
String password)
Create user with given password.
|
User |
UserService.getUser(Integer userId)
Get user by internal user identifier.
|
User |
UserService.getUserByActivationKey(String activationKey)
Gets a user with the specified activation key
|
User |
UserService.getUserByUsername(String username)
Get user by username (user's login identifier)
|
User |
UserService.getUserByUsernameOrEmail(String usernameOrEmail)
Gets a user by username or email
|
User |
UserService.getUserByUuid(String uuid)
Get user by the given uuid.
|
User |
UserService.removeUserProperty(User user,
String key)
Removes the property denoted by
key from the user 's properties. |
User |
UserService.retireUser(User user,
String reason)
Deactivate a user account so that it can no longer log in.
|
User |
UserService.saveUser(User user)
Updates a given
user in the database. |
User |
UserService.saveUserProperties(Map<String,String> properties)
Replaces all user properties with the given map of properties for the current user
|
User |
UserService.saveUserProperty(String key,
String value)
Saves the current key/value as a user property for the current user.
|
User |
UserService.setUserActivationKey(User user)
Sets a user's activation key
|
User |
UserService.setUserProperty(User user,
String key,
String value)
Adds the
key /value pair to the given user . |
User |
UserService.unretireUser(User user)
Clears retired flag for a user.
|
Modifier and Type | Method and Description |
---|---|
List<User> |
UserService.getAllUsers()
Returns all users in the system
|
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. |
List<User> |
UserService.getUsersByName(String givenName,
String familyName,
boolean includeRetired)
Search for a list of users by exact first name and last name.
|
List<User> |
UserService.getUsersByPerson(Person person,
boolean includeRetired)
Get all user accounts that belong to a given person.
|
List<User> |
UserService.getUsersByRole(Role role)
Get users by role granted
|
Modifier and Type | Method and Description |
---|---|
boolean |
EncounterService.canEditAllEncounterTypes(User subject)
Determines whether given user is granted to edit all encounter types or not
|
boolean |
EncounterService.canEditEncounter(Encounter encounter,
User subject)
Checks if passed in user can edit given encounter.
|
boolean |
EncounterService.canViewAllEncounterTypes(User subject)
Determines whether given user is granted to view all encounter types or not
|
boolean |
EncounterService.canViewEncounter(Encounter encounter,
User subject)
Checks if passed in user can view given encounter.
|
void |
UserService.changeHashedPassword(User user,
String hashedPassword,
String salt)
Changes the current user's password directly.
|
void |
UserService.changePassword(User user,
String newPassword)
Changes password of
User passed in |
void |
UserService.changePassword(User user,
String oldPassword,
String newPassword)
Change user password.
|
void |
UserService.changeQuestionAnswer(User u,
String question,
String answer)
Changes the passed user's secret question and answer.
|
User |
UserService.createUser(User user,
String password)
Create user with given password.
|
List<Encounter> |
EncounterService.filterEncountersByViewPermissions(List<Encounter> encounters,
User user)
Filters out all encounters to which given user does not have access.
|
Locale |
UserService.getDefaultLocaleForUser(User user) |
String |
UserService.getLastLoginTime(User user)
Retrieves the last login time of the user in Unix Timestamp
|
List<Locale> |
AdministrationService.getSearchLocales(Locale currentLocale,
User user)
Returns a list of locales used by the user when searching.
|
String |
UserService.getSecretQuestion(User user)
Returns secret question for the given user.
|
boolean |
UserService.hasDuplicateUsername(User user)
true/false if username or systemId is already in db in username or system_id columns
|
boolean |
UserService.isSecretAnswer(User u,
String answer)
Compares
answer against the user 's secret answer. |
void |
CohortService.notifyPatientUnvoided(Patient patient,
User originallyVoidedBy,
Date originalDateVoided)
NOTE: CLIENT CODE SHOULD NEVER CALL THIS METHOD.
|
void |
UserService.purgeUser(User user)
Completely remove a location from the database (not reversible).
|
void |
UserService.purgeUser(User user,
boolean cascade)
Completely remove a user from the database (not reversible).
|
User |
UserService.removeUserProperty(User user,
String key)
Removes the property denoted by
key from the user 's properties. |
User |
UserService.retireUser(User user,
String reason)
Deactivate a user account so that it can no longer log in.
|
User |
UserService.saveUser(User user)
Updates a given
user in the database. |
User |
UserService.setUserActivationKey(User user)
Sets a user's activation key
|
User |
UserService.setUserProperty(User user,
String key,
String value)
Adds the
key /value pair to the given user . |
User |
UserService.unretireUser(User user)
Clears retired flag for a user.
|
Modifier and Type | Field and Description |
---|---|
protected static ThreadLocal<User> |
Daemon.daemonThreadUser |
Modifier and Type | Method and Description |
---|---|
User |
UserContext.becomeUser(String systemId)
Change current authentication to become another user.
|
static User |
Daemon.createUser(User user,
String password,
List<String> roleNames)
This method should not be called directly, only
ContextDAO.createUser(User, String, List) can
legally invoke Daemon.createUser(User, String, List) . |
User |
UserContext.getAuthenticatedUser() |
static User |
Context.getAuthenticatedUser() |
static User |
Daemon.getDaemonThreadUser() |
User |
BasicAuthenticated.getUser() |
User |
Authenticated.getUser() |
Modifier and Type | Method and Description |
---|---|
static User |
Daemon.createUser(User user,
String password,
List<String> roleNames)
This method should not be called directly, only
ContextDAO.createUser(User, String, List) can
legally invoke Daemon.createUser(User, String, List) . |
Set<Role> |
UserContext.getAllRoles(User user)
Gets all the roles for a user.
|
static Set<Role> |
Context.getAllRoles(User user)
Convenience method.
|
protected Integer |
UserContext.getDefaultLocationId(User user) |
static boolean |
Daemon.isDaemonUser(User user)
Checks whether user is Daemon.
|
void |
BasicAuthenticated.setUser(User user) |
Constructor and Description |
---|
BasicAuthenticated(User user,
String authenticationScheme) |
Modifier and Type | Method and Description |
---|---|
User |
ContextDAO.authenticate(String username,
String password)
Authenticate user with the given username and password.
|
User |
ContextDAO.createUser(User user,
String password,
List<String> roleNames)
Creates a new user.
|
User |
LoginCredential.getChangedBy() |
User |
UserDAO.getUser(Integer userId) |
User |
UserDAO.getUserByEmail(String email) |
User |
UserDAO.getUserByUsername(String username) |
User |
ContextDAO.getUserByUsername(String username)
Gets a user given the username.
|
User |
UserDAO.getUserByUuid(String uuid) |
User |
ContextDAO.getUserByUuid(String uuid)
Gets a user given the uuid.
|
User |
UserDAO.saveUser(User user,
String password) |
Modifier and Type | Method and Description |
---|---|
List<User> |
UserDAO.getAllUsers() |
List<User> |
UserDAO.getUsers(String name,
List<Role> roles,
boolean includeRetired,
Integer start,
Integer length) |
List<User> |
UserDAO.getUsersByName(String givenName,
String familyName,
boolean includeVoided) |
List<User> |
UserDAO.getUsersByPerson(Person person,
boolean includeRetired) |
Modifier and Type | Method and Description |
---|---|
void |
UserDAO.changeHashedPassword(User user,
String hashedPassword,
String salt) |
void |
UserDAO.changePassword(User u,
String pw) |
void |
UserDAO.changeQuestionAnswer(User u,
String question,
String answer) |
User |
ContextDAO.createUser(User user,
String password,
List<String> roleNames)
Creates a new user.
|
void |
UserDAO.deleteUser(User user) |
String |
UserDAO.getLastLoginTime(User user) |
LoginCredential |
UserDAO.getLoginCredential(User user) |
boolean |
UserDAO.isSecretAnswer(User u,
String answer) |
User |
UserDAO.saveUser(User user,
String password) |
void |
LoginCredential.setChangedBy(User changedBy) |
Modifier and Type | Method and Description |
---|---|
List<Order> |
OrderDAO.getOrders(OrderType orderType,
List<Patient> patients,
List<Concept> concepts,
List<User> orderers,
List<Encounter> encounters)
This searches for orders given the parameters.
|
Modifier and Type | Method and Description |
---|---|
User |
HibernateContextDAO.authenticate(String login,
String password) |
User |
HibernateContextDAO.createUser(User user,
String password,
List<String> roleNames) |
User |
HibernateUserDAO.getUser(Integer userId) |
User |
HibernateUserDAO.getUserByEmail(String email) |
User |
HibernateUserDAO.getUserByUsername(String username) |
User |
HibernateContextDAO.getUserByUsername(String username) |
User |
HibernateUserDAO.getUserByUuid(String uuid) |
User |
HibernateContextDAO.getUserByUuid(String uuid) |
User |
HibernateUserDAO.saveUser(User user,
String password) |
Modifier and Type | Method and Description |
---|---|
List<User> |
HibernateUserDAO.getAllUsers() |
List<User> |
HibernateUserDAO.getUsers(String name,
List<Role> roles,
boolean includeRetired,
Integer start,
Integer length) |
List<User> |
HibernateUserDAO.getUsersByName(String givenName,
String familyName,
boolean includeRetired) |
List<User> |
HibernateUserDAO.getUsersByPerson(Person person,
boolean includeRetired) |
List<User> |
HibernateUserDAO.getUsersByRole(Role role) |
Modifier and Type | Method and Description |
---|---|
void |
HibernateUserDAO.changeHashedPassword(User user,
String hashedPassword,
String salt) |
void |
HibernateUserDAO.changePassword(User u,
String pw) |
void |
HibernateUserDAO.changeQuestionAnswer(User u,
String question,
String answer) |
User |
HibernateContextDAO.createUser(User user,
String password,
List<String> roleNames) |
void |
HibernateUserDAO.deleteUser(User user) |
String |
HibernateUserDAO.getLastLoginTime(User user) |
LoginCredential |
HibernateUserDAO.getLoginCredential(User user) |
boolean |
HibernateUserDAO.isSecretAnswer(User u,
String answer) |
User |
HibernateUserDAO.saveUser(User user,
String password) |
Modifier and Type | Method and Description |
---|---|
List<Order> |
HibernateOrderDAO.getOrders(OrderType orderType,
List<Patient> patients,
List<Concept> concepts,
List<User> orderers,
List<Encounter> encounters) |
Modifier and Type | Method and Description |
---|---|
void |
ConceptNameSaveHandler.handle(ConceptName conceptName,
User currentUser,
Date currentDate,
String reason)
This method does a lookup on all tag name for all child
ConceptNameTag s that have a
null ConceptNameTag.getConceptNameTagId() . |
void |
ConceptProposalHandler.handle(ConceptProposal cp,
User creator,
Date dateCreated,
String other) |
void |
ConceptReferenceTermSaveHandler.handle(ConceptReferenceTerm conceptReferenceTerm,
User currentUser,
Date currentDate,
String other)
Sets the concept reference term as the term A for all the
ConceptReferenceTermMap s
added to it. |
void |
ConceptSaveHandler.handle(Concept concept,
User creator,
Date dateCreated,
String other) |
void |
OpenmrsMetadataSaveHandler.handle(OpenmrsMetadata object,
User creator,
Date dateCreated,
String other) |
void |
OpenmrsObjectSaveHandler.handle(OpenmrsObject openmrsObject,
User creator,
Date dateCreated,
String reason)
This sets the uuid property on the given OpenmrsObject if it is non-null.
|
void |
OrderSaveHandler.handle(Order order,
User creator,
Date dateCreated,
String other) |
void |
SaveHandler.handle(O object,
User creator,
Date dateCreated,
String other)
This method is used by the implementing classes to set any required data that it needs to.
|
void |
RequiredDataHandler.handle(O openmrsObject,
User currentUser,
Date currentDate,
String other)
This method is called to when the required data needs to be set.
|
void |
PatientSaveHandler.handle(Patient patient,
User creator,
Date dateCreated,
String other) |
void |
PatientDataVoidHandler.handle(Patient patient,
User voidingUser,
Date voidedDate,
String voidReason) |
void |
PatientDataUnvoidHandler.handle(Patient patient,
User originalVoidingUser,
Date origParentVoidedDate,
String unused) |
void |
PersonNameSaveHandler.handle(PersonName personName,
User creator,
Date dateCreated,
String other) |
void |
PersonVoidHandler.handle(Person person,
User voidingUser,
Date voidedDate,
String voidReason)
Sets all personVoid* attributes to the given parameters.
|
void |
PersonUnvoidHandler.handle(Person person,
User unvoidingUser,
Date origParentVoidedDate,
String unused)
Called around every unvoid* method to set everything to null.
|
void |
PersonSaveHandler.handle(Person person,
User creator,
Date dateCreated,
String other) |
void |
RetireSaveHandler.handle(Retireable retireableObject,
User currentUser,
Date currentDate,
String notUsed)
This method does not set "retired" to true, but rather only sets the retiredBy/dateRetired if
they are null and retired==true.
|
void |
BaseUnretireHandler.handle(Retireable retireableObject,
User retiringUser,
Date origParentRetiredDate,
String unused)
Called around every unretire* method to set
Retireable attributes to null. |
void |
BaseRetireHandler.handle(Retireable retireableObject,
User retiringUser,
Date retireDate,
String retireReason)
This method sets "retired" to true, the retired reason, and the retiredBy/dateRetired (if
those are null).
|
void |
UnretireHandler.handle(R retireableObject,
User retiringUser,
Date origParentRetiredDate,
String unused)
Called around every unretire* method to set
Retireable attributes to null. |
void |
RetireHandler.handle(R retireableObject,
User retiringUser,
Date retireDate,
String retireReason)
Implementing methods should set "retired" to true, the retired reason, and the
retiredBy/dateRetired (if those are non-null).
|
void |
UserSaveHandler.handle(User user,
User creator,
Date dateCreated,
String other) |
void |
VisitVoidHandler.handle(Visit voidableObject,
User voidingUser,
Date voidedDate,
String voidReason) |
void |
VisitUnvoidHandler.handle(Visit visit,
User voidingUser,
Date origParentVoidedDate,
String unused) |
void |
VoidSaveHandler.handle(Voidable voidableObject,
User currentUser,
Date currentDate,
String notUsed)
This method does not set "voided" to true, but rather only sets the voidedBy/dateVoided if
they are null and voided==true.
|
void |
RequireVoidReasonVoidHandler.handle(Voidable voidableObject,
User voidingUser,
Date voidedDate,
String voidReason)
Validates that the voidReason is non-null and non-empty for supported objects
Should throw IllegalArgumentException if Patient voidReason is null
Should throw IllegalArgumentException if Encounter voidReason is empty
Should throw IllegalArgumentException if Obs voidReason is blank
Should not throw Exception if voidReason is not blank
Should not throw Exception if voidReason is null for unsupported types
|
void |
RequireVoidReasonSaveHandler.handle(Voidable voidableObject,
User currentUser,
Date currentDate,
String notUsed)
Validates that the voidReason is non-null and non-empty for supported objects
Should throw APIException if Patient voidReason is null
Should throw APIException if Encounter voidReason is empty
Should throw APIException if Encounter voidReason is blank
Should not throw Exception if voidReason is not blank
Should not throw Exception if voidReason is null for unsupported types
|
void |
BaseVoidHandler.handle(Voidable voidableObject,
User voidingUser,
Date voidedDate,
String voidReason)
Sets all void attributes to the given parameters.
|
void |
BaseUnvoidHandler.handle(Voidable voidableObject,
User voidingUser,
Date origParentVoidedDate,
String unused)
Called around every unvoid* method to set everything to null.
|
void |
VoidHandler.handle(V voidableObject,
User voidingUser,
Date voidedDate,
String voidReason)
Implementing classes should set all void attributes to the given parameters.
|
void |
UnvoidHandler.handle(V voidableObject,
User voidingUser,
Date origParentVoidedDate,
String unused)
Implementing classes are called around every unvoid* method to set everything to null.
|
Modifier and Type | Method and Description |
---|---|
User |
UserServiceImpl.createUser(User user,
String password) |
User |
UserServiceImpl.getUser(Integer userId) |
User |
UserServiceImpl.getUserByActivationKey(String activationKey) |
User |
UserServiceImpl.getUserByUsername(String username) |
User |
UserServiceImpl.getUserByUsernameOrEmail(String usernameOrEmail) |
User |
UserServiceImpl.getUserByUuid(String uuid) |
User |
UserServiceImpl.removeUserProperty(User user,
String key) |
User |
UserServiceImpl.retireUser(User user,
String reason) |
User |
UserServiceImpl.saveUser(User user) |
User |
UserServiceImpl.saveUserProperties(Map<String,String> properties) |
User |
UserServiceImpl.saveUserProperty(String key,
String value) |
User |
UserServiceImpl.setUserActivationKey(User user) |
User |
UserServiceImpl.setUserProperty(User user,
String key,
String value) |
User |
UserServiceImpl.unretireUser(User user) |
User |
UserServiceImpl.unvoidUser(User user) |
User |
UserServiceImpl.voidUser(User user,
String reason) |
Modifier and Type | Method and Description |
---|---|
List<User> |
UserServiceImpl.getAllUsers() |
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) |
List<User> |
UserServiceImpl.getUsersByName(String givenName,
String familyName,
boolean includeVoided) |
List<User> |
UserServiceImpl.getUsersByPerson(Person person,
boolean includeRetired) |
List<User> |
UserServiceImpl.getUsersByRole(Role role) |
Modifier and Type | Method and Description |
---|---|
boolean |
EncounterServiceImpl.canEditAllEncounterTypes(User subject) |
boolean |
EncounterServiceImpl.canEditEncounter(Encounter encounter,
User user) |
boolean |
EncounterServiceImpl.canViewAllEncounterTypes(User subject) |
boolean |
EncounterServiceImpl.canViewEncounter(Encounter encounter,
User user) |
void |
UserServiceImpl.changeHashedPassword(User user,
String hashedPassword,
String salt) |
void |
UserServiceImpl.changePassword(User user,
String newPassword) |
void |
UserServiceImpl.changePassword(User user,
String oldPassword,
String newPassword) |
void |
UserServiceImpl.changeQuestionAnswer(User u,
String question,
String answer) |
User |
UserServiceImpl.createUser(User user,
String password) |
List<Encounter> |
EncounterServiceImpl.filterEncountersByViewPermissions(List<Encounter> encounters,
User user) |
Locale |
UserServiceImpl.getDefaultLocaleForUser(User user) |
String |
UserServiceImpl.getLastLoginTime(User user) |
List<Locale> |
AdministrationServiceImpl.getSearchLocales(Locale currentLocale,
User user) |
String |
UserServiceImpl.getSecretQuestion(User user) |
boolean |
UserServiceImpl.hasDuplicateUsername(User user) |
boolean |
UserServiceImpl.isSecretAnswer(User u,
String answer) |
void |
CohortServiceImpl.notifyPatientUnvoided(Patient patient,
User originallyVoidedBy,
Date originalDateVoided) |
void |
UserServiceImpl.purgeUser(User user) |
void |
UserServiceImpl.purgeUser(User user,
boolean cascade) |
User |
UserServiceImpl.removeUserProperty(User user,
String key) |
User |
UserServiceImpl.retireUser(User user,
String reason) |
User |
UserServiceImpl.saveUser(User user) |
User |
UserServiceImpl.setUserActivationKey(User user) |
User |
UserServiceImpl.setUserProperty(User user,
String key,
String value) |
User |
UserServiceImpl.unretireUser(User user) |
User |
UserServiceImpl.unvoidUser(User user) |
User |
UserServiceImpl.voidUser(User user,
String reason) |
Modifier and Type | Method and Description |
---|---|
User |
Alert.getChangedBy() |
User |
Alert.getCreator() |
User |
AlertRecipient.getRecipient() |
Modifier and Type | Method and Description |
---|---|
void |
Alert.addRecipient(User u)
Convenience method to add the given user to this list of recipients for this alert
|
List<Alert> |
AlertService.getAlerts(User user,
boolean includeRead,
boolean includeExpired)
Finds alerts for the given user with the given status
|
List<Alert> |
AlertService.getAlertsByUser(User user)
Find the alerts that are not read and have not expired for a user This will probably be the
most commonly called method If null is passed in for
user , find alerts for the
currently authenticated user. |
List<Alert> |
AlertService.getAllActiveAlerts(User user)
Find all alerts for a user that have not expired
|
AlertRecipient |
Alert.getRecipient(User recipient)
Convenience method to find the AlertRecipient object within this alert that corresponds to
the given
recipient |
void |
MessageService.sendMessage(Message message,
User user) |
void |
Alert.setChangedBy(User changedBy) |
void |
Alert.setCreator(User creator) |
void |
AlertRecipient.setRecipient(User user) |
Modifier and Type | Method and Description |
---|---|
void |
MessageService.sendMessage(Message message,
Collection<User> users) |
Constructor and Description |
---|
Alert(String text,
User user)
Convenience constructor to create an alert with the given text and for the given users
|
AlertRecipient(Alert a,
User recipient)
Initializes a recipient with the given alert and recipient/user
|
AlertRecipient(User user,
Boolean read)
Initializes a recipient with the given user
|
Constructor and Description |
---|
Alert(String text,
Collection<User> users)
Convenience constructor to create an alert with the given text and for the given users
|
Modifier and Type | Method and Description |
---|---|
List<Alert> |
AlertDAO.getAlerts(User user,
boolean includeRead,
boolean includeVoided) |
Modifier and Type | Method and Description |
---|---|
List<Alert> |
HibernateAlertDAO.getAlerts(User user,
boolean includeRead,
boolean includeExpired) |
Modifier and Type | Method and Description |
---|---|
List<Alert> |
AlertServiceImpl.getAlerts(User user,
boolean includeRead,
boolean includeExpired) |
List<Alert> |
AlertServiceImpl.getAlertsByUser(User user) |
List<Alert> |
AlertServiceImpl.getAllActiveAlerts(User user) |
void |
MessageServiceImpl.sendMessage(Message message,
User user)
Send message to a single user.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageServiceImpl.sendMessage(Message message,
Collection<User> users)
Send message to a collection of recipients.
|
Modifier and Type | Method and Description |
---|---|
protected User |
UserEditor.getObjectById(Integer id) |
protected User |
UserEditor.getObjectByUuid(String uuid) |
Modifier and Type | Method and Description |
---|---|
int |
UserByNameComparator.compare(User user1,
User user2) |
static File |
OpenmrsUtil.getOutFile(File dir,
Date date,
User user)
Gets an out File object.
|
Copyright © 2024 OpenMRS Inc.. All rights reserved.