Package com.gentics.api.portalnode.event
Interface ActionEvent
public interface ActionEvent
Interface for an action event that may be triggered and handled inside the
portal.
-
Method Summary
Modifier and TypeMethodDescriptionGet the action command of the eventGet the embedded eventgetParameter
(String name) Get the action parameter with given namegetParameter
(String name, Object defaultValue) Get the action parameter with given name or the default value if the parameter is not setGet a map of all event parametersvoid
Set the embedded eventvoid
setObjectPath
(String path) void
setParameter
(String name, Object value) Set the parameter with given name
-
Method Details
-
getActionCommand
String getActionCommand()Get the action command of the event- Returns:
- action command string
-
getObjectPath
String getObjectPath() -
setObjectPath
-
getParameter
Get the action parameter with given name- Parameters:
name
- name of the action parameter- Returns:
- the value of the parameter or null if the parameter is not set
-
getParameter
Get the action parameter with given name or the default value if the parameter is not set- Parameters:
name
- name of the action parameterdefaultValue
- default value to be returned when the parameter is not set- Returns:
- the value of the parameter or the default value when the parameter is not set
-
getParameterMap
Map getParameterMap()Get a map of all event parameters- Returns:
- Map where the keys are the parameter names and values are the parameter values
-
getEmbeddedEvent
ActionEvent getEmbeddedEvent()Get the embedded event- Returns:
- the embedded event or null
-
setEmbeddedEvent
Set the embedded event- Parameters:
evt
- an event this event shall wrap
-
setParameter
Set the parameter with given name- Parameters:
name
- name of the parametervalue
- new value of the parameter
-