Package com.mendix.core.actionmanagement
Class CoreAction<R>
java.lang.Object
com.mendix.core.actionmanagement.CoreAction<R>
- All Implemented Interfaces:
ICoreAction<R>
,Callable<R>
- Direct Known Subclasses:
UserAction
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDatavalidationFeedback
(IMendixIdentifier id, Map<String, String> errorFields) void
Add datavalidation info.call()
clone()
abstract R
execute()
All sub-classes should implement this method, it will be executed by the ActionManager.final String
protected final IContext
getClonedContext
(IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraints) final List<IMendixObject>
protected final Exception
final com.mendix.thirdparty.org.json.JSONObject
protected final ActionState
getState()
void
final void
setActionName
(String actionName) protected final void
setAllowsConcurrentExecution
(Boolean enabled) void
setContext
(IContext context) final void
setEventObjects
(List<IMendixObject> eventObjects) protected final void
setException
(Exception exception) final void
setMetaInfo
(com.mendix.thirdparty.org.json.JSONObject metaInfo) protected final void
setState
(ActionState state) protected final void
setSystemAction
(boolean isSystemAction) Deprecated.the specified value is not used
-
Constructor Details
-
CoreAction
-
-
Method Details
-
getContext
- Specified by:
getContext
in interfaceICoreAction<R>
-
setContext
-
execute
All sub-classes should implement this method, it will be executed by the ActionManager.- Returns:
- result of action
- Throws:
Exception
-
call
-
addDatavalidationFeedback
-
addDataValidationFeedback
Add datavalidation info.- Parameters:
dvInfo
- the datavalidation info to add
-
handleConcurrentExecution
- Throws:
UserException
CoreException
-
getUnwrappedAction
-
getEventObjects
-
setEventObjects
-
getMetaInfo
public final com.mendix.thirdparty.org.json.JSONObject getMetaInfo() -
setMetaInfo
public final void setMetaInfo(com.mendix.thirdparty.org.json.JSONObject metaInfo) -
getActionName
-
setActionName
-
getException
-
setException
-
getState
-
setState
-
setAllowsConcurrentExecution
-
setSystemAction
Deprecated.the specified value is not usedDoes nothing. -
getClonedContext
protected final IContext getClonedContext(IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraints) -
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-