public interface IContext
Modifier and Type | Interface and Description |
---|---|
static class |
IContext.ExecutionType |
Modifier and Type | Method and Description |
---|---|
void |
addDataValidation(DataValidationInfo newDvInfo) |
void |
addFeedback(IFeedback feedback) |
IContext |
clone() |
IContext |
createClone() |
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<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<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() |
java.util.Optional<com.mendix.m2ee.api.IMxRuntimeRequest> |
getRuntimeRequest()
Returns a Runtime Request.
|
java.util.Optional<com.mendix.m2ee.api.IMxRuntimeResponse> |
getRuntimeResponse()
Returns a Runtime Response.
|
ISession |
getSession()
Get session
|
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 |
setExecutionId(java.lang.String requestId) |
void |
setExecutionThread(java.lang.Thread executionThread) |
void |
setExecutionType(IContext.ExecutionType executionType) |
void |
startTransaction()
Start a transaction, if a transaction is already started for this context, a savepoint will be added
|
IMendixIdentifier getCurrentIdentifier()
void setExecutionId(java.lang.String requestId)
void setExecutionType(IContext.ExecutionType executionType)
void setExecutionThread(java.lang.Thread executionThread)
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.Object
boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
IContext clone()
IContext createClone()
boolean isSudo()
void startTransaction()
void endTransaction()
void rollbackTransAction()
void addDataValidation(DataValidationInfo newDvInfo)
void addFeedback(IFeedback feedback)
java.util.Collection<DataValidationInfo> getDataValidationList()
java.util.Collection<IFeedback> getFeedbackList()
java.lang.Thread getExecutionThread()
java.util.Stack<CoreAction<?>> getActionStack()
long getRequestStartTime()
IContext.ExecutionType getExecutionType()
java.lang.String getExecutionId()
IContext createSudoClone()
java.util.Map<java.lang.String,java.lang.Object> getData()
IMendixObject getCurrentUserObject()
java.util.Optional<com.mendix.m2ee.api.IMxRuntimeRequest> getRuntimeRequest()
java.util.Optional<com.mendix.m2ee.api.IMxRuntimeResponse> getRuntimeResponse()