public interface ContextDAO
Modifier and Type | Method and Description |
---|---|
User |
authenticate(String username,
String password)
Authenticate user with the given username and password.
|
void |
clearSession() |
void |
closeSession()
Close session.
|
void |
evictFromSession(Object obj)
Used to clear a cached object out of a session in the middle of a unit of work.
|
void |
flushSession() |
User |
getUserByUuid(String uuid)
Gets a user given the uuid.
|
void |
mergeDefaultRuntimeProperties(Properties runtimeProperties)
Merge in the default properties defined for this database connection
|
void |
openSession()
Open session.
|
void |
shutdown()
Stops the OpenMRS System Should be called after all activity has ended and application is
closing
|
void |
startup(Properties props)
Starts the OpenMRS System
|
@Transactional(noRollbackFor=ContextAuthenticationException.class) User authenticate(String username, String password) throws ContextAuthenticationException
username
- user's username or systemIdpassword
- user's passwordContextAuthenticationException
@Transactional(readOnly=true) User getUserByUuid(String uuid) throws ContextAuthenticationException
Context.getAuthenticatedUser()
method.uuid
- uuid of user to fetchContextAuthenticationException
void openSession()
void closeSession()
@Transactional void clearSession()
Context.clearSession()
@Transactional void flushSession()
Context.flushSession()
void evictFromSession(Object obj)
obj
- The object to evict/remove from the sessionContext.evictFromSession(Object)
@Transactional void startup(Properties props)
Should be called prior to any kind of activity
props
- Propertiesvoid shutdown()
void mergeDefaultRuntimeProperties(Properties runtimeProperties)
runtimeProperties
- The current user specific runtime propertiesCopyright © 2018 OpenMRS LLC.. All Rights Reserved.