Package org.xwiki.mentions.events
Class MentionEventParams
- java.lang.Object
-
- org.xwiki.mentions.events.MentionEventParams
-
public class MentionEventParams extends Object
The parameters of the mention event. This class is serialized to be retrieved for notifications rendering.- Since:
- 12.5RC1
- Version:
- $Id: 3c15451b53a4aa0e907879373820eae0564d83b3 $
-
-
Constructor Summary
Constructors Constructor Description MentionEventParams()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getAnchor()
String
getDocumentReference()
MentionLocation
getLocation()
String
getQuote()
String
getUserReference()
int
hashCode()
MentionEventParams
setAnchor(String anchor)
MentionEventParams
setDocumentReference(String documentReference)
MentionEventParams
setLocation(MentionLocation location)
MentionEventParams
setQuote(String quote)
MentionEventParams
setUserReference(String userReference)
String
toString()
-
-
-
Method Detail
-
getUserReference
public String getUserReference()
- Returns:
- The the user doing the mention
-
setUserReference
public MentionEventParams setUserReference(String userReference)
- Parameters:
userReference
- the user doing the mention- Returns:
- the current object
-
getDocumentReference
public String getDocumentReference()
- Returns:
- the document in which then mention occurs
-
setDocumentReference
public MentionEventParams setDocumentReference(String documentReference)
- Parameters:
documentReference
- the document in which then mention occurs- Returns:
- the current object
-
getLocation
public MentionLocation getLocation()
- Returns:
- the location of the mention
-
setLocation
public MentionEventParams setLocation(MentionLocation location)
- Parameters:
location
- the location of the mention- Returns:
- the current object
-
getAnchor
public String getAnchor()
- Returns:
- the anchor to be used for the link to the mention
-
setAnchor
public MentionEventParams setAnchor(String anchor)
- Parameters:
anchor
- the anchor to be used to link to the mention- Returns:
- the current object
-
getQuote
public String getQuote()
- Returns:
- the mention quote
-
setQuote
public MentionEventParams setQuote(String quote)
- Parameters:
quote
- the mention quote- Returns:
- the current object
-
-