Package org.pentaho.platform.api.action
Interface IActionInvoker
public interface IActionInvoker
The purpose of this interface is to provide functionality needed to invoke an
IAction instance in a
generic fashion.-
Method Summary
Modifier and TypeMethodDescriptioninvokeAction(IAction action, String user, Map<String, Serializable> params) Invokes theIActionaction.booleanisSupportedAction(IAction action) Predicate that tells whether anIActionInvokercan handle a givenIAction
-
Method Details
-
invokeAction
IActionInvokeStatus invokeAction(IAction action, String user, Map<String, Serializable> params) throws ExceptionInvokes theIActionaction.- Parameters:
action- TheIActionto be invokeduser- The user invoking the actionparams- theMapor parameters needed to invoke theIAction- Returns:
- the
IActionInvokeStatusobject containing information about the action invocation - Throws:
Exception- if the action cannot be run for some reason
-
isSupportedAction
Predicate that tells whether anIActionInvokercan handle a givenIAction- Parameters:
action- TheIActionto be handled- Returns:
- true if the
IActionInvokercan handle a givenIAction
-