Class 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 one AbstractActionExecutionEvent.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 Detail

      • 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 interface org.xwiki.observation.event.CancelableEvent
      • cancel

        public void cancel()
        Specified by:
        cancel in interface org.xwiki.observation.event.CancelableEvent
      • cancel

        public void cancel​(String reason)
        Specified by:
        cancel in interface org.xwiki.observation.event.CancelableEvent
      • getReason

        public String getReason()
        Specified by:
        getReason in interface org.xwiki.observation.event.CancelableEvent