public abstract class CoreAction<R> extends java.lang.Object implements ICoreAction<R>, java.util.concurrent.Callable<R>
Constructor and Description |
---|
CoreAction(IContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addDataValidationFeedback(DataValidationInfo dvInfo)
Add datavalidation info
|
void |
addDatavalidationFeedback(IMendixIdentifier id,
java.util.Map<java.lang.String,java.lang.String> errorFields) |
R |
call() |
CoreAction<R> |
clone() |
abstract R |
execute()
All sub-classes should implement this method, it will be executed by the ActionManager
|
java.lang.String |
getActionName() |
protected IContext |
getClonedContext(IMendixIdentifier currentIdentifier,
java.util.List<IMendixIdentifier> constraints) |
IContext |
getContext() |
java.util.List<IMendixObject> |
getEventObjects() |
protected java.lang.Exception |
getException() |
com.mendix.thirdparty.org.json.JSONObject |
getMetaInfo() |
protected ActionState |
getState() |
CoreAction<R> |
getUnwrappedAction() |
void |
handleConcurrentExecution() |
void |
setActionName(java.lang.String actionName) |
protected void |
setAllowsConcurrentExecution(java.lang.Boolean enabled) |
void |
setContext(IContext context) |
void |
setEventObjects(java.util.List<IMendixObject> eventObjects) |
protected void |
setException(java.lang.Exception exception) |
void |
setMetaInfo(com.mendix.thirdparty.org.json.JSONObject metaInfo) |
protected void |
setState(ActionState state) |
protected void |
setSystemAction(boolean isSystemAction) |
public CoreAction(IContext context)
public IContext getContext()
getContext
in interface ICoreAction<R>
public void setContext(IContext context)
public abstract R execute() throws java.lang.Exception
java.lang.Exception
public void addDatavalidationFeedback(IMendixIdentifier id, java.util.Map<java.lang.String,java.lang.String> errorFields)
public void addDataValidationFeedback(DataValidationInfo dvInfo)
dvInfo
- the datavalidation info to addpublic void handleConcurrentExecution() throws UserException, CoreException
UserException
CoreException
public CoreAction<R> getUnwrappedAction()
public final java.util.List<IMendixObject> getEventObjects()
public final void setEventObjects(java.util.List<IMendixObject> eventObjects)
public final com.mendix.thirdparty.org.json.JSONObject getMetaInfo()
public final void setMetaInfo(com.mendix.thirdparty.org.json.JSONObject metaInfo)
public final java.lang.String getActionName()
public final void setActionName(java.lang.String actionName)
protected final java.lang.Exception getException()
protected final void setException(java.lang.Exception exception)
protected final ActionState getState()
protected final void setState(ActionState state)
protected final void setAllowsConcurrentExecution(java.lang.Boolean enabled)
protected final void setSystemAction(boolean isSystemAction)
protected final IContext getClonedContext(IMendixIdentifier currentIdentifier, java.util.List<IMendixIdentifier> constraints)
public CoreAction<R> clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException