Interface CoreActionHandler
-
public interface CoreActionHandlerDefines the interface for an action handler. This is an internal interface that is not to be used and may change any time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <R> Rcall(InternalCoreAction<R> action)Executes the specified action.CoreActionHandlercreateClone()Returns a deep copy of this action handler.java.lang.StringgetActionName()Returns the name of the action of this action handler.IContextgetClonedContext(IMendixIdentifier currentIdentifier, java.util.List<IMendixIdentifier> constraint)Returns a copy of the context of this action handler with the specified identifier and context objects.IContextgetContext()Returns the context of this action handler.java.util.List<IMendixObject>getEventObjects()Returns the event objects for the action of this action handler.java.lang.ExceptiongetException()Returns the exception that was set for this action handler (if any).com.mendix.thirdparty.org.json.JSONObjectgetMetaInfo()Returns the meta-info for the action of this action handler.ActionStategetState()Returns the state for the action of this action handler (if any).voidsetActionName(java.lang.String actionName)Sets the name of the action of this action handler.voidsetAllowsConcurrentExecution(java.lang.Boolean enabled)Sets whether the action of this action handler allows concurrent execution.voidsetContext(IContext context)Deprecated.since 9.24.voidsetEventObjects(java.util.List<IMendixObject> eventObjects)Sets the event objects for the action of this action handler.voidsetException(java.lang.Exception exception)Sets the specified exception for this action handler.voidsetMetaInfo(com.mendix.thirdparty.org.json.JSONObject metaInfo)Sets the meta-info for the action of this action handler.voidsetState(ActionState state)Sets the state for the action of this action handler.
-
-
-
Method Detail
-
setContext
@Deprecated void setContext(IContext context)
Deprecated.since 9.24. There is no replacement.Sets the context for the action handler to execute in.- Parameters:
context- the context for executing the action
-
getContext
IContext getContext()
Returns the context of this action handler.- Returns:
- the context for executing the action
-
call
<R> R call(InternalCoreAction<R> action)
Executes the specified action.- Type Parameters:
R- result type of the action, which should match the return value of the action- Parameters:
action- the action to execute- Returns:
- the execution result
-
getEventObjects
java.util.List<IMendixObject> getEventObjects()
Returns the event objects for the action of this action handler.- Returns:
- the Mendix objects
-
setEventObjects
void setEventObjects(java.util.List<IMendixObject> eventObjects)
Sets the event objects for the action of this action handler.- Parameters:
eventObjects- the event objects to set
-
getMetaInfo
com.mendix.thirdparty.org.json.JSONObject getMetaInfo()
Returns the meta-info for the action of this action handler.- Returns:
- the meta-info
-
setMetaInfo
void setMetaInfo(com.mendix.thirdparty.org.json.JSONObject metaInfo)
Sets the meta-info for the action of this action handler.- Parameters:
metaInfo- the meta-info to set
-
getActionName
java.lang.String getActionName()
Returns the name of the action of this action handler.- Returns:
- the action name
-
setActionName
void setActionName(java.lang.String actionName)
Sets the name of the action of this action handler.- Parameters:
actionName- the name to set
-
getException
java.lang.Exception getException()
Returns the exception that was set for this action handler (if any).- Returns:
- the exception if it was set; null otherwise
-
setException
void setException(java.lang.Exception exception)
Sets the specified exception for this action handler.- Parameters:
exception- the exception to set
-
getState
ActionState getState()
Returns the state for the action of this action handler (if any).- Returns:
- the action state if it was set; null otherwise
-
setState
void setState(ActionState state)
Sets the state for the action of this action handler.- Parameters:
state- the state to set
-
setAllowsConcurrentExecution
void setAllowsConcurrentExecution(java.lang.Boolean enabled)
Sets whether the action of this action handler allows concurrent execution. If concurrent execution is not allowed,InternalCoreAction.handleConcurrentExecution()will be called if the action is called concurrently with itself.- Parameters:
enabled- true if concurrent execution is allowed; false otherwise
-
createClone
CoreActionHandler createClone()
Returns a deep copy of this action handler. The return action handler will contain a copy of the action, with the same context.- Returns:
- the cloned action handler
-
getClonedContext
IContext getClonedContext(IMendixIdentifier currentIdentifier, java.util.List<IMendixIdentifier> constraint)
Returns a copy of the context of this action handler with the specified identifier and context objects.- Parameters:
currentIdentifier- the identifier to set on the copied context; if null, the existing identifier is not overwrittenconstraint- the context objects to set on the copied context; if null, the existing objects are not overwritten
-
-