public class ServiceSessionControl extends SessionControl
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ServiceSessionControl.FlushSessionAction
Flushes the given session before the transaction is committed.
|
(package private) static class |
ServiceSessionControl.ServicesKeyring
Our own keyring containing the only permission:
Permission.ACT_AS_ANOTHER_USER . |
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
log |
Constructor and Description |
---|
ServiceSessionControl() |
Modifier and Type | Method and Description |
---|---|
SessionFactory |
buildSessionFactory(SessionFactoryConfiguration config)
Create a session factory for the given configuration.
|
Session |
newSession(SessionBuilder builder,
DbControl dc)
Create a new Hibernate session for the given session factory that
is piggy-backed on the given DbControl transaction.
|
cleanUp, clearDbControlCache, close, deleteContext, deleteCurrentContexts, finalize, getActiveProjectId, getActiveProjectPermissions, getAllCurrentContexts, getAllPermissions, getAllPermissions, getAuthenticationMethod, getClientDefaultSetting, getClientId, getContext, getContextNames, getContextNames, getCurrentContext, getCurrentContext, getCurrentContext, getCurrentContext, getCurrentSessionId, getExternalClientId, getFriends, getGroups, getId, getItemKeyId, getItemKeys, getItemKeys, getJobId, getJobSessionControl, getLastAccess, getLocale, getLoggedInUserId, getPluginId, getPluginPermissions, getPluginSessionControl, getProjectKeyId, getProjectKeys, getProjectKeys, getProjectPermission, getProjects, getRemoteId, getRolePermissions, getRoles, getSessionSetting, getSharedPermissions, getUserClientSetting, getUserDefaultSetting, hasPermission, hasSystemPermission, impersonateLogin, impersonateLogin, isClosed, isDenied, isFriendOf, isImpersonated, isLoggedIn, isMemberOf, isMemberOf, isMemberOf, loadContext, login, login, login, logout, newDbControl, reloadPermissions, reloadSettings, saveCurrentContextAs, saveCurrentContextAs, setActiveProject, setSessionSetting, setUserClientSetting, setUserDefaultSetting, updateLastAccess, verifyUserInternal
public SessionFactory buildSessionFactory(SessionFactoryConfiguration config)
config
- A configuration instance containing information needed to build
the session factorypublic Session newSession(SessionBuilder builder, DbControl dc)
builder
- A session builder (eg. SessionFactory.withOptions())dc
- An open DbControl