Class DefaultEdgeDocumentFactory

  • All Implemented Interfaces:
    EdgeDocumentFactory

    @Component
    public class DefaultEdgeDocumentFactory
    extends Object
    implements EdgeDocumentFactory
    This factory class builds an AtlassianDocument instance based on different information such as' the edge, date, content and current authenticated user.
    Since:
    7.17
    • 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: EdgeDocumentFactory
        Build the AtlassianDocument which will be stored as an edge index document
        Specified by:
        buildDocument in interface EdgeDocumentFactory
        Parameters:
        edgeId - the edge ID
        userKey - the user key
        target - the target object (usually a page, blog post or comment)
        date - the date when this edge index is created
        edgeTypeKey - the edge type
        Returns:
        the AtlassianDocument representing the edge index document