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(Object obj) |
List<? extends ICoreAction<?>> |
getActionList()
Deprecated.
|
Stack<com.mendix.core.actionmanagement.CoreAction<?>> |
getActionStack() |
List<IMendixIdentifier> |
getContextObjects()
Get context objects
|
long |
getCurrentGUID()
Deprecated.
|
IMendixIdentifier |
getCurrentIdentifier() |
String |
getCurrentObjectType()
Deprecated.
|
Map<String,Object> |
getData()
Allows attaching data to the scope of the current request (as in web request).
|
Collection<com.mendix.core.objectmanagement.DataValidationInfo> |
getDataValidationList() |
String |
getExecutionId()
Get execution id, if set, from the client This is an id that is unique within this context
|
Thread |
getExecutionThread() |
IContext.ExecutionType |
getExecutionType() |
Collection<IFeedback> |
getFeedbackList() |
String |
getRequestId()
Deprecated.
use getExecutionId() instead.
|
long |
getRequestStartTime() |
ISession |
getSession()
Get session
|
IContext |
getSudoContext()
Deprecated.
Use createSudoClone() instead
|
UUID |
getTransactionId() |
Map<String,Object> |
getVariables() |
int |
hashCode() |
boolean |
isInTransaction() |
boolean |
isSudo() |
void |
rollbackTransAction()
Rollback the transaction for this context
|
void |
setContextObjects(List<IMendixIdentifier> contextObjects)
Deprecated.
|
void |
setCurrentIdentifier(IMendixIdentifier currentIdentifier)
Deprecated.
|
void |
setExecutionId(String requestId) |
void |
setExecutionThread(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() |
@Deprecated String getCurrentObjectType()
@Deprecated long getCurrentGUID()
IMendixIdentifier getCurrentIdentifier()
void setExecutionId(String requestId)
void setExecutionType(IContext.ExecutionType executionType)
void setExecutionThread(Thread executionThread)
@Deprecated void setCurrentIdentifier(IMendixIdentifier currentIdentifier)
currentIdentifier
- @Deprecated void setContextObjects(List<IMendixIdentifier> contextObjects)
contextObjects
- List<IMendixIdentifier> getContextObjects()
@Deprecated List<? extends ICoreAction<?>> getActionList()
ISession getSession()
boolean isInTransaction()
UUID getTransactionId()
IContext clone()
boolean isSudo()
@Deprecated void setSudo(boolean sudo)
@Deprecated IContext getSudoContext()
void startTransaction()
void endTransaction()
void rollbackTransAction()
@Deprecated String getRequestId()
void addDataValidation(com.mendix.core.objectmanagement.DataValidationInfo newDvInfo)
void addFeedback(IFeedback feedback)
Collection<com.mendix.core.objectmanagement.DataValidationInfo> getDataValidationList()
Collection<IFeedback> getFeedbackList()
Thread getExecutionThread()
Stack<com.mendix.core.actionmanagement.CoreAction<?>> getActionStack()
long getRequestStartTime()
IContext.ExecutionType getExecutionType()
String getExecutionId()
com.mendix.core.state.State state()
IContext createSudoClone()