@Component public class DefaultEdgeDocumentFactory extends Object implements EdgeDocumentFactory
AtlassianDocument
instance based on different information such as'
the edge, date, content and current authenticated user.Constructor and Description |
---|
DefaultEdgeDocumentFactory(ContentPermissionCalculator contentPermissionCalculator) |
Modifier and Type | Method and Description |
---|---|
AtlassianDocument |
buildDocument(String edgeId,
com.atlassian.sal.api.user.UserKey userKey,
ContentEntityObject target,
Date date,
String edgeTypeKey)
Build the AtlassianDocument which will be stored as an edge index document
|
@Autowired public DefaultEdgeDocumentFactory(ContentPermissionCalculator contentPermissionCalculator)
public AtlassianDocument buildDocument(String edgeId, com.atlassian.sal.api.user.UserKey userKey, ContentEntityObject target, Date date, String edgeTypeKey)
EdgeDocumentFactory
buildDocument
in interface EdgeDocumentFactory
edgeId
- the edge IDuserKey
- the user keytarget
- the target object (usually a page, blog post or comment)date
- the date when this edge index is creatededgeTypeKey
- the edge typeAtlassianDocument
representing the edge index documentCopyright © 2003–2022 Atlassian. All rights reserved.