Class DefaultEdgeDocumentFactory
- java.lang.Object
-
- com.atlassian.confluence.plugins.edgeindex.DefaultEdgeDocumentFactory
-
- All Implemented Interfaces:
EdgeDocumentFactory
@Component public class DefaultEdgeDocumentFactory extends Object implements EdgeDocumentFactory
This factory class builds anAtlassianDocumentinstance based on different information such as' the edge, date, content and current authenticated user.- Since:
- 7.17
-
-
Constructor Summary
Constructors Constructor Description DefaultEdgeDocumentFactory(ContentPermissionCalculator contentPermissionCalculator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtlassianDocumentbuildDocument(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
-
-
-
Constructor Detail
-
DefaultEdgeDocumentFactory
@Autowired public DefaultEdgeDocumentFactory(ContentPermissionCalculator contentPermissionCalculator)
-
-
Method Detail
-
buildDocument
public AtlassianDocument buildDocument(String edgeId, com.atlassian.sal.api.user.UserKey userKey, ContentEntityObject target, Date date, String edgeTypeKey)
Description copied from interface:EdgeDocumentFactoryBuild the AtlassianDocument which will be stored as an edge index document- Specified by:
buildDocumentin interfaceEdgeDocumentFactory- Parameters:
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 type- Returns:
- the
AtlassianDocumentrepresenting the edge index document
-
-