@Component(value="edgeFactory") public class DefaultEdgeFactory extends Object implements EdgeFactory
| Constructor and Description |
|---|
DefaultEdgeFactory(EdgeTypeRepository edgeTypeRepository) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBuildCreatEdge(ContentEntityObject contentEntity)
Determines if the edge factory is capable of building create edges for a particular
piece of content.
|
Edge |
getCreateEdge(ContentEntityObject contentEntity)
Creates a new instance of an edge which indicates new content creation.
|
Edge |
getLikeEdge(ConfluenceUser liker,
ContentEntityObject likedContent,
Date likeDate)
Creates a new instance of an edge which represents a user liking content.
|
@Autowired public DefaultEdgeFactory(EdgeTypeRepository edgeTypeRepository)
public Edge getCreateEdge(ContentEntityObject contentEntity)
EdgeFactorygetCreateEdge in interface EdgeFactorycontentEntity - the new content that has been createdpublic Edge getLikeEdge(ConfluenceUser liker, ContentEntityObject likedContent, Date likeDate)
EdgeFactorygetLikeEdge in interface EdgeFactorypublic boolean canBuildCreatEdge(ContentEntityObject contentEntity)
EdgeFactorycanBuildCreatEdge in interface EdgeFactorycontentEntity - the content to checkCopyright © 2003–2020 Atlassian. All rights reserved.