org.xwiki.bridge.event
Class AbstractActionExecutionEvent

java.lang.Object
  extended by org.xwiki.bridge.event.AbstractActionExecutionEvent
All Implemented Interfaces:
Serializable, ActionExecutionEvent, org.xwiki.observation.event.Event
Direct Known Subclasses:
ActionExecutedEvent, ActionExecutingEvent

public abstract class AbstractActionExecutionEvent
extends Object
implements Serializable, ActionExecutionEvent

Base class for all action execution related events.

Since:
3.2M3
Version:
$Id: ea1731306ec1afb49305d1187a6f64349a1264f0 $
See Also:
Serialized Form

Constructor Summary
AbstractActionExecutionEvent()
          Match any ActionExecutedEvent.
AbstractActionExecutionEvent(String actionName)
          Constructor initializing the action name of the event.
 
Method Summary
 boolean equals(Object object)
           
 String getActionName()
          Gets the name of the action causing this event.
 int hashCode()
           
 boolean matches(Object otherEvent)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractActionExecutionEvent

public AbstractActionExecutionEvent()
Match any ActionExecutedEvent.


AbstractActionExecutionEvent

public AbstractActionExecutionEvent(String actionName)
Constructor initializing the action name of the event.

Parameters:
actionName - the name of the action
Method Detail

getActionName

public String getActionName()
Description copied from interface: ActionExecutionEvent
Gets the name of the action causing this event.

Specified by:
getActionName in interface ActionExecutionEvent
Returns:
the action causing this event, like upload or login

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object

matches

public boolean matches(Object otherEvent)
Specified by:
matches in interface org.xwiki.observation.event.Event

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2012 XWiki. All Rights Reserved.