public abstract class GenericPluggableAction extends java.lang.Object implements PluggableAction
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
logger
logger object used for output of log messages in pluggable actions
|
CONFIGURATION_ERROR, INCONSISTENT_ERROR
Constructor and Description |
---|
GenericPluggableAction() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
assertRequiredParametersSet(PluggableActionRequest request,
java.lang.String[] requiredParameters)
Convenience method to check whether all required parameters are really
set.
|
protected boolean |
assertRequiredParametersSet(PluggableActionRequest request,
java.lang.String[] requiredParameters,
org.apache.log4j.Level logLevel)
Convenience method to check whether all required parameters are really
set.
|
void |
destroy()
Called by the view when the pluggable action is no longer used.
|
protected PluggableActionContext |
getContext()
get the pluggable action context
|
protected GenticsPortlet |
getModule()
get the module from the pluggable action context
|
void |
init(PluggableActionContext context)
Initialize the pluggable action
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processAction
protected org.apache.log4j.Logger logger
public void init(PluggableActionContext context) throws PluggableActionException
PluggableAction
init
in interface PluggableAction
context
- context of the pluggable actionPluggableActionException
- when the action cannot be initialized
and shall not be processedpublic void destroy()
PluggableAction
destroy
in interface PluggableAction
protected GenticsPortlet getModule()
protected PluggableActionContext getContext()
protected boolean assertRequiredParametersSet(PluggableActionRequest request, java.lang.String[] requiredParameters, org.apache.log4j.Level logLevel)
request
- pluggable action request holding the parametersrequiredParameters
- array required parameter nameslogLevel
- log level for the generated messagesprotected boolean assertRequiredParametersSet(PluggableActionRequest request, java.lang.String[] requiredParameters)
request
- pluggable action request holding the parametersrequiredParameters
- array required parameter namesCopyright © 2018 Gentics Software. All Rights Reserved.