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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDatavalidationFeedback(IMendixIdentifier id, Map<String, String> errorFields) voidAdd datavalidation info.call()clone()abstract Rexecute()All sub-classes should implement this method, it will be executed by the ActionManager.final Stringprotected final IContextgetClonedContext(IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraints) final List<IMendixObject>protected final Exceptionfinal com.mendix.thirdparty.org.json.JSONObjectprotected final ActionStategetState()voidfinal voidsetActionName(String actionName) protected final voidsetAllowsConcurrentExecution(Boolean enabled) voidsetContext(IContext context) final voidsetEventObjects(List<IMendixObject> eventObjects) protected final voidsetException(Exception exception) final voidsetMetaInfo(com.mendix.thirdparty.org.json.JSONObject metaInfo) protected final voidsetState(ActionState state) protected final voidsetSystemAction(boolean isSystemAction) Deprecated.the specified value is not used
-
Constructor Details
-
CoreAction
-
-
Method Details
-
getContext
- Specified by:
getContextin 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:
UserExceptionCoreException
-
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:
clonein classObject- Throws:
CloneNotSupportedException
-