Class CoreAction<R>

java.lang.Object
com.mendix.core.actionmanagement.CoreAction<R>
All Implemented Interfaces:
ICoreAction<R>, Callable<R>
Direct Known Subclasses:
UserAction

public abstract class CoreAction<R> extends Object implements ICoreAction<R>, Callable<R>
  • Constructor Details

    • CoreAction

      public CoreAction(IContext context)
  • Method Details

    • getContext

      public IContext getContext()
      Specified by:
      getContext in interface ICoreAction<R>
    • setContext

      public void setContext(IContext context)
    • execute

      public abstract R execute() throws Exception
      All sub-classes should implement this method, it will be executed by the ActionManager.
      Returns:
      result of action
      Throws:
      Exception
    • call

      public R call()
      Specified by:
      call in interface Callable<R>
    • addDatavalidationFeedback

      public void addDatavalidationFeedback(IMendixIdentifier id, Map<String,String> errorFields)
    • addDataValidationFeedback

      public void addDataValidationFeedback(DataValidationInfo dvInfo)
      Add datavalidation info.
      Parameters:
      dvInfo - the datavalidation info to add
    • handleConcurrentExecution

      public void handleConcurrentExecution() throws UserException, CoreException
      Throws:
      UserException
      CoreException
    • getUnwrappedAction

      public CoreAction<R> getUnwrappedAction()
    • getEventObjects

      public final List<IMendixObject> getEventObjects()
    • setEventObjects

      public final void setEventObjects(List<IMendixObject> eventObjects)
    • getMetaInfo

      public final com.mendix.thirdparty.org.json.JSONObject getMetaInfo()
    • setMetaInfo

      public final void setMetaInfo(com.mendix.thirdparty.org.json.JSONObject metaInfo)
    • getActionName

      public final String getActionName()
    • setActionName

      public final void setActionName(String actionName)
    • getException

      protected final Exception getException()
    • setException

      protected final void setException(Exception exception)
    • getState

      protected final ActionState getState()
    • setState

      protected final void setState(ActionState state)
    • setAllowsConcurrentExecution

      protected final void setAllowsConcurrentExecution(Boolean enabled)
    • setSystemAction

      @Deprecated protected final void setSystemAction(boolean isSystemAction)
      Deprecated.
      the specified value is not used
      Does nothing.
    • getClonedContext

      protected final IContext getClonedContext(IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraints)
    • clone

      public CoreAction<R> clone() throws CloneNotSupportedException
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException