Class DefaultEdgeFactory
- java.lang.Object
- 
- com.atlassian.confluence.plugins.edgeindex.DefaultEdgeFactory
 
- 
- All Implemented Interfaces:
- EdgeFactory
 
 @Component("edgeFactory") public class DefaultEdgeFactory extends Object implements EdgeFactory
- 
- 
Field Summary- 
Fields inherited from interface com.atlassian.confluence.plugins.edgeindex.EdgeFactoryREQUIRED_FIELDS
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultEdgeFactory(EdgeTypeRepository edgeTypeRepository)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanBuildCreatEdge(ContentEntityObject contentEntity)Determines if the edge factory is capable of building create edges for a particular piece of content.EdgegetCreateEdge(ContentEntityObject contentEntity)Creates a new instance of an edge which indicates new content creation.EdgegetLikeEdge(ConfluenceUser liker, ContentEntityObject likedContent, Date likeDate)Creates a new instance of an edge which represents a user liking content.
 
- 
- 
- 
Constructor Detail- 
DefaultEdgeFactory@Autowired public DefaultEdgeFactory(EdgeTypeRepository edgeTypeRepository) 
 
- 
 - 
Method Detail- 
getCreateEdgepublic Edge getCreateEdge(ContentEntityObject contentEntity) Description copied from interface:EdgeFactoryCreates a new instance of an edge which indicates new content creation.- Specified by:
- getCreateEdgein interface- EdgeFactory
- Parameters:
- contentEntity- the new content that has been created
 
 - 
getLikeEdgepublic Edge getLikeEdge(ConfluenceUser liker, ContentEntityObject likedContent, Date likeDate) Description copied from interface:EdgeFactoryCreates a new instance of an edge which represents a user liking content.- Specified by:
- getLikeEdgein interface- EdgeFactory
 
 - 
canBuildCreatEdgepublic boolean canBuildCreatEdge(ContentEntityObject contentEntity) Description copied from interface:EdgeFactoryDetermines if the edge factory is capable of building create edges for a particular piece of content.- Specified by:
- canBuildCreatEdgein interface- EdgeFactory
- Parameters:
- contentEntity- the content to check
- Returns:
- true if the factory can build create edges for that content, false if it can't.
 
 
- 
 
-