Class DefaultEdgeFactory
java.lang.Object
com.atlassian.confluence.plugins.edgeindex.DefaultEdgeFactory
- All Implemented Interfaces:
EdgeFactory
-
Field Summary
Fields inherited from interface com.atlassian.confluence.plugins.edgeindex.EdgeFactory
REQUIRED_FIELDS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canBuildCreatEdge
(ContentEntityObject contentEntity) Determines if the edge factory is capable of building create edges for a particular piece of content.getCreateEdge
(ContentEntityObject contentEntity) Creates a new instance of an edge which indicates new content creation.getLikeEdge
(ConfluenceUser liker, ContentEntityObject likedContent, Date likeDate) Creates a new instance of an edge which represents a user liking content.
-
Constructor Details
-
DefaultEdgeFactory
-
-
Method Details
-
getCreateEdge
Description copied from interface:EdgeFactory
Creates a new instance of an edge which indicates new content creation.- Specified by:
getCreateEdge
in interfaceEdgeFactory
- Parameters:
contentEntity
- the new content that has been created
-
getLikeEdge
Description copied from interface:EdgeFactory
Creates a new instance of an edge which represents a user liking content.- Specified by:
getLikeEdge
in interfaceEdgeFactory
-
canBuildCreatEdge
Description copied from interface:EdgeFactory
Determines if the edge factory is capable of building create edges for a particular piece of content.- Specified by:
canBuildCreatEdge
in interfaceEdgeFactory
- Parameters:
contentEntity
- the content to check- Returns:
- true if the factory can build create edges for that content, false if it can't.
-