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.
|
public DefaultEdgeFactory(EdgeTypeRepository edgeTypeRepository)
public Edge getCreateEdge(ContentEntityObject contentEntity)
EdgeFactory
getCreateEdge
in interface EdgeFactory
contentEntity
- the new content that has been createdpublic Edge getLikeEdge(ConfluenceUser liker, ContentEntityObject likedContent, Date likeDate)
EdgeFactory
getLikeEdge
in interface EdgeFactory
public boolean canBuildCreatEdge(ContentEntityObject contentEntity)
EdgeFactory
canBuildCreatEdge
in interface EdgeFactory
contentEntity
- the content to checkCopyright © 2003–2018 Atlassian. All rights reserved.