Package | Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
static void |
Context.authenticate(java.lang.String username,
java.lang.String password)
Used to authenticate user within the context
|
User |
UserContext.authenticate(java.lang.String username,
java.lang.String password,
ContextDAO contextDAO)
Authenticate the user to this UserContext.
|
User |
UserContext.becomeUser(java.lang.String systemId)
Change current authentication to become another user.
|
static void |
Context.becomeUser(java.lang.String systemId)
Become a different user.
|
static void |
Context.requirePrivilege(java.lang.String privilege)
Throws an exception if the currently authenticated user does not have the specified
privilege.
|
Modifier and Type | Method and Description |
---|---|
User |
ContextDAO.authenticate(java.lang.String username,
java.lang.String password)
Authenticate user with the given username and password.
|
User |
ContextDAO.getUserByUuid(java.lang.String uuid)
Gets a user given the uuid.
|
Modifier and Type | Method and Description |
---|---|
User |
HibernateContextDAO.authenticate(java.lang.String login,
java.lang.String password) |
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.