Mendix Runtime
Documentation for the Mendix Runtime Environment API
com.mendix.systemwideinterfaces.core.IContext Interface Reference

List of all members.

Public Member Functions

String getCurrentObjectType ()
long getCurrentGUID ()
IMendixIdentifier getCurrentIdentifier ()
void setCurrentIdentifier (IMendixIdentifier currentIdentifier)
void setContextObjects (List< IMendixIdentifier > contextObjects)
List< IMendixIdentifiergetContextObjects ()
List<?extends ICoreAction<?> > getActionList ()
ISession getSession ()
boolean isInTransaction ()
UUID getTransactionId ()
int hashCode ()
boolean equals (Object obj)
IContext clone ()
boolean isSudo ()
IContext getSudoContext ()
void startTransaction ()
void endTransaction ()
void rollbackTransAction ()
String getRequestId ()
String getExecutionId ()

Detailed Description

Interface defining context


Member Function Documentation

IContext com.mendix.systemwideinterfaces.core.IContext.clone ( )
void com.mendix.systemwideinterfaces.core.IContext.endTransaction ( )

Commit the transaction, this will end this transaction or remove a save point from the queue if the transaction is nested

boolean com.mendix.systemwideinterfaces.core.IContext.equals ( Object  obj)
List<? extends ICoreAction<?> > com.mendix.systemwideinterfaces.core.IContext.getActionList ( )
Returns:
returns list of IActionTuple's describing the action context
List<IMendixIdentifier> com.mendix.systemwideinterfaces.core.IContext.getContextObjects ( )

Get context objects

Returns:
list of context objects
long com.mendix.systemwideinterfaces.core.IContext.getCurrentGUID ( )
IMendixIdentifier com.mendix.systemwideinterfaces.core.IContext.getCurrentIdentifier ( )
Returns:
returns IMendixIdentifier of current object
String com.mendix.systemwideinterfaces.core.IContext.getCurrentObjectType ( )
String com.mendix.systemwideinterfaces.core.IContext.getExecutionId ( )

Get execution id, if set, from the client This is an id that is unique within this context

Returns:
String com.mendix.systemwideinterfaces.core.IContext.getRequestId ( )

Get request id, if set, from the client This is an id that is unique within this context

Deprecated:
use getExecutionId() instead.
Returns:
ISession com.mendix.systemwideinterfaces.core.IContext.getSession ( )

Get session

IContext com.mendix.systemwideinterfaces.core.IContext.getSudoContext ( )
Returns:
a context clone of the current context in which sudo is set to true
UUID com.mendix.systemwideinterfaces.core.IContext.getTransactionId ( )
Returns:
transaction id (root action id)
int com.mendix.systemwideinterfaces.core.IContext.hashCode ( )
boolean com.mendix.systemwideinterfaces.core.IContext.isInTransaction ( )
Returns:
whether action is in transaction
boolean com.mendix.systemwideinterfaces.core.IContext.isSudo ( )
Returns:
returns whether this context runs with all rights enabled
void com.mendix.systemwideinterfaces.core.IContext.rollbackTransAction ( )

Rollback the transaction for this context

void com.mendix.systemwideinterfaces.core.IContext.setContextObjects ( List< IMendixIdentifier contextObjects)

Set context objects

Parameters:
contextObjects
void com.mendix.systemwideinterfaces.core.IContext.setCurrentIdentifier ( IMendixIdentifier  currentIdentifier)

Set currenct identifier

Parameters:
currentIdentifier
void com.mendix.systemwideinterfaces.core.IContext.startTransaction ( )

Start a transaction, if a transaction is already started for this context, a savepoint will be added


The documentation for this interface was generated from the following file: