com.atlassian.confluence.content.render.xhtml.storage.link.user
Class InlineTasksMentionsParser
java.lang.Object
com.atlassian.confluence.content.render.xhtml.storage.link.user.InlineTasksMentionsParser
- All Implemented Interfaces:
- MentionsParser
public class InlineTasksMentionsParser
- extends Object
- implements MentionsParser
This implementation parses mentions inside inline tasks.
The first link to a user inside an inline task is an assignee
and should not be considered as a mention (because we deal with it differently).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InlineTasksMentionsParser
public InlineTasksMentionsParser(XmlEventReaderFactory readerFactory)
extractUserMentions
public List<String> extractUserMentions(XMLEventReader reader,
UserMentionsExtractor extractor)
throws XMLStreamException
- Specified by:
extractUserMentions
in interface MentionsParser
- Parameters:
reader
- storage format readerextractor
- extractor to delegate to
- Returns:
- the list of usernames that are 'mentions'
- Throws:
XMLStreamException
handles
public boolean handles(StartElement startElement)
- Specified by:
handles
in interface MentionsParser
- Returns:
- true if this parser can handle give element
Copyright © 2003-2013 Atlassian. All Rights Reserved.