Class InternalCoreAction<R>
java.lang.Object
com.mendix.core.actionmanagement.internal.InternalCoreAction<R>
- Type Parameters:
- R- the result type of the action
- All Implemented Interfaces:
- ICoreAction<R>,- Callable<R>
- Direct Known Subclasses:
- CoreAction
Provides the (internal) interface to an action that can be executed.
 This is an internal class that is not to be used and may change any time.
- 
Constructor SummaryConstructorsConstructorDescriptionInternalCoreAction(CoreActionHandler handler) Creates an action with a handler.
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDatavalidationFeedback(IMendixIdentifier id, Map<String, String> errorFields) Adds validation feedback to this action.voidAdds validation feedback to this action.call()Invokes the action handler for this action.clone()Returns a clone of this action.abstract Rexecute()Executes the action and returns the result.Returns the name of this action.getClonedContext(IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraint) Returns a copy of the context of this action with the specified identifier and context objects.Returns the context of the action.Returns the event objects of this action.Returns the exception that was set for this action (if any).com.mendix.thirdparty.org.json.JSONObjectReturns the meta-info of this action, containing additional details about the action.getState()Returns the state of this action (if any).voidThrows a concurrent execution exception.voidsetActionName(String actionName) Sets the name of this action.voidsetAllowsConcurrentExecution(Boolean enabled) Sets whether this action allows concurrent execution.voidsetContext(IContext context) Sets the context for the action to execute in.voidsetEventObjects(List<IMendixObject> eventObjects) Sets the event objects of this action.voidsetException(Exception exception) Sets the specified exception for this action.voidsetMetaInfo(com.mendix.thirdparty.org.json.JSONObject metaInfo) Sets the meta-info of this action.voidsetState(ActionState state) Sets the state of this action.
- 
Constructor Details- 
InternalCoreActionCreates an action with a handler.- Parameters:
- handler- the action handler for executing the action
 
 
- 
- 
Method Details- 
getContextDescription copied from interface:ICoreActionReturns the context of the action.- Specified by:
- getContextin interface- ICoreAction<R>
- Returns:
- the context for executing the action
 
- 
setContextDescription copied from interface:ICoreActionSets the context for the action to execute in.- Specified by:
- setContextin interface- ICoreAction<R>
- Parameters:
- context- the context for executing the action
 
- 
executeExecutes the action and returns the result.- Returns:
- the execution result
- Throws:
- Exception- when executing the action failed
 
- 
callDescription copied from interface:ICoreActionInvokes the action handler for this action.
- 
addDatavalidationFeedbackAdds validation feedback to this action.- Parameters:
- id- the identifier of the Mendix object that was validated
- errorFields- the validation messages by attribute name
 
- 
addDataValidationFeedbackAdds validation feedback to this action.- Parameters:
- dvInfo- the validation feedback details
 
- 
handleConcurrentExecutionThrows a concurrent execution exception.- Throws:
- UserException- always
- CoreException
 
- 
getEventObjectsDescription copied from interface:ICoreActionReturns the event objects of this action.- Specified by:
- getEventObjectsin interface- ICoreAction<R>
- Returns:
- the Mendix objects
 
- 
setEventObjectsSets the event objects of this action.- Parameters:
- eventObjects- the event objects to set
 
- 
getMetaInfopublic com.mendix.thirdparty.org.json.JSONObject getMetaInfo()Description copied from interface:ICoreActionReturns the meta-info of this action, containing additional details about the action.The contents will differ depending on the type of action. - Specified by:
- getMetaInfoin interface- ICoreAction<R>
- Returns:
- the meta-info
 
- 
setMetaInfopublic void setMetaInfo(com.mendix.thirdparty.org.json.JSONObject metaInfo) Sets the meta-info of this action.- Parameters:
- metaInfo- the meta-info to set
 
- 
getActionNameDescription copied from interface:ICoreActionReturns the name of this action.- Specified by:
- getActionNamein interface- ICoreAction<R>
- Returns:
- the action name
 
- 
setActionNameSets the name of this action.- Parameters:
- actionName- the name to set
 
- 
getExceptionReturns the exception that was set for this action (if any).- Returns:
- the exception if it was set; null otherwise
 
- 
setExceptionSets the specified exception for this action.- Parameters:
- exception- the exception to set
 
- 
getStateReturns the state of this action (if any).- Returns:
- the action state if it was set; null otherwise
 
- 
setStateSets the state of this action.- Parameters:
- state- the state to set
 
- 
setAllowsConcurrentExecutionSets whether this action allows concurrent execution.If concurrent execution is not allowed, handleConcurrentExecution()will be called if this action is called concurrently with itself.- Parameters:
- enabled- true if concurrent execution is allowed; false otherwise
 
- 
getClonedContextpublic IContext getClonedContext(IMendixIdentifier currentIdentifier, List<IMendixIdentifier> constraint) Returns a copy of the context of this action with the specified identifier and context objects.- Parameters:
- currentIdentifier- the identifier to set on the copied context; if null, the existing identifier is not overwritten
- constraint- the context objects to set on the copied context; if null, the existing objects are not overwritten
 
- 
cloneReturns a clone of this action.
 
-