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