com.gentics.api.portalnode.action
Class PluggableActionInvoker

java.lang.Object
  extended by com.gentics.api.portalnode.action.PluggableActionInvoker

public final class PluggableActionInvoker
extends Object

Helper class to manually invoke pluggable actions


Method Summary
static PluggableActionRequest createRequestObject()
          Create a request object that can be used to invoke an action
static PluggableActionRequest createRequestObject(Map parameters)
          Create a request object from the given parameters that can be used to invoke an action
static PluggableActionResponse createResponseObject()
          Create a response object that can be used to invoke an action
static boolean invokeAction(String actionClassName, PluggableActionRequest request, PluggableActionResponse response)
          Invoke the action with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

invokeAction

public static final boolean invokeAction(String actionClassName,
                                         PluggableActionRequest request,
                                         PluggableActionResponse response)
Invoke the action with the given name.

Parameters:
actionClassName - action name. May be a fully qualified class name or the class name of a class in the default action package.
request - request object
response - response object
Returns:
true when the action succeeded, false if the action failed

createResponseObject

public static final PluggableActionResponse createResponseObject()
Create a response object that can be used to invoke an action

Returns:
response object

createRequestObject

public static final PluggableActionRequest createRequestObject()
Create a request object that can be used to invoke an action

Returns:
request object

createRequestObject

public static final PluggableActionRequest createRequestObject(Map parameters)
Create a request object from the given parameters that can be used to invoke an action

Parameters:
parameters - parameter map
Returns:
request object


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.