public interface IContext
| Modifier and Type | Interface and Description |
|---|---|
static class |
IContext.ExecutionType |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataValidation(com.mendix.core.objectmanagement.DataValidationInfo newDvInfo) |
void |
addFeedback(IFeedback feedback) |
IContext |
clone() |
IContext |
createSudoClone() |
void |
endTransaction()
Commit the transaction, this will end this transaction or remove a save point from the queue if the transaction is nested
|
boolean |
equals(java.lang.Object obj) |
java.util.Stack<com.mendix.core.actionmanagement.CoreAction<?>> |
getActionStack() |
java.util.List<IMendixIdentifier> |
getContextObjects()
Get context objects
|
IMendixIdentifier |
getCurrentIdentifier() |
IMendixObject |
getCurrentUserObject()
Return the current user object shared across all cloned contexts.
|
java.util.Map<java.lang.String,java.lang.Object> |
getData()
Allows attaching data to the scope of the current request (as in web request).
|
java.util.Collection<com.mendix.core.objectmanagement.DataValidationInfo> |
getDataValidationList() |
java.lang.String |
getExecutionId()
Get execution id, if set, from the client This is an id that is unique within this context
|
java.lang.Thread |
getExecutionThread() |
IContext.ExecutionType |
getExecutionType() |
java.util.Collection<IFeedback> |
getFeedbackList() |
long |
getRequestStartTime() |
ISession |
getSession()
Get session
|
IContext |
getSudoContext()
Deprecated.
Use createSudoClone() instead
|
java.util.UUID |
getTransactionId() |
java.util.Map<java.lang.String,java.lang.Object> |
getVariables() |
int |
hashCode() |
boolean |
isInTransaction() |
boolean |
isSudo() |
void |
rollbackTransAction()
Rollback the transaction for this context
|
void |
setContextObjects(java.util.List<IMendixIdentifier> contextObjects)
Deprecated.
|
void |
setCurrentIdentifier(IMendixIdentifier currentIdentifier)
Deprecated.
|
void |
setExecutionId(java.lang.String requestId) |
void |
setExecutionThread(java.lang.Thread executionThread) |
void |
setExecutionType(IContext.ExecutionType executionType) |
void |
setSudo(boolean sudo)
Deprecated.
|
void |
startTransaction()
Start a transaction, if a transaction is already started for this context, a savepoint will be added
|
com.mendix.core.state.State |
state() |
IMendixIdentifier getCurrentIdentifier()
void setExecutionId(java.lang.String requestId)
void setExecutionType(IContext.ExecutionType executionType)
void setExecutionThread(java.lang.Thread executionThread)
@Deprecated void setCurrentIdentifier(IMendixIdentifier currentIdentifier)
currentIdentifier - @Deprecated void setContextObjects(java.util.List<IMendixIdentifier> contextObjects)
contextObjects - java.util.List<IMendixIdentifier> getContextObjects()
java.util.Map<java.lang.String,java.lang.Object> getVariables()
ISession getSession()
boolean isInTransaction()
java.util.UUID getTransactionId()
int hashCode()
hashCode in class java.lang.Objectboolean equals(java.lang.Object obj)
equals in class java.lang.ObjectIContext clone()
boolean isSudo()
@Deprecated void setSudo(boolean sudo)
@Deprecated IContext getSudoContext()
void startTransaction()
void endTransaction()
void rollbackTransAction()
void addDataValidation(com.mendix.core.objectmanagement.DataValidationInfo newDvInfo)
void addFeedback(IFeedback feedback)
java.util.Collection<com.mendix.core.objectmanagement.DataValidationInfo> getDataValidationList()
java.util.Collection<IFeedback> getFeedbackList()
java.lang.Thread getExecutionThread()
java.util.Stack<com.mendix.core.actionmanagement.CoreAction<?>> getActionStack()
long getRequestStartTime()
IContext.ExecutionType getExecutionType()
java.lang.String getExecutionId()
com.mendix.core.state.State state()
IContext createSudoClone()
java.util.Map<java.lang.String,java.lang.Object> getData()
IMendixObject getCurrentUserObject()