Class DefaultUserMentionsExtractor
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.storage.link.user.DefaultUserMentionsExtractor
-
- All Implemented Interfaces:
UserMentionsExtractor
public class DefaultUserMentionsExtractor extends Object implements UserMentionsExtractor
-
-
Constructor Summary
Constructors Constructor Description DefaultUserMentionsExtractor(ConfluenceUserResolver userResolver, XmlEventReaderFactory readerFactory, Unmarshaller<UserResourceIdentifier> userResourceIdentifierUnmarshaller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ConfluenceUser>
extractMentionedUsers(XMLEventReader reader)
Given a stream of storage format extracts all user links that are considered a 'mention'.
-
-
-
Constructor Detail
-
DefaultUserMentionsExtractor
public DefaultUserMentionsExtractor(ConfluenceUserResolver userResolver, XmlEventReaderFactory readerFactory, Unmarshaller<UserResourceIdentifier> userResourceIdentifierUnmarshaller)
- Since:
- 7.16
-
-
Method Detail
-
extractMentionedUsers
public List<ConfluenceUser> extractMentionedUsers(XMLEventReader reader) throws XMLStreamException
Given a stream of storage format extracts all user links that are considered a 'mention'. Not every link to a user is a mention e.g. the first link to a user inside an inline task is actually an assignee and should not be considered as a mention (because we deal with it differently).- Specified by:
extractMentionedUsers
in interfaceUserMentionsExtractor
- Parameters:
reader
- reader of a storage format.- Returns:
- the list of usernames of mentioned users.
- Throws:
XMLStreamException
-
-