Package org.xwiki.bridge.event
Class ActionExecutingEvent
- java.lang.Object
-
- org.xwiki.bridge.event.AbstractActionExecutionEvent
-
- org.xwiki.bridge.event.ActionExecutingEvent
-
- All Implemented Interfaces:
Serializable
,ActionExecutionEvent
,org.xwiki.observation.event.BeginEvent
,org.xwiki.observation.event.CancelableEvent
,org.xwiki.observation.event.Event
public class ActionExecutingEvent extends AbstractActionExecutionEvent implements org.xwiki.observation.event.CancelableEvent, org.xwiki.observation.event.BeginEvent
An event triggered whenever a client request (action) is processed, like/upload/
or/view/
. A specific event corresponds to only oneAbstractActionExecutionEvent.getActionName()
action type.The event also send the following parameters:
- source: the current {com.xpn.xwiki.doc.XWikiDocument} instance
- data: the current {com.xpn.xwiki.XWikiContext} instance
- Since:
- 3.2M3
- Version:
- $Id: a9a24103bbfccffead7c45c03117cd3281a78995 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActionExecutingEvent()
Match anyActionExecutingEvent
.ActionExecutingEvent(String actionName)
Constructor initializing the action name of the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
void
cancel(String reason)
String
getReason()
boolean
isCanceled()
-
Methods inherited from class org.xwiki.bridge.event.AbstractActionExecutionEvent
equals, getActionName, hashCode, matches, toString
-
-
-
-
Constructor Detail
-
ActionExecutingEvent
public ActionExecutingEvent()
Match anyActionExecutingEvent
.
-
ActionExecutingEvent
public ActionExecutingEvent(String actionName)
Constructor initializing the action name of the event.- Parameters:
actionName
- the name of the executed action
-
-
Method Detail
-
isCanceled
public boolean isCanceled()
- Specified by:
isCanceled
in interfaceorg.xwiki.observation.event.CancelableEvent
-
cancel
public void cancel()
- Specified by:
cancel
in interfaceorg.xwiki.observation.event.CancelableEvent
-
cancel
public void cancel(String reason)
- Specified by:
cancel
in interfaceorg.xwiki.observation.event.CancelableEvent
-
getReason
public String getReason()
- Specified by:
getReason
in interfaceorg.xwiki.observation.event.CancelableEvent
-
-