Class ContentUserKeyExtractor
- java.lang.Object
-
- com.atlassian.confluence.importexport.impl.ContentUserKeyExtractor
-
public class ContentUserKeyExtractor extends Object
Provides services for extractingUserKey
s from the body content ofContentEntityObject
s. It does this by parsing the XHTML body content looking forUserResourceIdentifier
s.- Since:
- 5.3
-
-
Constructor Summary
Constructors Constructor Description ContentUserKeyExtractor(@NonNull StorageFormatUserRewriter storageFormatUserRewriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<com.atlassian.sal.api.user.UserKey>
extractUserKeys(String storageFormatContent)
Set<com.atlassian.sal.api.user.UserKey>
extractUserKeysFromContentEntities(Iterable<? extends ContentEntityObject> contentEntities, boolean includeComments)
-
-
-
Constructor Detail
-
ContentUserKeyExtractor
public ContentUserKeyExtractor(@NonNull StorageFormatUserRewriter storageFormatUserRewriter)
-
-
Method Detail
-
extractUserKeysFromContentEntities
public Set<com.atlassian.sal.api.user.UserKey> extractUserKeysFromContentEntities(Iterable<? extends ContentEntityObject> contentEntities, boolean includeComments)
-
extractUserKeys
public Set<com.atlassian.sal.api.user.UserKey> extractUserKeys(String storageFormatContent) throws XMLStreamException, XhtmlException
- Throws:
XMLStreamException
XhtmlException
-
-