com.atlassian.confluence.content.render.xhtml.storage.link.user
Class InlineTasksMentionsParser

java.lang.Object
  extended by 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).


Constructor Summary
InlineTasksMentionsParser(XmlEventReaderFactory readerFactory)
           
 
Method Summary
 List<String> extractUserMentions(XMLEventReader reader, UserMentionsExtractor extractor)
           
 boolean handles(StartElement startElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InlineTasksMentionsParser

public InlineTasksMentionsParser(XmlEventReaderFactory readerFactory)
Method Detail

extractUserMentions

public List<String> extractUserMentions(XMLEventReader reader,
                                        UserMentionsExtractor extractor)
                                 throws XMLStreamException
Specified by:
extractUserMentions in interface MentionsParser
Parameters:
reader - storage format reader
extractor - 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.