@Unstable public class MentionNotificationParameters extends Object implements Serializable
Constructor and Description |
---|
MentionNotificationParameters(String authorReference,
EntityReference entityReference,
MentionLocation location,
String version) |
Modifier and Type | Method and Description |
---|---|
MentionNotificationParameters |
addMention(String type,
MentionNotificationParameter mentionedActorReference)
Add a mention to the map of mentions.
|
MentionNotificationParameters |
addNewMention(String type,
MentionNotificationParameter mentionedActorReference)
Add a mention to the map of new mentions.
|
boolean |
equals(Object o) |
String |
getAuthorReference() |
EntityReference |
getEntityReference() |
MentionLocation |
getLocation() |
Map<String,Set<MentionNotificationParameter>> |
getMentions()
Returns an unmodifiable map of all the mentions, including the new ones.
|
Map<String,Set<MentionNotificationParameter>> |
getNewMentions()
Returns an unmodifable map of the new mentions.
|
String |
getVersion() |
int |
hashCode() |
String |
toString() |
public MentionNotificationParameters(String authorReference, EntityReference entityReference, MentionLocation location, String version)
authorReference
- the reference of the author of the change that produced the mentionsentityReference
- the entity holding the mentions (a page content, a comment...)location
- the pre-calculated location of the entityversion
- version of the document where the mention occurredpublic String getAuthorReference()
public EntityReference getEntityReference()
public MentionLocation getLocation()
public MentionNotificationParameters addMention(String type, MentionNotificationParameter mentionedActorReference)
type
- the type of the mentioned actormentionedActorReference
- the mention notification parameterspublic MentionNotificationParameters addNewMention(String type, MentionNotificationParameter mentionedActorReference)
type
- the type of the mentioned actormentionedActorReference
- the mention notification parameterpublic Map<String,Set<MentionNotificationParameter>> getNewMentions()
MentionNotificationParameter
, identifying a unique mention in a page by its actor reference and its
anchor.public Map<String,Set<MentionNotificationParameter>> getMentions()
MentionNotificationParameter
, identifying a unique mention in a page by
its actor reference and its anchor.public String getVersion()
Copyright © 2004–2022 XWiki. All rights reserved.