Package org.xwiki.mentions.events
Class MentionEvent
- java.lang.Object
-
- org.xwiki.mentions.events.MentionEvent
-
- All Implemented Interfaces:
RecordableEvent
,TargetableEvent
,org.xwiki.observation.event.Event
public class MentionEvent extends Object implements TargetableEvent
The mention event.- Since:
- 12.5RC1
- Version:
- $Id: a70c21b99f4b9b00833f1557ce66c94ea26ad920 $
-
-
Field Summary
Fields Modifier and Type Field Description static String
EVENT_TYPE
Name of the mention event.
-
Constructor Summary
Constructors Constructor Description MentionEvent(Set<String> targets, MentionEventParams params)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
MentionEventParams
getParams()
Set<String>
getTarget()
int
hashCode()
boolean
matches(Object otherEvent)
String
toString()
-
-
-
Field Detail
-
EVENT_TYPE
public static final String EVENT_TYPE
Name of the mention event.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MentionEvent
public MentionEvent(Set<String> targets, MentionEventParams params)
Default constructor.- Parameters:
targets
- Mention target (single user or members of a group).params
- Additional mention parameters.
-
-
Method Detail
-
getTarget
public Set<String> getTarget()
- Specified by:
getTarget
in interfaceTargetableEvent
-
getParams
public MentionEventParams getParams()
- Returns:
- Additional mention parameters.
-
matches
public boolean matches(Object otherEvent)
- Specified by:
matches
in interfaceorg.xwiki.observation.event.Event
-
-