|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ContextDAO
Defines the functions that the Context needs to access the database
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
@Transactional(noRollbackFor=ContextAuthenticationException.class)
User authenticate(java.lang.String username,
java.lang.String password)
throws ContextAuthenticationException
username - user's username or systemIdpassword - user's password
ContextAuthenticationException
@Transactional(readOnly=true)
User getUserByUuid(java.lang.String uuid)
throws ContextAuthenticationException
Context.getAuthenticatedUser() method.
uuid - uuid of user to fetch
ContextAuthenticationExceptionvoid 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 properties
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||