public interface ISession
Modifier and Type | Method and Description |
---|---|
void |
addToClientRoots(IMendixIdentifier id)
Not for public use
|
IContext |
createContext()
Create new context.
|
IContext |
createContext(IContext.ExecutionType executionType) |
void |
destroy()
Destroy this session, so that the garbage collector can reclaim memory held by this session.
|
Set<IMendixIdentifier> |
getClientRoots() |
com.mendix.core.component.LocalComponent |
getComponent() |
IContext |
getContext()
Deprecated.
use createContext instead.
|
Map<String,Object> |
getData()
Deprecated.
There are two alternatives, based on the required behavior: 1. Using IContext.getData() for data that requires the
life-time of the current request only 2. Using an entity for data that has to live in this session spanning multiple requests (entity
does not have to be committed for this to work)
|
Set<String> |
getGrantableRoleNames() |
UUID |
getId()
Get session id.
|
Set<IMendixIdentifier> |
getJavaActionRoots() |
ILanguage |
getLanguage() |
Date |
getLastActive() |
IMendixObject |
getMendixObject() |
com.mendix.core.session.SessionDestroyer |
getSessionDestroyer() |
TimeZone |
getTimeZone() |
IUser |
getUser()
Get user.
|
String |
getUserAgent() |
Set<String> |
getUserRolesNames() |
boolean |
isInteractive() |
boolean |
isSystemSession() |
void |
keepAlive()
Refresh last active time.
|
void |
release(IMendixIdentifier id)
Deprecated.
use an object associated with System.Session instead.
|
void |
removeFromClientRoots(IMendixIdentifier id)
Not for public use
|
void |
retain(IMendixObject mxObject)
Deprecated.
use an object associated with System.Session instead.
|
void |
setTimeZone(Integer timezoneOffset)
Overrides the timezone by a simple timezone based on an offset.
|
void |
setUserAgent(String userAgent) |
UUID getId()
@Deprecated IContext getContext()
IContext createContext()
IContext createContext(IContext.ExecutionType executionType)
com.mendix.core.component.LocalComponent getComponent()
IUser getUser()
ILanguage getLanguage()
void keepAlive() throws com.mendix.core.CoreException
com.mendix.core.CoreException
boolean isSystemSession()
TimeZone getTimeZone()
void setTimeZone(Integer timezoneOffset)
timezoneOffset
- the timezone offset in negative amount of minutes from UTC, like how Javascript supplies it. See http://www.w3schools.com/jsref/jsref_gettimezoneoffset.aspString getUserAgent()
@Deprecated void retain(IMendixObject mxObject)
mxObject
- the object to add to the java action roots.@Deprecated void release(IMendixIdentifier id)
id
- the id to remove from the java action roots.void removeFromClientRoots(IMendixIdentifier id)
void addToClientRoots(IMendixIdentifier id)
com.mendix.core.session.SessionDestroyer getSessionDestroyer()
Set<IMendixIdentifier> getClientRoots()
Set<IMendixIdentifier> getJavaActionRoots()
void setUserAgent(String userAgent)
@Deprecated Map<String,Object> getData()
boolean isInteractive()
void destroy()
IMendixObject getMendixObject()
Date getLastActive()