Class DefaultEdgeDocumentFactory
java.lang.Object
com.atlassian.confluence.plugins.edgeindex.DefaultEdgeDocumentFactory
- All Implemented Interfaces:
EdgeDocumentFactory
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultEdgeDocumentFactory
(ContentPermissionCalculator contentPermissionCalculator) -
Method Summary
Modifier and TypeMethodDescriptionbuildDocument
(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 Details
-
DefaultEdgeDocumentFactory
@Autowired public DefaultEdgeDocumentFactory(ContentPermissionCalculator contentPermissionCalculator)
-
-
Method Details
-
buildDocument
public AtlassianDocument buildDocument(String edgeId, com.atlassian.sal.api.user.UserKey userKey, ContentEntityObject target, Date date, String edgeTypeKey) Description copied from interface:EdgeDocumentFactory
Build the AtlassianDocument which will be stored as an edge index document- Specified by:
buildDocument
in 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
AtlassianDocument
representing the edge index document
-