com.atlassian.confluence.plugins.edgeindex
Class DefaultEdgeFactory

java.lang.Object
  extended by com.atlassian.confluence.plugins.edgeindex.DefaultEdgeFactory
All Implemented Interfaces:
EdgeFactory

public class DefaultEdgeFactory
extends Object
implements EdgeFactory


Constructor Summary
DefaultEdgeFactory(EdgeTypeRepository edgeTypeRepository)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEdgeFactory

public DefaultEdgeFactory(EdgeTypeRepository edgeTypeRepository)
Method Detail

getCreateEdge

public Edge getCreateEdge(ContentEntityObject contentEntity)
Description copied from interface: EdgeFactory
Creates a new instance of an edge which indicates new content creation.

Specified by:
getCreateEdge in interface EdgeFactory
Parameters:
contentEntity - the new content that has been created

getLikeEdge

public Edge getLikeEdge(ConfluenceUser liker,
                        ContentEntityObject likedContent,
                        Date likeDate)
Description copied from interface: EdgeFactory
Creates a new instance of an edge which represents a user liking content.

Specified by:
getLikeEdge in interface EdgeFactory

canBuildCreatEdge

public boolean canBuildCreatEdge(ContentEntityObject contentEntity)
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 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.


Copyright © 2003–2015 Atlassian. All rights reserved.