Class CoreAction<R>

  • All Implemented Interfaces:
    ICoreAction<R>, java.util.concurrent.Callable<R>
    Direct Known Subclasses:
    UserAction

    public abstract class CoreAction<R>
    extends java.lang.Object
    implements ICoreAction<R>, java.util.concurrent.Callable<R>
    • Constructor Detail

      • CoreAction

        public CoreAction​(IContext context)
    • Method Detail

      • setContext

        public void setContext​(IContext context)
      • execute

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

        public R call()
        Specified by:
        call in interface java.util.concurrent.Callable<R>
      • addDatavalidationFeedback

        public void addDatavalidationFeedback​(IMendixIdentifier id,
                                              java.util.Map<java.lang.String,​java.lang.String> errorFields)
      • addDataValidationFeedback

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

        public CoreAction<R> getUnwrappedAction()
      • getEventObjects

        public final java.util.List<IMendixObject> getEventObjects()
      • setEventObjects

        public final void setEventObjects​(java.util.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 java.lang.String getActionName()
      • setActionName

        public final void setActionName​(java.lang.String actionName)
      • getException

        protected final java.lang.Exception getException()
      • setException

        protected final void setException​(java.lang.Exception exception)
      • setState

        protected final void setState​(ActionState state)
      • setAllowsConcurrentExecution

        protected final void setAllowsConcurrentExecution​(java.lang.Boolean enabled)
      • setSystemAction

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

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