public interface ContextDAO
Modifier and Type | Method and Description |
---|---|
User |
authenticate(java.lang.String username,
java.lang.String password)
Authenticate user with the given username and password.
|
void |
clearSession() |
void |
closeSession()
Close session.
|
void |
evictFromSession(java.lang.Object obj)
Used to clear a cached object out of a session in the middle of a unit of work.
|
void |
flushSession() |
User |
getUserByUuid(java.lang.String uuid)
Gets a user given the uuid.
|
void |
mergeDefaultRuntimeProperties(java.util.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(java.util.Properties props)
Starts the OpenMRS System
|
@Transactional(noRollbackFor=ContextAuthenticationException.class) User authenticate(java.lang.String username, java.lang.String password) throws ContextAuthenticationException
username
- user's username or systemIdpassword
- user's passwordContextAuthenticationException
@Transactional(readOnly=true) User getUserByUuid(java.lang.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(java.lang.Object obj)
obj
- The object to evict/remove from the sessionContext.evictFromSession(Object)
@Transactional void startup(java.util.Properties props)
Should be called prior to any kind of activity
props
- Propertiesvoid shutdown()
void mergeDefaultRuntimeProperties(java.util.Properties runtimeProperties)
runtimeProperties
- The current user specific runtime propertiesCopyright © 2018 OpenMRS Inc.. All Rights Reserved.