Class UserAction<R>
java.lang.Object
com.mendix.core.actionmanagement.CoreAction<R>
com.mendix.systemwideinterfaces.core.UserAction<R>
- All Implemented Interfaces:
ICoreAction<R>
,Callable<R>
- Direct Known Subclasses:
CustomJavaAction
,LoginAction
Abstract class for user actions.
Usage:
- extend this class (define R!)
- implement the method executeAction()
Example:
Usage:
- extend this class (define R!)
- implement the method executeAction()
Example:
public class ExampleAction extends UserAction {
private String param;
public ExampleAction(String param) {
super();
this.param = param;
}
public String executeAction() throws Exception {
return "Hello world! ("+this.param+")";
}
public String toString() {
return "ExampleAction:: param="+this.param;
}
}
-
Constructor Summary
-
Method Summary
Methods inherited from class com.mendix.core.actionmanagement.CoreAction
addDatavalidationFeedback, addDataValidationFeedback, call, clone, getActionName, getClonedContext, getContext, getEventObjects, getException, getMetaInfo, getState, getUnwrappedAction, handleConcurrentExecution, setActionName, setAllowsConcurrentExecution, setContext, setEventObjects, setException, setMetaInfo, setState, setSystemAction
-
Constructor Details
-
UserAction
-
-
Method Details
-
context
-
execute
This, already implemented, method callsexecuteAction
on execution of this Action.- Specified by:
execute
in classCoreAction<R>
- Returns:
- result of action
- Throws:
Exception
-
executeAction
Implement this method, this method will be called when this action is executed.- Returns:
- returns the result of the execution.
- Throws:
Exception
-