public class MockSessionService extends DefaultSessionService
AbstractService.SerializableDTOSessionService.SessionAttributeLoader<T>tenant| Constructor and Description |
|---|
MockSessionService() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeSession(Session session)
Closed the given
Session |
Session |
createNewSession()
Creates a new
Session. |
Session |
createSession()
Must be overwritten! Use <lookup-method> in spring.
|
Object |
executeInLocalView(SessionExecutionBody body)
Executes the given
SessionExecutionBody in a local SessionContext |
Object |
executeInLocalView(SessionExecutionBody body,
UserModel model)
Executes the given
SessionExecutionBody in a local SessionContext and sets session user to given
UserModel. |
Session |
getCurrentSession() |
Session |
getSession(String id)
get session by Session id
|
closeCurrentSession, executeInLocalViewWithParams, getAllAttributes, getAttribute, getBoundSession, getOrLoadAttribute, getRawSession, hasCurrentSession, removeAttribute, setAttribute, setModelService, setTenantScopeafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplacepublic Session getCurrentSession()
getCurrentSession in interface SessionServicegetCurrentSession in class DefaultSessionServiceSessionpublic Session getSession(String id)
getSession in interface SessionServicegetSession in class DefaultSessionServicepublic Session createNewSession()
SessionServiceSession.createNewSession in interface SessionServicecreateNewSession in class DefaultSessionServicepublic Object executeInLocalView(SessionExecutionBody body)
SessionServiceSessionExecutionBody in a local SessionContextexecuteInLocalView in interface SessionServiceexecuteInLocalView in class DefaultSessionServicepublic void closeSession(Session session)
SessionServiceSessioncloseSession in interface SessionServicecloseSession in class DefaultSessionServicesession - the session which will be closedpublic Session createSession()
DefaultSessionServicecreateSession in class DefaultSessionServicepublic Object executeInLocalView(SessionExecutionBody body, UserModel model)
SessionServiceSessionExecutionBody in a local SessionContext and sets session user to given
UserModel.executeInLocalView in interface SessionServiceexecuteInLocalView in class DefaultSessionServiceCopyright © 2017 SAP SE. All Rights Reserved.