public class DefaultUserMentionsExtractor extends Object implements UserMentionsExtractor
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
@Deprecated public DefaultUserMentionsExtractor(UserAccessor userAccessor, XmlEventReaderFactory readerFactory, List<? extends MentionsParser> delegates)
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)public DefaultUserMentionsExtractor(UserAccessor userAccessor, XmlEventReaderFactory readerFactory, Unmarshaller<UserResourceIdentifier> userResourceIdentifierUnmarshaller)
@Deprecated public List<String> extractUserMentions(XMLEventReader reader) throws XMLStreamException
extractUserMentions in interface UserMentionsExtractorreader - reader of a storage format.XMLStreamExceptionpublic List<ConfluenceUser> extractMentionedUsers(XMLEventReader reader) throws XMLStreamException
extractMentionedUsers in interface UserMentionsExtractorreader - reader of a storage format.XMLStreamExceptionCopyright © 2003–2017 Atlassian. All rights reserved.