com.atlassian.confluence.content.render.xhtml.storage.link.user
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultUserMentionsExtractor
public DefaultUserMentionsExtractor(XmlEventReaderFactory readerFactory,
List<MentionsParser> innerParsers)
extractUserMentions
public List<String> extractUserMentions(XMLEventReader reader)
throws XMLStreamException
- Description copied from interface:
UserMentionsExtractor
- 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:
extractUserMentions
in interface UserMentionsExtractor
- Parameters:
reader
- reader of a storage format.
- Returns:
- the list of usernames of mentioned users.
- Throws:
XMLStreamException
Copyright © 2003-2013 Atlassian. All Rights Reserved.