public interface ISession
Modifier and Type | Method and Description |
---|---|
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.lang.String |
getCsrfToken() |
java.util.Set<java.lang.String> |
getGrantableRoleNames() |
java.util.UUID |
getId()
Get session id.
|
ILanguage |
getLanguage()
Deprecated.
Use method getUser(IContext).getLanguage() instead.
|
java.util.Date |
getLastActive() |
IMendixObject |
getMendixObject() |
java.util.TimeZone |
getTimeZone() |
IUser |
getUser()
Deprecated.
Use method getUser(IContext) instead.
Get user. |
IUser |
getUser(IContext context)
Get user.
|
java.lang.String |
getUserAgent() |
IMendixIdentifier |
getUserId() |
java.lang.String |
getUserName() |
java.util.Set<java.lang.String> |
getUserRolesNames() |
boolean |
isInteractive() |
boolean |
isSystemSession() |
void |
keepAlive()
Refresh last active time.
|
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 IUser getUser()
Get user.
IUser getUser(IContext context)
context
- java.lang.String getUserName()
IMendixIdentifier getUserId()
@Deprecated ILanguage getLanguage()
void keepAlive() throws CoreException
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()
void setUserAgent(java.lang.String userAgent)
boolean isInteractive()
void destroy()
IMendixObject getMendixObject()
java.util.Date getLastActive()
java.lang.String getCsrfToken()