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.
|
java.util.Set<IMendixIdentifier> |
getClientRoots() |
com.mendix.core.component.LocalComponent |
getComponent()
Deprecated.
Access to LocalComponent will not be possible anymore from the next major release onwards.
|
java.lang.String |
getCsrfToken() |
java.util.Map<java.lang.String,java.lang.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)
|
java.util.Set<java.lang.String> |
getGrantableRoleNames() |
java.util.UUID |
getId()
Get session id.
|
java.util.Set<IMendixIdentifier> |
getJavaActionRoots() |
ILanguage |
getLanguage() |
java.util.Date |
getLastActive() |
IMendixObject |
getMendixObject() |
com.mendix.core.session.SessionDestroyer |
getSessionDestroyer() |
java.util.TimeZone |
getTimeZone() |
IUser |
getUser()
Get user.
|
java.lang.String |
getUserAgent() |
java.util.Set<java.lang.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(java.lang.Integer timezoneOffset)
Overrides the timezone by a simple timezone based on an offset.
|
void |
setUserAgent(java.lang.String userAgent) |
java.util.UUID getId()
IContext createContext()
IContext createContext(IContext.ExecutionType executionType)
@Deprecated com.mendix.core.component.LocalComponent getComponent()
IUser getUser()
ILanguage getLanguage()
void keepAlive() throws com.mendix.core.CoreException
com.mendix.core.CoreException
java.util.Set<java.lang.String> getUserRolesNames()
java.util.Set<java.lang.String> getGrantableRoleNames()
boolean isSystemSession()
java.util.TimeZone getTimeZone()
void setTimeZone(java.lang.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.aspjava.lang.String 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()
java.util.Set<IMendixIdentifier> getClientRoots()
java.util.Set<IMendixIdentifier> getJavaActionRoots()
void setUserAgent(java.lang.String userAgent)
@Deprecated java.util.Map<java.lang.String,java.lang.Object> getData()
boolean isInteractive()
void destroy()
IMendixObject getMendixObject()
java.util.Date getLastActive()
java.lang.String getCsrfToken()