Class ActionDelegate

  • All Implemented Interfaces:
    Serializable, org.pentaho.platform.api.engine.IAuditable, org.pentaho.platform.api.engine.IComponent, org.pentaho.platform.api.engine.ILogger, org.pentaho.platform.api.engine.IParameterResolver

    public class ActionDelegate
    extends ComponentBase
    The purpose of the ActionDelegate is to represent an action object (which implements IAction) as an IComponent.
    See Also:
    IAction, Serialized Form
    • Constructor Detail

      • ActionDelegate

        public ActionDelegate​(Object actionBean)
    • Method Detail

      • getActionBean

        public Object getActionBean()
      • done

        public void done()
        Clean-up should happen in the IAction.execute()
        Specified by:
        done in interface org.pentaho.platform.api.engine.IComponent
        Specified by:
        done in class ComponentBase
      • hasPublicDestination

        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". An action definition output is considered thusly, if it has a counterpart of the same name in the action sequence outputs AND that output is of type "content" AND it has declared one or more destinations.
        contentOutput - the action definition output to check
        true if this output corresponds to a public destination-bound output
      • init

        public boolean init()
        Any initialization can be done in the IPreProcessingAction.doPreExecution()
        Specified by:
        init in interface org.pentaho.platform.api.engine.IComponent
        Specified by:
        init in class ComponentBase
      • validateAction

        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.
        Specified by:
        validateAction in class ComponentBase
      • getLogger

        public org.apache.commons.logging.Log getLogger()
        Specified by:
        getLogger in class PentahoBase