Package org.pentaho.platform.api.action
Interface IActionInvoker
-
public interface IActionInvoker
The purpose of this interface is to provide functionality needed to invoke anIAction
instance in a generic fashion.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IActionInvokeStatus
invokeAction(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 Detail
-
invokeAction
IActionInvokeStatus invokeAction(IAction action, String user, Map<String,Serializable> params) throws Exception
Invokes 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
boolean isSupportedAction(IAction action)
Predicate that tells whether anIActionInvoker
can handle a givenIAction
- Parameters:
action
- TheIAction
to be handled- Returns:
- true if the
IActionInvoker
can handle a givenIAction
-
-