Interface EdgeFactory
-
- All Known Implementing Classes:
DefaultEdgeFactory
public interface EdgeFactory
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>
REQUIRED_FIELDS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getCreateEdge
Edge getCreateEdge(ContentEntityObject contentEntity)
Creates a new instance of an edge which indicates new content creation.- Parameters:
contentEntity
- the new content that has been created
-
getLikeEdge
Edge getLikeEdge(ConfluenceUser liker, ContentEntityObject likedContent, Date likeDate)
Creates a new instance of an edge which represents a user liking content.
-
canBuildCreatEdge
boolean canBuildCreatEdge(ContentEntityObject contentEntity)
Determines if the edge factory is capable of building create edges for a particular piece of content.- Parameters:
contentEntity
- the content to check- Returns:
- true if the factory can build create edges for that content, false if it can't.
-
-