Class DefaultActionInvoker
- java.lang.Object
 - 
- org.pentaho.platform.scheduler2.action.DefaultActionInvoker
 
 
- 
- All Implemented Interfaces:
 org.pentaho.platform.api.action.IActionInvoker
public class DefaultActionInvoker extends Object implements org.pentaho.platform.api.action.IActionInvoker
A concrete implementation of theIActionInvokerinterface that invokes theIActionlocally. 
- 
- 
Constructor Summary
Constructors Constructor Description DefaultActionInvoker() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IBackgroundExecutionStreamProvidergetStreamProvider(Map<String,Serializable> params)org.pentaho.platform.api.action.IActionInvokeStatusinvokeAction(org.pentaho.platform.api.action.IAction actionBean, String actionUser, Map<String,Serializable> params)Invokes the providedIActionas the providedactionUser.protected org.pentaho.platform.api.action.IActionInvokeStatusinvokeActionImpl(org.pentaho.platform.api.action.IAction actionBean, String actionUser, Map<String,Serializable> params)Invokes the providedIActionas the providedactionUser.booleanisSupportedAction(org.pentaho.platform.api.action.IAction action)voidvalidate(org.pentaho.platform.api.action.IAction actionBean, String actionUser, Map<String,Serializable> params)Validates that the conditions required for theIActionto be invoked are true, throwing anActionInvocationException, if the conditions are not met. 
 - 
 
- 
- 
Method Detail
- 
getStreamProvider
protected IBackgroundExecutionStreamProvider getStreamProvider(Map<String,Serializable> params)
- Parameters:
 params- theMapor parameters needed to invoke theIAction- Returns:
 - a 
IBackgroundExecutionStreamProviderrepresented in theparamsMap 
 
- 
validate
public void validate(org.pentaho.platform.api.action.IAction actionBean, String actionUser, Map<String,Serializable> params) throws org.pentaho.platform.api.action.ActionInvocationExceptionValidates that the conditions required for theIActionto be invoked are true, throwing anActionInvocationException, if the conditions are not met.- Parameters:
 actionBean- TheIActionto be invokedactionUser- The user invoking theIActionparams- theMapor parameters needed to invoke theIAction- Throws:
 org.pentaho.platform.api.action.ActionInvocationException- when conditions needed to invoke theIActionare not met
 
- 
invokeAction
public org.pentaho.platform.api.action.IActionInvokeStatus invokeAction(org.pentaho.platform.api.action.IAction actionBean, String actionUser, Map<String,Serializable> params) throws ExceptionInvokes the providedIActionas the providedactionUser.- Specified by:
 invokeActionin interfaceorg.pentaho.platform.api.action.IActionInvoker- Parameters:
 actionBean- theIActionbeing invokedactionUser- The user invoking theIActionparams- theMapor parameters needed to invoke theIAction- Returns:
 - the 
IActionInvokeStatusobject containing information about the action invocation - Throws:
 Exception- when theIActioncannot be invoked for some reason.
 
- 
invokeActionImpl
protected org.pentaho.platform.api.action.IActionInvokeStatus invokeActionImpl(org.pentaho.platform.api.action.IAction actionBean, String actionUser, Map<String,Serializable> params) throws ExceptionInvokes the providedIActionas the providedactionUser.- Parameters:
 actionBean- theIActionbeing invokedactionUser- The user invoking theIActionparams- theMapor parameters needed to invoke theIAction- Returns:
 - the 
IActionInvokeStatusobject containing information about the action invocation - Throws:
 Exception- when theIActioncannot be invoked for some reason.
 
- 
isSupportedAction
public boolean isSupportedAction(org.pentaho.platform.api.action.IAction action)
- Specified by:
 isSupportedActionin interfaceorg.pentaho.platform.api.action.IActionInvoker
 
 - 
 
 -