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 theIAction
action
.boolean
isSupportedAction
(IAction action) Predicate that tells whether anIActionInvoker
can handle a givenIAction
-
Method Details
-
invokeAction
IActionInvokeStatus invokeAction(IAction action, String user, Map<String, Serializable> params) throws ExceptionInvokes theIAction
action
.- Parameters:
action
- TheIAction
to be invokeduser
- The user invoking the actionparams
- theMap
or parameters needed to invoke theIAction
- Returns:
- the
IActionInvokeStatus
object containing information about the action invocation - Throws:
Exception
- if the action cannot be run for some reason
-
isSupportedAction
Predicate that tells whether anIActionInvoker
can handle a givenIAction
- Parameters:
action
- TheIAction
to be handled- Returns:
- true if the
IActionInvoker
can handle a givenIAction
-