Interface ICoreAction<T>
- Type Parameters:
T
- the result type of the action execution
- All Superinterfaces:
Callable<T>
- All Known Implementing Classes:
CoreAction
,CustomJavaAction
,InternalCoreAction
,LoginAction
,UserAction
An action that can be executed within an
IContext
. It can be executed and scheduled using various methods of
Core
. Doing so instead of calling it directly has multiple benefits, in particular registered
action listeners
are executed.
Some behaviour of action execution, like using the action stack, is only implemented in
CoreAction
. This interface should therefore not be implemented directly. Its purpose is to
reduce dependencies during testing.
-
Method Summary
Modifier and TypeMethodDescriptioncall()
Invokes the action handler for this action.Returns the name of this action.Returns the context of the action.Returns the event objects of this action.com.mendix.thirdparty.org.json.JSONObject
Deprecated.since 10.17.Returns the meta-info of this action, containing additional details about the action.void
setContext
(IContext context) Deprecated.since 9.23.
-
Method Details
-
getContext
IContext getContext()Returns the context of the action.- Returns:
- the context for executing the action
-
setContext
Deprecated.since 9.23. This method was exposed for internal purposes. There is no replacement.Sets the context for the action to execute in.- Parameters:
context
- the context for executing the action
-
call
T call()Invokes the action handler for this action. -
getActionName
String getActionName()Returns the name of this action.- Returns:
- the action name
-
getMetaInfo
Deprecated.since 10.17. UsegetMetaInfoJsonString()
instead.Returns the meta-info of this action, containing additional details about the action.The contents will differ depending on the type of action.
- Returns:
- the meta-info
-
getMetaInfoJsonString
String getMetaInfoJsonString()Returns the meta-info of this action, containing additional details about the action.The contents will differ depending on the type of action.
- Returns:
- the meta-info
-
getEventObjects
List<IMendixObject> getEventObjects()Returns the event objects of this action.- Returns:
- the Mendix objects
-