public class ActionDelegate extends ComponentBase
ActionDelegate
is to represent an action object (which implements IAction
) as
an IComponent
.IAction
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected static PropertyNameFormatter |
ALTERNATE_INDEX_FORMATTER |
protected static PropertyNameFormatter |
COMPATIBILITY_FORMATTER |
protected static PropertyNameFormatter |
STREAM_APPENDER_FORMATTER |
COMPONENT_EXECUTE_FAIL, debug, MISSING_SESSION, UNKNOWN_COMPONENT_ID
EMPTYLOGID, loggingLevel, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
Constructor and Description |
---|
ActionDelegate(Object actionBean) |
Modifier and Type | Method and Description |
---|---|
void |
done()
Clean-up should happen in the
IAction.execute() |
protected boolean |
executeAction()
Wires up inputs outputs and resources to an Action and executes it.
|
Object |
getActionBean() |
org.apache.commons.logging.Log |
getLogger() |
protected boolean |
hasPublicDestination(org.pentaho.actionsequence.dom.IActionOutput contentOutput)
This method will tell you if an output in the action definition references an output stream that has a
global/public destination, such as "response", or "content".
|
boolean |
init()
Any initialization can be done in the
IPreProcessingAction.doPreExecution() |
protected boolean |
validateAction()
Validation of Action input values should happen in the
IAction.execute() This method is used as a pre
execution hook where we setup as much runtime information as possible prior to the actual execute call. |
protected boolean |
validateSystemSettings() |
addTempParameter, addTempParameterObject, applyInputsToFormat, audit, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createNewInstance, execute, feedbackAllowed, getActionDefinition, getActionName, getActionTitle, getComponentDefinition, getComponentDefinition, getContentOutputItem, getDefaultOutputStream, getFeedbackOutputStream, getId, getInitFailMessage, getInitOk, getInputBooleanValue, getInputLongValue, getInputNames, getInputParameter, getInputStream, getInputStringValue, getInputStringValue, getInputValue, getInstanceId, getLogId, getObjectName, getOutputContentItem, getOutputContentItem, getOutputItem, getOutputItem, getOutputNames, getOutputPreference, getProcessId, getResource, getResourceAsString, getResourceDataSource, getResourceInputStream, getResourceNames, getRuntimeContext, getSession, getSetting, getSolutionName, getSolutionPath, getStringSetting, inputMissingError, isDefinedInput, isDefinedOutput, isDefinedResource, isPromptPending, outputMissingError, promptNeeded, promptNow, resolveParameter, resourceComponentSettingError, resourceMissingError, saveSetting, setActionDefinition, setActionName, setComponentDefinition, setComponentDefinitionMap, setFeedbackMimeType, setInstanceId, setOutputMimeType, setOutputMimeType, setOutputValue, setProcessId, setRuntimeContext, setSession, validate
debug, debug, error, error, error, fatal, fatal, getMessages, getUserString, info, info, setMessages, trace, trace, warn, warn
genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, setLoggingLevel, setLogId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected static final PropertyNameFormatter ALTERNATE_INDEX_FORMATTER
protected static final PropertyNameFormatter COMPATIBILITY_FORMATTER
protected static final PropertyNameFormatter STREAM_APPENDER_FORMATTER
public ActionDelegate(Object actionBean)
public Object getActionBean()
public void done()
IAction.execute()
done
in interface org.pentaho.platform.api.engine.IComponent
done
in class ComponentBase
protected boolean hasPublicDestination(org.pentaho.actionsequence.dom.IActionOutput contentOutput)
contentOutput
- the action definition output to checkprotected boolean executeAction() throws Throwable
executeAction
in class ComponentBase
Throwable
public boolean init()
IPreProcessingAction.doPreExecution()
init
in interface org.pentaho.platform.api.engine.IComponent
init
in class ComponentBase
protected boolean validateAction()
IAction.execute()
This method is used as a pre
execution hook where we setup as much runtime information as possible prior to the actual execute call.validateAction
in class ComponentBase
protected boolean validateSystemSettings()
validateSystemSettings
in class ComponentBase
public org.apache.commons.logging.Log getLogger()
getLogger
in class PentahoBase
Copyright © 2019 Hitachi Vantara. All rights reserved.