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

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.storage.link.user.DefaultUserMentionsExtractor
All Implemented Interfaces:
UserMentionsExtractor

public class DefaultUserMentionsExtractor
extends Object
implements UserMentionsExtractor


Constructor Summary
DefaultUserMentionsExtractor(UserAccessor userAccessor, XmlEventReaderFactory readerFactory, List<? extends MentionsParser> delegates)
          Deprecated. since 5.3. The MentionsParser mechanism is deprecated with no replacement. Use DefaultUserMentionsExtractor(com.atlassian.confluence.user.UserAccessor, com.atlassian.confluence.content.render.xhtml.XmlEventReaderFactory, com.atlassian.confluence.content.render.xhtml.Unmarshaller)
DefaultUserMentionsExtractor(UserAccessor userAccessor, XmlEventReaderFactory readerFactory, Unmarshaller<UserResourceIdentifier> userResourceIdentifierUnmarshaller)
           
 
Method Summary
 List<ConfluenceUser> extractMentionedUsers(XMLEventReader reader)
          Given a stream of storage format extracts all user links that are considered a 'mention'.
 List<String> extractUserMentions(XMLEventReader reader)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUserMentionsExtractor

@Deprecated
public DefaultUserMentionsExtractor(UserAccessor userAccessor,
                                               XmlEventReaderFactory readerFactory,
                                               List<? extends MentionsParser> delegates)
Deprecated. since 5.3. The MentionsParser mechanism is deprecated with no replacement. Use DefaultUserMentionsExtractor(com.atlassian.confluence.user.UserAccessor, com.atlassian.confluence.content.render.xhtml.XmlEventReaderFactory, com.atlassian.confluence.content.render.xhtml.Unmarshaller)


DefaultUserMentionsExtractor

public DefaultUserMentionsExtractor(UserAccessor userAccessor,
                                    XmlEventReaderFactory readerFactory,
                                    Unmarshaller<UserResourceIdentifier> userResourceIdentifierUnmarshaller)
Method Detail

extractUserMentions

@Deprecated
public List<String> extractUserMentions(XMLEventReader reader)
                                 throws XMLStreamException
Deprecated. 

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

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 interface UserMentionsExtractor
Parameters:
reader - reader of a storage format.
Returns:
the list of usernames of mentioned users.
Throws:
XMLStreamException


Copyright © 2003–2015 Atlassian. All rights reserved.